Skip to content

Commit

Permalink
chore: sync commit working on checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper Bollen authored and Casper Bollen committed Nov 30, 2023
1 parent 4518c17 commit 508d8f1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/Informedica.GenForm.Lib/Filter.fs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module Filter =
WeightInGram = None
HeightInCm = None
GestAgeInDays = None
PMAge = None
PMAgeInDays = None
DoseType = AnyDoseType
Location = AnyAccess
}
Expand All @@ -43,7 +43,7 @@ module Filter =
WeightInGram = pat.WeightInGram
HeightInCm = pat.HeightInCm
GestAgeInDays = pat.GestAgeInDays
PMAge = pat.PMAgeInDays
PMAgeInDays = pat.PMAgeInDays
Location = pat.VenousAccess
}

Expand All @@ -62,14 +62,14 @@ module Filter =
WeightInGram = filter.WeightInGram
HeightInCm = filter.HeightInCm
GestAgeInDays = filter.GestAgeInDays
PMAgeInDays = filter.PMAge
PMAgeInDays = filter.PMAgeInDays
VenousAccess = filter.Location
}


let calcPMAge (filter : Filter) =
{ filter with
PMAge =
PMAgeInDays =
filter
|> getPatient
|> Patient.calcPMAge
Expand Down
2 changes: 1 addition & 1 deletion src/Informedica.GenForm.Lib/Patient.fs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module PatientCategory =
|> MinMax.isBetween p.GestAge
fun (p: PatientCategory) ->
// defaults to normal postmenstrual age
filter.PMAge
filter.PMAgeInDays
|> Option.defaultValue 259N
|> Some
|> MinMax.isBetween p.PMAge
Expand Down
2 changes: 1 addition & 1 deletion src/Informedica.GenForm.Lib/Types.fs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ module Types =
/// The Gestational Age in days to filter on
GestAgeInDays : BigRational option
/// The Post Menstrual Age in days to filter on
PMAge : BigRational option
PMAgeInDays : BigRational option
/// The DoseType to filter on
DoseType : DoseType
/// The Venous Access Location to filter on
Expand Down
2 changes: 1 addition & 1 deletion src/Informedica.GenOrder.Lib/Api.fs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ module Api =
Department = Some d
AgeInDays = sc.Patient.AgeInDays
GestAgeInDays = sc.Patient.GestAgeInDays
PMAge = sc.Patient.PMAgeInDays
PMAgeInDays = sc.Patient.PMAgeInDays
WeightInGram = Some w
HeightInCm = Some h
Indication = ind
Expand Down
5 changes: 3 additions & 2 deletions src/Informedica.ZForm.Lib/Types.fs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ module Types =
and Gender = Male | Female | Undetermined




/// Dose range limits
type DoseRange =
{
Expand Down Expand Up @@ -147,8 +145,11 @@ module Types =
/// The frequencies of a TotalDosage
and Frequency =
{
/// The list of possible frequencies
Frequencies : Frequencies
/// The TimeUnit to use for the frequencies
TimeUnit : TimeUnit
/// The minimal interval between frequencies
MinimalInterval : ValueUnit Option
}
static member Frequencies_ :
Expand Down

0 comments on commit 508d8f1

Please sign in to comment.