Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quest v0.2/ G6PD: In the G6PD Test questionnaire on press N/A, add High and Low Hemoglobin checkbox #653

Closed
f-odhiambo opened this issue Oct 22, 2021 · 5 comments · Fixed by #650
Assignees
Labels
Enhancement New feature or request

Comments

@f-odhiambo
Copy link
Contributor

f-odhiambo commented Oct 22, 2021

Name of feature to enhance
Add fields on press N/A on the G6PD test questionnaire
Description of feature
When a user clicks on N/A

  1. Add a check box showing Hemoglobin levels as either High or Low
  2. Similar to normal mode, show input fields for both G6PD and Hemoglobin levels
  3. Submit

Describe the enhancement

  1. Later post extraction of the Observation resources for Save Hemoglobin by adding value for Hemoglobin and whether it was High or Low as shown in the code snippet and a separate Observation resource for G6PD levels

Sample observation resource snippet

{
  "resourceType": "Observation",
  "status": "final",
  "code": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "718-7",
        "display": "Hemoglobin [Mass/volume] in Blood"
      }
    ]
  },
  "subject": {
    "reference": "Patient/f001",
    "display": "P. van de Heuvel"
  },
  "effectivePeriod": {
    "start": "2013-04-05T10:30:10+01:00",
    "end": "2013-04-05T10:30:10+01:00"
  },
  "issued": "2013-04-05T15:30:10+01:00",
  "performer": [
    {
      "reference": "Practitioner/f005",
      "display": "A. Langeveld"
    }
  ],
  "valueQuantity": {
    "value": 7.2,
    "unit": "g/dl",
    "system": "http://unitsofmeasure.org",
    "code": "g/dL"
  },
  "interpretation": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
          "code": "L",
          "display": "Low"
        }
      ]
    }
  ],
  "referenceRange": [
    {
      "low": {
        "value": 7.5,
        "unit": "g/dl",
        "system": "http://unitsofmeasure.org",
        "code": "g/dL"
      },
      "high": {
        "value": 10,
        "unit": "g/dl",
        "system": "http://unitsofmeasure.org",
        "code": "g/dL"
      }
    }
  ]
}
@f-odhiambo f-odhiambo added the Enhancement New feature or request label Oct 22, 2021
@maimoonak
Copy link
Contributor

@f-odhiambo currently we are not processing any of the fields into test-results questionnaire. Those are saved as questionnaire-response directly.

Also do we want to use structure-map for this?

@f-odhiambo
Copy link
Contributor Author

f-odhiambo commented Oct 22, 2021

@maimoonak I think in the interim let's add the two fields and check whether High or Low and submit to a questionnaire response. We will also need to create a structure-map for the extraction of the relevant resources later required in RIM

@maimoonak
Copy link
Contributor

Codes SNOMED:
Plasma haemoglobin level = 104142005
High = 75540009
Low = 62482003

Check updated questionnaire here https://fhir.labs.smartregister.org/fhir/Questionnaire/3440

In current quest app -> clear data -> relogin -> let it finish sync -> check G6PD test form ; you would be able to see the updated questionnaire. In code the sample form would be updated with next PR if no changes are suggested

@f-odhiambo
Copy link
Contributor Author

f-odhiambo commented Oct 22, 2021

Looks good, here is a screenshot

Kindly add validation based on Gender and Age

Validation of Haemoglobin and G6PD readings

  1. Category | Hgb level, in grams per deciliter (g/dL) - To be verified at the next Workshop !!!!!
Category Hgb level, in grams per deciliter (g/dL)
infants(less than 1yr old) 11–18
young children (<18yrs) 11.5–16.5
adult males (> 18yrs) 13–16.5
adult females (> 18yrs) (not pregnant) 12–16
adult females (> 18yrs) (pregnant) 11–16
  1. G6PD Limits - To be verified at the next Workshop !!!!!
Gender Lower Limit (Severe Deficiency) Higher Limit (Severe Deficiency)
Male 1.09 6.54
Female 1.1 6.6

@maimoonak
Copy link
Contributor

Done. Plz verify it by logging out, login again and wait for successful sync, and test again
G6PD = 1.0 -> 6.7
HB = 4.0 -> 19.0

@pld pld closed this as completed in #650 Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants