Skip to content

Conversation

@VeronicaMuthee
Copy link
Collaborator

The CSV contains hemoglobin reference ranges covering the full spectrum from birth to adulthood.

@dkayiwa
Copy link
Member

dkayiwa commented Sep 9, 2025

@VeronicaMuthee we do not have the getGestationalAgeInWeeks() function. Do we have a concept which can help us calculate it? Something like when the last menstrual period started?

@dkayiwa
Copy link
Member

dkayiwa commented Sep 9, 2025

I have just seen this: https://dev3.openmrs.org/openmrs/dictionary/concept.htm?conceptId=1041
Should we use it in this calculation?

@VeronicaMuthee
Copy link
Collaborator Author

@dkayiwa yes in most clinical systems, LMP is used to calculate GestationalAge(weeks) = (Current date - LMP)/7.

@dkayiwa
Copy link
Member

dkayiwa commented Sep 10, 2025

@VeronicaMuthee just go ahead and replace:
$patient.getGestationalAgeInWeeks()
with:
$fn.getObsWeeks('CIEL:1427', $patient)

@VeronicaMuthee
Copy link
Collaborator Author

@dkayiwa i have updated the calculation for gestation, please take a look.

@dkayiwa
Copy link
Member

dkayiwa commented Sep 23, 2025

@VeronicaMuthee

  1. When checking for gender male, use M instead of Male
  2. When checking for gender female use F instead of Female
  3. Which concept do you use to tell whether a woman is pregnant or not?
  4. What does HB Term (cord) mean?

@VeronicaMuthee
Copy link
Collaborator Author

@dkayiwa

  1. When checking for gender male, use M instead of Male ✅
  2. When checking for gender female use F instead of Female ✅
  3. Which concept do you use to tell whether a woman is pregnant or not?
  • Urine pregnancy test: 45AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA = Positive
  • Serum pregnancy test: 1945AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA = Positive
  1. What does HB Term (cord) mean?
  • HB measured from umbilical cord blood sample (at delivery)

@dkayiwa
Copy link
Member

dkayiwa commented Sep 24, 2025

HB measured from umbilical cord blood sample (at delivery) does it have a concept?
As for pregnancy, is it determined by both Urine and Serum pregnancy tests? Or any of the two?

@VeronicaMuthee
Copy link
Collaborator Author

@dkayiwa
Pregnancy test is determined by either urine or serum pregnancy test (urine is the most common).

Regarding the HB (cord) concept ..... (and a very good question)..... let me cross-check @gracepotma ???

@dkayiwa
Copy link
Member

dkayiwa commented Sep 24, 2025

@VeronicaMuthee
Copy link
Collaborator Author

@dkayiwa Thanks for pointing this out. The Pregnancy status (Is the patient pregnant Y/N - 5272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) is better to use over individual pregnancy tests because it offers more comprehensive coverage. Beyond just test results, pregnancy status can be established through clinical assessment, known pregnancy from previous encounters, or even patient self-reporting.

@dkayiwa
Copy link
Member

dkayiwa commented Sep 25, 2025

@VeronicaMuthee in that case, the pregnancy expression becomes:
($fn.isObsValueCodedAnswer("CIEL:45", $patient, "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA") || $fn.isObsValueCodedAnswer("CIEL:1945", $patient, "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA") || $fn.isObsValueCodedAnswer("CIEL:5272", $patient, "CIEL:1065"))

@VeronicaMuthee
Copy link
Collaborator Author

@dkayiwa, thanks, i have replaced the pregnancy expression, please check it out. Also, i reached out to Andy regarding HB Term (cord) concept. He is going to create a CIEL concept but it's going to be available in 2 weeks.

@denniskigen denniskigen marked this pull request as draft September 29, 2025 11:51
@denniskigen denniskigen self-requested a review October 9, 2025 13:24
@VeronicaMuthee VeronicaMuthee changed the title HB Reference Ranges 03-5083 HB Reference Ranges Oct 14, 2025
@denniskigen denniskigen force-pushed the VeronicaMuthee-patch-2 branch from bcd6035 to d28392f Compare October 28, 2025 10:31
@denniskigen denniskigen changed the title 03-5083 HB Reference Ranges O3-5083: Add criteria-based reference ranges for Hemoglobin Oct 28, 2025
@denniskigen denniskigen force-pushed the VeronicaMuthee-patch-2 branch from b1fb611 to 28875bd Compare October 29, 2025 09:55
@denniskigen denniskigen marked this pull request as ready for review October 29, 2025 11:38
Copy link
Member

@denniskigen denniskigen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We can improve things in future iterations. Thanks, @VeronicaMuthee!

@VeronicaMuthee
Copy link
Collaborator Author

VeronicaMuthee commented Oct 30, 2025

@dkayiwa kindly take a look. Two areas for future improvements may include

  1. There might be some potential overlap between "HB Infants (6 months)" range and "HB Children (6 months - 2 years)" range

  2. Currently, newborns and infants without recorded gestational age data may not match any existing reference range.

@dkayiwa
Copy link
Member

dkayiwa commented Oct 30, 2025

Do we need to report the overlap and non matching infants to whoever gave us these ranges?

@VeronicaMuthee
Copy link
Collaborator Author

Do we need to report the overlap and non matching infants to whoever gave us these ranges?

Yes, i will have to follow up on that

@VeronicaMuthee
Copy link
Collaborator Author

@dkayiwa @denniskigen, per the expert recommendations, here are the latest changes i have effected:-

  1. Removed age overlaps
  2. 1-month-old babies: Normal range changed from 10.7-13.9 to 10.0-14.0
  3. 2-6 month babies: Now using 9.5-13.5 (reflecting the natural iron dip during this period)
  4. 6 months to 2 years: Set at 10.5-13.5

Note: Infants lacking gestational age records are not covered in this iteration but may be addressed later.

The CSV contains hemoglobin reference ranges covering the full spectrum from birth to adulthood, with special considerations for gestational age in newborns and gender/pregnancy status in adolescents and adults.
• https://docs.google.com/spreadsheets/d/1-afKi0PFI_ySQxuXKN0OTwYgU29WiMAZcy-k7SSZYN4/edit?gid=380492094#gid=380492094
VeronicaMuthee and others added 6 commits November 5, 2025 16:35
Update the calculation for gestation in weeks
Updated HB Term (Cord) concept UUID from 21AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA to 773c06ca-366e-4ba8-ab9d-6fded5357a8c
Updated age ranges for newborns, children, and adolescents.
@denniskigen denniskigen force-pushed the VeronicaMuthee-patch-2 branch from 0628123 to bcb3d3e Compare November 5, 2025 13:36
@denniskigen denniskigen merged commit 609807f into main Nov 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants