From 55d2b997c7ea942d5ee835554c25918a8afbaff4 Mon Sep 17 00:00:00 2001 From: jingtang10 Date: Sun, 24 Jan 2021 15:07:03 +0000 Subject: [PATCH] Add OpenHIE HIV case report example to the sdc gallery app --- .../main/assets/openhie-hiv-case-report.json | 770 ++++++++++++++++++ .../fhir/datacapture/gallery/MainActivity.kt | 8 +- 2 files changed, 777 insertions(+), 1 deletion(-) create mode 100644 datacapturegallery/src/main/assets/openhie-hiv-case-report.json diff --git a/datacapturegallery/src/main/assets/openhie-hiv-case-report.json b/datacapturegallery/src/main/assets/openhie-hiv-case-report.json new file mode 100644 index 0000000000..29f84c8121 --- /dev/null +++ b/datacapturegallery/src/main/assets/openhie-hiv-case-report.json @@ -0,0 +1,770 @@ +{ + "resourceType": "Questionnaire", + "id": "hiv-case-report-questionnaire", + "language": "en", + "text": { + "status": "generated", + "div": "
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
LinkIdTextCardinalityTypeDescription & Constraints\"doco\"
\".\"\".\" HIVCaseReportFormQuestionnaire
\".\"\".\"\".\" titleHIV Case Report0..1display
\".\"\".\"\".\" regulationsReporting regulations: Monthly – applicable to each patient during the reporting period0..1display
\".\"\".\"\".\" unit_nameGoverning body unit name0..1string
\".\"\".\"\".\" reportDateDate of report0..1date
\".\"\".\"\".\" introDear:0..1display
\".\"\".\"\".\" questionsMonthly report0..1group
\".\"\".\"\".\"\".\" identifying_informationPart I: Identifying Information0..1group
\".\"\".\"\".\"\".\"\".\" arv_patient_nr1. ARV Patient Number0..1string
\".\"\".\"\".\"\".\"\".\" personal_information2. Personal Information0..1group
\".\"\".\"\".\"\".\"\".\"\".\" name3. Full name0..1string
\".\"\".\"\".\"\".\"\".\"\".\" ethnic4. Ethnicity0..1choiceValue Set: Ethnicity
\".\"\".\"\".\"\".\"\".\"\".\" gender5. Gender0..1choiceValue Set: Patient Gender
\".\"\".\"\".\"\".\"\".\"\".\" birth_year6. Year of Birth0..1integer
\".\"\".\"\".\"\".\"\".\"\".\" id_cccd7. Identification0..1group
\".\"\".\"\".\"\".\"\".\"\".\"\".\" health_insurance_code7.1. Health insurance code0..1string
\".\"\".\"\".\"\".\"\".\"\".\"\".\" passport_nr7.2. Passport Number0..1string
\".\"\".\"\".\"\".\"\".\"\".\" residence8. Residence0..1group
\".\"\".\"\".\"\".\"\".\"\".\"\".\" current8.1. Current residence0..1string
\".\"\".\"\".\"\".\"\".\"\".\"\".\" permanent8.2. Permanent residence0..1string
\".\"\".\"\".\"\".\"\".\"\".\" occupation9. Occupation0..1choiceValue Set: Patient Occupation
\".\"\".\"\".\"\".\" risk_factors10. Risk Factors0..1group
\".\"\".\"\".\"\".\"\".\" risk_population10.1. Risk population0..1choiceValue Set: HIV Risk Population
\".\"\".\"\".\"\".\"\".\" risk_behavior10.2. Risk Behavior0..1choiceValue Set: HIV Risk Behavior
\".\"\".\"\".\"\".\"\".\" transmission_route10.3. Transmission Route0..1choiceValue Set: HIV Transmission Route
\".\"\".\"\".\"\".\" hiv-diagnosis11. HIV Diagnosis0..1group
\".\"\".\"\".\"\".\"\".\" hiv-diagnosis.dateOfConfirmation11.1. Date of Confirmation0..1date
\".\"\".\"\".\"\".\"\".\" hiv-diagnosis.confirmingLab11.1. Confirming Lab0..1string
\".\"\".\"\".\"\".\"\".\" hiv-diagnosis.dateOfSpecimenCollection11.2. Date of Specimen Collection0..1date
\".\"\".\"\".\"\".\"\".\" hiv-diagnosis.placeOfSpecimenCollection11.3. Place of Specimen Collection0..1string
\".\"\".\"\".\"\".\" hiv-recency-test12. HIV Recency Test0..1group
\".\"\".\"\".\"\".\"\".\" hiv-recency-test.rapidTest12.1. Rapid test0..1group
\".\"\".\"\".\"\".\"\".\"\".\" hiv-recency-test.dateOfSpecimenCollection12.1.1. Date of Specimen Collection for rapid test0..1date
\".\"\".\"\".\"\".\"\".\"\".\" hiv-recency-test.dateOfTestPerformance12.1.2. Date of rapid test performance0..1date
\".\"\".\"\".\"\".\"\".\"\".\" hiv-recency-test.placeOfSpecimenCollection12.1.3. Place of Specimen Collection0..1string
\".\"\".\"\".\"\".\"\".\"\".\" hiv-recency-test.testResult12.1.4. Recency from rapid test - result0..1choiceValue Set: HIVRecencyResults
\".\"\".\"\".\"\".\"\".\" recency.vlTest12.2. Rapid VL test0..1group
\".\"\".\"\".\"\".\"\".\"\".\" recency.dateOfTestPerformance12.2.1. Date of rapid test performance0..1date
\".\"\".\"\".\"\".\"\".\"\".\" recency.testResult12.2.2. Recency from rapid test - result0..1choiceValue Set: HIVRecencyResults
\".\"\".\"\".\"\".\" cd4BeforeART13. CD4 test before ART0..1group
\".\"\".\"\".\"\".\"\".\" cd4BeforeART.dateOfSpecimenCollection13.1. Date of Specimen Collection for CD4 test before ART0..1date
\".\"\".\"\".\"\".\"\".\" cd4BeforeART.dateOfTestPerformance13.2. Date of CD4 test before ART performance0..1date
\".\"\".\"\".\"\".\"\".\" cd4BeforeART.placeOfSpecimenCollection13.3. Place of Specimen Collection for CD4 test before ART0..1string
\".\"\".\"\".\"\".\"\".\" cd4BeforeART.testResult13.4. CD4 test before ART - result0..1choice
\".\"\".\"\".\"\".\" cd4DuringART14. CD4 test during ART0..1group
\".\"\".\"\".\"\".\"\".\" cd4DuringART.dateOfSpecimenCollection14.1. Date of Specimen Collection for CD4 test during ART0..1date
\".\"\".\"\".\"\".\"\".\" cd4DuringART.dateOfTestPerformance14.2. Date of CD4 test during ART performance0..1date
\".\"\".\"\".\"\".\"\".\" cd4DuringART.placeOfSpecimenCollection14.3. Place of Specimen Collection for CD4 test during ART0..1string
\".\"\".\"\".\"\".\"\".\" cd4DuringART.testResult14.4. CD4 test during ART - result0..1choice
\".\"\".\"\".\"\".\" vl4DuringART15. Viral Load test during ART0..1group
\".\"\".\"\".\"\".\"\".\" vl4DuringART.dateOfSpecimenCollection15.1. Date of Specimen Collection for VL test during ART0..1date
\".\"\".\"\".\"\".\"\".\" vl4DuringART.dateOfTestPerformance15.2. Date of VL test during ART performance0..1date
\".\"\".\"\".\"\".\"\".\" vl4DuringART.placeOfSpecimenCollection15.3. Place of Specimen Collection for VL test during ART0..1string
\".\"\".\"\".\"\".\"\".\" vl4DuringART.testResult15.4. VL test during ART - result0..1choice
\".\"\".\"\".\"\".\" drugResistanceTest15. Drug Resistance test0..1group
\".\"\".\"\".\"\".\"\".\" drugResistanceTest.dateOfSpecimenCollection15.5. Date of Specimen Collection for Drug Resistance test0..1date
\".\"\".\"\".\"\".\"\".\" drugResistanceTest.dateOfTestPerformance15.6. Date of Drug Resistance test0..1date
\".\"\".\"\".\"\".\"\".\" drugResistanceTest.placeOfSpecimenCollection15.7. Place of Specimen Collection for Drug Resistance test0..1string
\".\"\".\"\".\"\".\"\".\" drugResistanceTest.testResult15.8. Drug Resistance test result0..1choice
\".\"\".\"\".\"\".\" arvTreatment16. ARV Treatment0..1group
\".\"\".\"\".\"\".\"\".\" arvTreatment.treatmentHistory16.1. ARV Treatment history0..1string
\".\"\".\"\".\"\".\"\".\" arvTreatment.dateOfTreatmentStart16.1. Date of treatment start0..1date
\".\"\".\"\".\"\".\"\".\" arvTreatment.dateOfTreatmentStop16.3. Date of treatment stop0..1date
\".\"\".\"\".\"\".\"\".\" arvTreatment.placeOfInitiation16.4. Place of ARV treatment initiation0..1string
\".\"\".\"\".\"\".\"\".\" arvTreatment.dateOfLossToFollowUp16.5. Date of loss to follow up0..1date
\".\"\".\"\".\"\".\"\".\" arvTreatment.dateOfTransferredOut16.6. Date ARV treatment transferred out0..1date
\".\"\".\"\".\"\".\"\".\" arvTreatment.placeTransferredOut16.7. Place ARV treatment transferred out0..1string
\".\"\".\"\".\"\".\"\".\" arvTreatment.regimens16.8. ARV treatment regimens0..1group
\".\"\".\"\".\"\".\"\".\"\".\" regimen.date1stLineStarted16.8.1. Date 1st ARV regimen started0..1date
\".\"\".\"\".\"\".\"\".\"\".\" arvTreatment.date2ndLineStarted16.8.2. Date 3rd ARV regimen started0..1date
\".\"\".\"\".\"\".\"\".\"\".\" arvTreatment.date3rdLineStarted16.8.3. Date 3rd ARV regimen started0..1date
\".\"\".\"\".\"\".\" comorbidities17. Comorbidities0..1group
\".\"\".\"\".\"\".\"\".\" tuberculosis17.1. Tuberculosis0..1group
\".\"\".\"\".\"\".\"\".\"\".\" TPT17.1.1. TPT0..1group
\".\"\".\"\".\"\".\"\".\"\".\"\".\" tpt.dateStarted17.1.1.1. Date TPT started0..1date
\".\"\".\"\".\"\".\"\".\"\".\"\".\" tpt.dateCompleted17.1.1.2. Date TPT completed0..1date
\".\"\".\"\".\"\".\"\".\"\".\"\".\" tpt.placeProvided17.1.1.3. Place TPT provided0..1string
\".\"\".\"\".\"\".\"\".\"\".\" tbDiagnosisDate17.1.2. TB Diagnosis Date0..1date
\".\"\".\"\".\"\".\"\".\"\".\" tbTreatment17.1.3. TB Treatment0..1group
\".\"\".\"\".\"\".\"\".\"\".\"\".\" tbTreatment.dateStarted17.1.3.1. Date TB Treatment started0..1date
\".\"\".\"\".\"\".\"\".\"\".\"\".\" tbTreatment.dateCompleted17.1.3.2. Date TB Treatment completed0..1date
\".\"\".\"\".\"\".\"\".\"\".\"\".\" tbTreatment.placeProvided17.1.3.3. Place TB Treatment provided0..1string
\".\"\".\"\".\"\".\"\".\" hbv_hcvHBV and HCV0..1group
\".\"\".\"\".\"\".\"\".\"\".\" hbv17.1.4. HBV0..1group
\".\"\".\"\".\"\".\"\".\"\".\"\".\" hbv.diagnosisDate17.1.4. Date of HBV diagnosis0..1date
\".\"\".\"\".\"\".\"\".\"\".\"\".\" hbv.treatmentStartDate17.1.4. Date of HBV treatment start0..1date
\".\"\".\"\".\"\".\"\".\"\".\"\".\" hbv.treatmentEndDate17.1.4. Date HBV treatment completed0..1date
\".\"\".\"\".\"\".\"\".\"\".\"\".\" hbv.placeProvided17.1.4. Place HBV treatment provided0..1string
\".\"\".\"\".\"\".\"\".\"\".\" hcv17.1.4. HCV0..1group
\".\"\".\"\".\"\".\"\".\"\".\"\".\" hcv.diagnosisDate17.1.4. Date of HBV diagnosis0..1date
\".\"\".\"\".\"\".\"\".\"\".\"\".\" hcv.placeProvided17.1.4. Place HBV treatment provided0..1string
\".\"\".\"\".\"\".\" pregnancies19. ARV Treatment0..1group
\".\"\".\"\".\"\".\"\".\" datePregnancyReported19. Date pregnancy reported0..1date
\".\"\".\"\".\"\".\"\".\" placePregnancyReported19. Place pregnancy reported0..1string
\".\"\".\"\".\"\".\"\".\" childDeliveryDate19. Reported child delivery date0..1date
\".\"\".\"\".\"\".\"\".\" childDeliveryPlace19. Reported child delivery place0..1string
\".\"\".\"\".\"\".\"\".\" pregnancyOutcomes19. Pregnancy Outcomes0..1group
\".\"\".\"\".\"\".\"\".\"\".\" pregnancyOutcomeCode19. Pregnancy Outcome code0..1choiceValue Set: PregnancyOutcomeCodes
\".\"\".\"\".\"\".\"\".\"\".\" childDateOfBirth19. Date of child birth0..1date
\".\"\".\"\".\"\".\"\".\"\".\" gestationAtDelivery19. Gestational age at delivery (weeks)0..1decimal
\".\"\".\"\".\"\".\"\".\"\".\" birthWeight19. Weight at birth (kg)0..1decimal
\".\"\".\"\".\"\".\"\".\"\".\" birtDefects19. Birth defects0..1choiceValue Set: BirthDefects
\".\"\".\"\".\"\".\"\".\"\".\" hivStatus19. HIV status0..1choiceValue Set: ChildHIVStatus
\".\"\".\"\".\"\".\"\".\"\".\" childHIVDiagnosisDate19. HIV diagnosis date0..1date
\".\"\".\"\".\"\".\"\".\"\".\" childARTStartDate19. ART start date0..1date
\".\"\".\"\".\"\".\" death19. Patient death0..1group
\".\"\".\"\".\"\".\"\".\" dateOfDeath19. Date of death0..1date
\".\"\".\"\".\"\".\"\".\" causeOfDeath19. Cause of death0..1choiceValue Set: HIV Cause Of Death

\"doco\" Documentation for this format
" + }, + "contained": [ + { + "resourceType": "ValueSet", + "id": "HIVRiskPopulation", + "name": "HIVRiskPopulation", + "status": "draft" + }, + { + "resourceType": "ValueSet", + "id": "PregnancyOutcomeCodes", + "name": "PregnancyOutcomeCodes", + "status": "draft" + }, + { + "resourceType": "ValueSet", + "id": "BirthDefects", + "name": "BirthDefects", + "status": "draft" + }, + { + "resourceType": "ValueSet", + "id": "ChildHIVStatus", + "name": "ChildHIVStatus", + "status": "draft" + } + ], + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-targetStructureMap", + "valueCanonical": "http://example.com/some-url-to-be-defined" + } + ], + "url": "http://openhie.org/fhir/Questionnaire/hiv-case-report-questionnaire", + "version": "0.2.0", + "name": "HIVCaseReportForm", + "status": "draft", + "subjectType": [ + "Patient" + ], + "date": "2021-01-19T18:06:47+00:00", + "publisher": "openHIE", + "contact": [ + { + "telecom": [ + { + "system": "url", + "value": "http://hl7.org/Special/committees/[something]" + } + ] + } + ], + "jurisdiction": [ + { + "coding": [ + { + "system": "http://unstats.un.org/unsd/methods/m49/m49.htm", + "code": "001" + } + ] + } + ], + "item": [ + { + "linkId": "title", + "text": "HIV Case Report", + "type": "display" + }, + { + "linkId": "regulations", + "text": "Reporting regulations: Monthly – applicable to each patient during the reporting period", + "type": "display" + }, + { + "linkId": "unit_name", + "text": "Governing body unit name", + "type": "string" + }, + { + "linkId": "reportDate", + "text": "Date of report", + "type": "date" + }, + { + "linkId": "intro", + "text": "Dear:", + "type": "display" + }, + { + "linkId": "questions", + "text": "Monthly report", + "type": "group", + "item": [ + { + "linkId": "identifying_information", + "text": "Part I: Identifying Information", + "type": "group", + "item": [ + { + "linkId": "arv_patient_nr", + "prefix": "1", + "text": "ARV Patient Number", + "type": "string" + }, + { + "linkId": "personal_information", + "prefix": "2", + "text": "Personal Information", + "type": "group", + "item": [ + { + "linkId": "name", + "prefix": "3", + "text": "Full name", + "type": "string" + }, + { + "linkId": "ethnic", + "prefix": "4", + "text": "Ethnicity", + "type": "choice", + "answerValueSet": "http://openhie.org/fhir/ValueSet/vs-ethnicity" + }, + { + "linkId": "gender", + "prefix": "5", + "text": "Gender", + "type": "choice", + "answerValueSet": "http://openhie.org/fhir/ValueSet/vs-patient-gender" + }, + { + "linkId": "birth_year", + "prefix": "6", + "text": "Year of Birth", + "type": "integer" + }, + { + "linkId": "id_cccd", + "prefix": "7", + "text": "Identification", + "type": "group", + "item": [ + { + "linkId": "health_insurance_code", + "prefix": "7.1", + "text": "Health insurance code", + "type": "string" + }, + { + "linkId": "passport_nr", + "prefix": "7.2", + "text": "Passport Number", + "type": "string" + } + ] + }, + { + "linkId": "residence", + "prefix": "8", + "text": "Residence", + "type": "group", + "item": [ + { + "linkId": "current", + "prefix": "8.1", + "text": "Current residence", + "type": "string" + }, + { + "linkId": "permanent", + "prefix": "8.2", + "text": "Permanent residence", + "type": "string" + } + ] + }, + { + "linkId": "occupation", + "prefix": "9", + "text": "Occupation", + "type": "choice", + "answerValueSet": "http://openhie.org/fhir/ValueSet/vs-occupation" + } + ] + } + ] + }, + { + "linkId": "risk_factors", + "prefix": "10", + "text": "Risk Factors", + "type": "group", + "item": [ + { + "linkId": "risk_population", + "prefix": "10.1", + "text": "Risk population", + "type": "choice", + "answerValueSet": "http://openhie.org/fhir/ValueSet/vs-hiv-risk-population" + }, + { + "linkId": "risk_behavior", + "prefix": "10.2", + "text": "Risk Behavior", + "type": "choice", + "answerValueSet": "http://openhie.org/fhir/ValueSet/vs-hiv-risk-behavior" + }, + { + "linkId": "transmission_route", + "prefix": "10.3", + "text": "Transmission Route", + "type": "choice", + "answerValueSet": "http://openhie.org/fhir/ValueSet/vs-hiv-transmission-route" + } + ] + }, + { + "linkId": "hiv-diagnosis", + "prefix": "11", + "text": "HIV Diagnosis", + "type": "group", + "item": [ + { + "linkId": "hiv-diagnosis.dateOfConfirmation", + "prefix": "11.1", + "text": "Date of Confirmation", + "type": "date" + }, + { + "linkId": "hiv-diagnosis.confirmingLab", + "prefix": "11.1", + "text": "Confirming Lab", + "type": "string" + }, + { + "linkId": "hiv-diagnosis.dateOfSpecimenCollection", + "prefix": "11.2", + "text": "Date of Specimen Collection", + "type": "date" + }, + { + "linkId": "hiv-diagnosis.placeOfSpecimenCollection", + "prefix": "11.3", + "text": "Place of Specimen Collection", + "type": "string" + } + ] + }, + { + "linkId": "hiv-recency-test", + "prefix": "12", + "text": "HIV Recency Test", + "type": "group", + "item": [ + { + "linkId": "hiv-recency-test.rapidTest", + "prefix": "12.1", + "text": "Rapid test", + "type": "group", + "item": [ + { + "linkId": "hiv-recency-test.dateOfSpecimenCollection", + "prefix": "12.1.1", + "text": "Date of Specimen Collection for rapid test", + "type": "date" + }, + { + "linkId": "hiv-recency-test.dateOfTestPerformance", + "prefix": "12.1.2", + "text": "Date of rapid test performance", + "type": "date" + }, + { + "linkId": "hiv-recency-test.placeOfSpecimenCollection", + "prefix": "12.1.3", + "text": "Place of Specimen Collection", + "type": "string" + }, + { + "linkId": "hiv-recency-test.testResult", + "prefix": "12.1.4", + "text": "Recency from rapid test - result", + "type": "choice", + "answerValueSet": "HIVRecencyResults" + } + ] + }, + { + "linkId": "recency.vlTest", + "prefix": "12.2", + "text": "Rapid VL test", + "type": "group", + "item": [ + { + "linkId": "recency.dateOfTestPerformance", + "prefix": "12.2.1", + "text": "Date of rapid test performance", + "type": "date" + }, + { + "linkId": "recency.testResult", + "prefix": "12.2.2", + "text": "Recency from rapid test - result", + "type": "choice", + "answerValueSet": "HIVRecencyResults" + } + ] + } + ] + }, + { + "linkId": "cd4BeforeART", + "prefix": "13", + "text": "CD4 test before ART", + "type": "group", + "item": [ + { + "linkId": "cd4BeforeART.dateOfSpecimenCollection", + "prefix": "13.1", + "text": "Date of Specimen Collection for CD4 test before ART", + "type": "date" + }, + { + "linkId": "cd4BeforeART.dateOfTestPerformance", + "prefix": "13.2", + "text": "Date of CD4 test before ART performance", + "type": "date" + }, + { + "linkId": "cd4BeforeART.placeOfSpecimenCollection", + "prefix": "13.3", + "text": "Place of Specimen Collection for CD4 test before ART", + "type": "string" + }, + { + "linkId": "cd4BeforeART.testResult", + "prefix": "13.4", + "text": "CD4 test before ART - result", + "type": "choice" + } + ] + }, + { + "linkId": "cd4DuringART", + "prefix": "14", + "text": "CD4 test during ART", + "type": "group", + "item": [ + { + "linkId": "cd4DuringART.dateOfSpecimenCollection", + "prefix": "14.1", + "text": "Date of Specimen Collection for CD4 test during ART", + "type": "date" + }, + { + "linkId": "cd4DuringART.dateOfTestPerformance", + "prefix": "14.2", + "text": "Date of CD4 test during ART performance", + "type": "date" + }, + { + "linkId": "cd4DuringART.placeOfSpecimenCollection", + "prefix": "14.3", + "text": "Place of Specimen Collection for CD4 test during ART", + "type": "string" + }, + { + "linkId": "cd4DuringART.testResult", + "prefix": "14.4", + "text": "CD4 test during ART - result", + "type": "choice" + } + ] + }, + { + "linkId": "vl4DuringART", + "prefix": "15", + "text": "Viral Load test during ART", + "type": "group", + "item": [ + { + "linkId": "vl4DuringART.dateOfSpecimenCollection", + "prefix": "15.1", + "text": "Date of Specimen Collection for VL test during ART", + "type": "date" + }, + { + "linkId": "vl4DuringART.dateOfTestPerformance", + "prefix": "15.2", + "text": "Date of VL test during ART performance", + "type": "date" + }, + { + "linkId": "vl4DuringART.placeOfSpecimenCollection", + "prefix": "15.3", + "text": "Place of Specimen Collection for VL test during ART", + "type": "string" + }, + { + "linkId": "vl4DuringART.testResult", + "prefix": "15.4", + "text": "VL test during ART - result", + "type": "choice" + } + ] + }, + { + "linkId": "drugResistanceTest", + "prefix": "15", + "text": "Drug Resistance test", + "type": "group", + "item": [ + { + "linkId": "drugResistanceTest.dateOfSpecimenCollection", + "prefix": "15.5", + "text": "Date of Specimen Collection for Drug Resistance test", + "type": "date" + }, + { + "linkId": "drugResistanceTest.dateOfTestPerformance", + "prefix": "15.6", + "text": "Date of Drug Resistance test", + "type": "date" + }, + { + "linkId": "drugResistanceTest.placeOfSpecimenCollection", + "prefix": "15.7", + "text": "Place of Specimen Collection for Drug Resistance test", + "type": "string" + }, + { + "linkId": "drugResistanceTest.testResult", + "prefix": "15.8", + "text": "Drug Resistance test result", + "type": "choice" + } + ] + }, + { + "linkId": "arvTreatment", + "prefix": "16", + "text": "ARV Treatment", + "type": "group", + "item": [ + { + "linkId": "arvTreatment.treatmentHistory", + "prefix": "16.1", + "text": "ARV Treatment history", + "type": "string" + }, + { + "linkId": "arvTreatment.dateOfTreatmentStart", + "prefix": "16.1", + "text": "Date of treatment start", + "type": "date" + }, + { + "linkId": "arvTreatment.dateOfTreatmentStop", + "prefix": "16.3", + "text": "Date of treatment stop", + "type": "date" + }, + { + "linkId": "arvTreatment.placeOfInitiation", + "prefix": "16.4", + "text": "Place of ARV treatment initiation", + "type": "string" + }, + { + "linkId": "arvTreatment.dateOfLossToFollowUp", + "prefix": "16.5", + "text": "Date of loss to follow up", + "type": "date" + }, + { + "linkId": "arvTreatment.dateOfTransferredOut", + "prefix": "16.6", + "text": "Date ARV treatment transferred out", + "type": "date" + }, + { + "linkId": "arvTreatment.placeTransferredOut", + "prefix": "16.7", + "text": "Place ARV treatment transferred out", + "type": "string" + }, + { + "linkId": "arvTreatment.regimens", + "prefix": "16.8", + "text": "ARV treatment regimens", + "type": "group", + "item": [ + { + "linkId": "regimen.date1stLineStarted", + "prefix": "16.8.1", + "text": "Date 1st ARV regimen started", + "type": "date" + }, + { + "linkId": "arvTreatment.date2ndLineStarted", + "prefix": "16.8.2", + "text": "Date 3rd ARV regimen started", + "type": "date" + }, + { + "linkId": "arvTreatment.date3rdLineStarted", + "prefix": "16.8.3", + "text": "Date 3rd ARV regimen started", + "type": "date" + } + ] + } + ] + }, + { + "linkId": "comorbidities", + "prefix": "17", + "text": "Comorbidities", + "type": "group", + "item": [ + { + "linkId": "tuberculosis", + "prefix": "17.1", + "text": "Tuberculosis", + "type": "group", + "item": [ + { + "linkId": "TPT", + "prefix": "17.1.1", + "text": "TPT", + "type": "group", + "item": [ + { + "linkId": "tpt.dateStarted", + "prefix": "17.1.1.1", + "text": "Date TPT started", + "type": "date" + }, + { + "linkId": "tpt.dateCompleted", + "prefix": "17.1.1.2", + "text": "Date TPT completed", + "type": "date" + }, + { + "linkId": "tpt.placeProvided", + "prefix": "17.1.1.3", + "text": "Place TPT provided", + "type": "string" + } + ] + }, + { + "linkId": "tbDiagnosisDate", + "prefix": "17.1.2", + "text": "TB Diagnosis Date", + "type": "date" + }, + { + "linkId": "tbTreatment", + "prefix": "17.1.3", + "text": "TB Treatment", + "type": "group", + "item": [ + { + "linkId": "tbTreatment.dateStarted", + "prefix": "17.1.3.1", + "text": "Date TB Treatment started", + "type": "date" + }, + { + "linkId": "tbTreatment.dateCompleted", + "prefix": "17.1.3.2", + "text": "Date TB Treatment completed", + "type": "date" + }, + { + "linkId": "tbTreatment.placeProvided", + "prefix": "17.1.3.3", + "text": "Place TB Treatment provided", + "type": "string" + } + ] + } + ] + }, + { + "linkId": "hbv_hcv", + "text": "HBV and HCV", + "type": "group", + "item": [ + { + "linkId": "hbv", + "prefix": "17.1.4", + "text": "HBV", + "type": "group", + "item": [ + { + "linkId": "hbv.diagnosisDate", + "prefix": "17.1.4", + "text": "Date of HBV diagnosis", + "type": "date" + }, + { + "linkId": "hbv.treatmentStartDate", + "prefix": "17.1.4", + "text": "Date of HBV treatment start", + "type": "date" + }, + { + "linkId": "hbv.treatmentEndDate", + "prefix": "17.1.4", + "text": "Date HBV treatment completed", + "type": "date" + }, + { + "linkId": "hbv.placeProvided", + "prefix": "17.1.4", + "text": "Place HBV treatment provided", + "type": "string" + } + ] + }, + { + "linkId": "hcv", + "prefix": "17.1.4", + "text": "HCV", + "type": "group", + "item": [ + { + "linkId": "hcv.diagnosisDate", + "prefix": "17.1.4", + "text": "Date of HBV diagnosis", + "type": "date" + }, + { + "linkId": "hcv.placeProvided", + "prefix": "17.1.4", + "text": "Place HBV treatment provided", + "type": "string" + } + ] + } + ] + } + ] + }, + { + "linkId": "pregnancies", + "prefix": "19", + "text": "ARV Treatment", + "type": "group", + "item": [ + { + "linkId": "datePregnancyReported", + "prefix": "19", + "text": "Date pregnancy reported", + "type": "date" + }, + { + "linkId": "placePregnancyReported", + "prefix": "19", + "text": "Place pregnancy reported", + "type": "string" + }, + { + "linkId": "childDeliveryDate", + "prefix": "19", + "text": "Reported child delivery date", + "type": "date" + }, + { + "linkId": "childDeliveryPlace", + "prefix": "19", + "text": "Reported child delivery place", + "type": "string" + }, + { + "linkId": "pregnancyOutcomes", + "prefix": "19", + "text": "Pregnancy Outcomes", + "type": "group", + "item": [ + { + "linkId": "pregnancyOutcomeCode", + "prefix": "19", + "text": "Pregnancy Outcome code", + "type": "choice", + "answerValueSet": "#PregnancyOutcomeCodes" + }, + { + "linkId": "childDateOfBirth", + "prefix": "19", + "text": "Date of child birth", + "type": "date" + }, + { + "linkId": "gestationAtDelivery", + "prefix": "19", + "text": "Gestational age at delivery (weeks)", + "type": "decimal" + }, + { + "linkId": "birthWeight", + "prefix": "19", + "text": "Weight at birth (kg)", + "type": "decimal" + }, + { + "linkId": "birtDefects", + "prefix": "19", + "text": "Birth defects", + "type": "choice", + "answerValueSet": "#BirthDefects" + }, + { + "linkId": "hivStatus", + "prefix": "19", + "text": "HIV status", + "type": "choice", + "answerValueSet": "#ChildHIVStatus" + }, + { + "linkId": "childHIVDiagnosisDate", + "prefix": "19", + "text": "HIV diagnosis date", + "type": "date" + }, + { + "linkId": "childARTStartDate", + "prefix": "19", + "text": "ART start date", + "type": "date" + } + ] + } + ] + }, + { + "linkId": "death", + "prefix": "19", + "text": "Patient death", + "type": "group", + "item": [ + { + "linkId": "dateOfDeath", + "prefix": "19", + "text": "Date of death", + "type": "date" + }, + { + "linkId": "causeOfDeath", + "prefix": "19", + "text": "Cause of death", + "type": "choice", + "answerValueSet": "http://openhie.org/fhir/ValueSet/vs-hiv-cause-of-death" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/datacapturegallery/src/main/java/com/google/android/fhir/datacapture/gallery/MainActivity.kt b/datacapturegallery/src/main/java/com/google/android/fhir/datacapture/gallery/MainActivity.kt index 78a812d796..8778ee48c9 100644 --- a/datacapturegallery/src/main/java/com/google/android/fhir/datacapture/gallery/MainActivity.kt +++ b/datacapturegallery/src/main/java/com/google/android/fhir/datacapture/gallery/MainActivity.kt @@ -40,10 +40,16 @@ class MainActivity : AppCompatActivity() { "HL7 example \"bb\"", "hl7-questionnaire-example-bluebook.json" ), + // Example authored by fredhersch@google.com. QuestionnaireListItem( "Patient registration", "Example authored by Fred Hersch", - "patient-registration.json" + "patient-registration.json"), + // Example taken from https://openhie.github.io/hiv-ig/Questionnaire-hiv-case-report-questionnaire.json.html + QuestionnaireListItem( + " HIV Case Report", + "OpenHIE HIV Case Reporting and Monitoring IG", + "openhie-hiv-case-report.json" ) ) )