Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pirupius committed Oct 12, 2023
1 parent 0eebd43 commit cdafd1b
Show file tree
Hide file tree
Showing 9 changed files with 2,510 additions and 14 deletions.
1,705 changes: 1,705 additions & 0 deletions __mocks__/forms/omrs-forms/component_art.json

Large diffs are not rendered by default.

Empty file.
133 changes: 133 additions & 0 deletions __mocks__/forms/omrs-forms/component_hospitalization.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
{
"name": "component_hospitalization",
"uuid": "xxxx",
"processor": "EncounterFormProcessor",
"pages": [
{
"label": "Hospitalization",
"sections": [
{
"label": "Hospitalization History",
"questions": [
{
"type": "obsGroup",
"label": "Recent hospitalizations",
"questionOptions": {
"rendering": "group",
"concept": "a8a003a6-1350-11df-a1f1-0026b9348838"
},
"questions": [
{
"label": "Was the patient hospitalized since last visit?",
"id": "wasHospitalized",
"questionOptions": {
"concept": "a898c56e-1350-11df-a1f1-0026b9348838",
"answers": [
{
"concept": "a899b35c-1350-11df-a1f1-0026b9348838",
"label": "Yes"
},
{
"concept": "a899b42e-1350-11df-a1f1-0026b9348838",
"label": "No"
}
],
"rendering": "select"
},
"type": "obs",
"validators": []
}
]
},
{
"type": "obsGroup",
"label": "If yes reason for hospitalization:",
"questionOptions": {
"concept": "a8a003a6-1350-11df-a1f1-0026b9348838",
"rendering": "repeating"
},
"questions": [
{
"label": "Reason for hospitalization:",
"questionOptions": {
"concept": "a8a07a48-1350-11df-a1f1-0026b9348838",
"rendering": "problem"
},
"type": "obs",
"validators": [
{
"type": "conditionalAnswered",
"message": "Providing diagnosis but didn't answer that patient was hospitalized in question 11a",
"referenceQuestionId": "wasHospitalized",
"referenceQuestionAnswers": [
"a899b35c-1350-11df-a1f1-0026b9348838"
]
}
]
}
]
}
]
},
{
"label": "Past Diagnosis",
"questions": [
{
"label": "Have you ever been diagnosed with these conditions:?",
"id": "pastDiagnosis",
"questionOptions": {
"concept": "b2343ae7-e435-4bc7-9615-74322d5201e4",
"answers": [
{
"concept": "7ccac7e4-f399-48b9-b2c7-944b98ec53b1",
"label": "Sickle Cell"
},
{
"concept": "a893436e-1350-11df-a1f1-0026b9348838",
"label": "Diabetes"
},
{
"concept": "a877ca58-1350-11df-a1f1-0026b9348838",
"label": "Asthma"
},
{
"concept": "a890b810-1350-11df-a1f1-0026b9348838",
"label": "Mental illness"
},
{
"concept": "acdceb9b-4b84-4e9c-bba4-eaf486b3b4b5",
"label": "Cancer"
},
{
"concept": "a8933270-1350-11df-a1f1-0026b9348838",
"label": "Epilepsy"
},
{
"concept": "a8936bb4-1350-11df-a1f1-0026b9348838",
"label": "RHD"
},
{
"concept": "a8aaf3e2-1350-11df-a1f1-0026b9348838",
"label": "Other"
}
],
"rendering": "select"
},
"type": "obs",
"validators": []
}
]
},
{
"label": "Other(specify):",
"type": "obs",
"questionOptions": {
"concept": "a8a06fc6-1350-11df-a1f1-0026b9348838",
"rendering": "text"
},
"validators": []
}
]
}
]
}
Loading

0 comments on commit cdafd1b

Please sign in to comment.