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

fix MHGap-Baseline form #72

Merged
merged 5 commits into from
Nov 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
},
{
"label": "Unknown",
"concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"concept": "ccb4c50d-13e0-46a2-bd5e-51c86d042ad8"
}
]
}
Expand Down Expand Up @@ -179,11 +179,11 @@
"answers": [
{
"label": "Yes",
"concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"concept": "681cf0bc-5213-492a-8470-0a0b3cc324dd"
},
{
"label": "No",
"concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"concept": "a5c5563e-df0e-4742-a335-b24fb63664ee"
}
]
}
Expand All @@ -199,11 +199,11 @@
"answers": [
{
"label": "Yes",
"concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"concept": "681cf0bc-5213-492a-8470-0a0b3cc324dd"
},
{
"label": "No",
"concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"concept": "a5c5563e-df0e-4742-a335-b24fb63664ee"
}
]
}
Expand All @@ -219,11 +219,11 @@
"answers": [
{
"label": "Yes",
"concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"concept": "681cf0bc-5213-492a-8470-0a0b3cc324dd"
},
{
"label": "No",
"concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"concept": "a5c5563e-df0e-4742-a335-b24fb63664ee"
}
]
}
Expand All @@ -245,11 +245,11 @@
"answers": [
{
"label": "Yes",
"concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"concept": "681cf0bc-5213-492a-8470-0a0b3cc324dd"
},
{
"label": "No",
"concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"concept": "a5c5563e-df0e-4742-a335-b24fb63664ee"
}
]
}
Expand All @@ -276,6 +276,16 @@
"rendering": "text",
"concept": "ed4b93f6-9115-4813-8784-d653af7e74ed"
}
},
{
"id": "additionalInformationAboutPreviousTreatment",
"label": "Enter in **Vitals** today's measurements for **weight**, **blood pressure** and **heart rate**",
"type": "obs",
"required": false,
"questionOptions": {
"rendering": "text",
"concept": "ed4b93f6-9115-4813-8784-d653af7e74ed"
}
}
]
}
Expand Down Expand Up @@ -366,7 +376,7 @@
},
{
"label": "Chronic psychosis (incl. schizophrenia)",
"concept": "1197f1f41-b0c7-407d-b95f-b1e26c3fd23c"
"concept": "197f1f41-b0c7-407d-b95f-b1e26c3fd23c"
},
{
"label": "Bipolar disorder (incl. mania)",
Expand Down Expand Up @@ -698,6 +708,34 @@
},
"questionInfo": "Sum of all points from answers above"
},
{
"id": "ifYouCheckedOffAnyProblemsHowDifficultHaveTheseProblemsMadeItForYouToDoYourWork",
"label": "If you checked off any problems, how difficult have these problems made it for you to do your work, take care of things at home, or get along with other people?",
"type": "obs",
"required": false,
"questionOptions": {
"rendering": "radio",
"concept": "c608b9a1-d0b9-48d8-9f6f-1da89d57481c",
"answers": [
{
"label": "Not difficult at all",
"concept": "ed0e2463-c990-4341-b095-53b899707af9"
},
{
"label": "Somewhat difficult",
"concept": "243698be-42a0-46da-8be8-21c774f2f42a"
},
{
"label": "Very difficult",
"concept": "45125711-2156-475e-ac7e-6eed34b976a7"
},
{
"label": "Extremely difficult",
"concept": "7914639c-89bc-4ff9-bff5-06b5c22aed11"
}
]
}
},
{
"id": "depressionSeverityScale",
"label": "Depression severity scale",
Expand Down Expand Up @@ -729,7 +767,22 @@
}
]
},
"questionInfo": "A patient is considered as having signs of depression if: The answer to at least one of the first two questions is “more than half the time” AND the question about difficulty at home, work and going along with others is answered at least “somewhat difficult"
"questionInfo": "A patient is considered as having signs of depression if: The answer to at least one of the first two questions is “more than half the time” AND the question about difficulty at home, work and going along with others is answered at least “somewhat difficult”. Consider referral to mhGAP clinician/ psychiatrist if major/severe depression."
},
{
"id": "lastPhq9Score",
"label": "Last PHQ-9 score",
"type": "control",
"required": false,
"readonly": true,
"questionOptions": {
"rendering": "number",
"isTransient": true,
"concept": "4854003a-4f26-497f-959d-45a56bc77c65",
"calculate": {
"calculateExpression": "api.getLatestObs(patient.id, '5f3d618e-5c89-43bd-8c79-07e4e98c2f23').then(obs => obs?.valueQuantity?.value)"
}
}
}
]
},
Expand Down Expand Up @@ -780,6 +833,54 @@
}
]
}
},
{
"id": "lastCgisScore",
"label": "Last CGI-S score",
"type": "obs",
"required": false,
"readonly": true,
"questionOptions": {
"rendering": "select",
"concept": "19dffa49-65bb-4d21-b71e-ea46e599a20d",
"calculate": {
"calculateExpression": "api.getLatestObs(patient.id, 'a1a75011-0fef-460a-b666-dda2d171f39b').then(obs => obs.valueCodeableConcept?.coding[0]?.code)"
},
"answers": [
{
"label": "0 - Not assessed",
"concept": "eb770ad7-b106-4255-83bd-2dc284fbd7ce"
},
{
"label": "1 - Normal/not ill",
"concept": "d884d3dd-7649-4260-b139-2d740baf9767"
},
{
"label": "2 - Suspected mentally ill",
"concept": "031386f7-5ee9-4a0b-876d-3e0f3d2bb1d1"
},
{
"label": "3 - Mildly ill",
"concept": "c90610d0-29ee-437e-af93-7bcc49fda2f1"
},
{
"label": "4 - Moderately ill",
"concept": "e81cfac7-6c80-4e1b-af86-3d896c9bbdac"
},
{
"label": "5 - Markedly ill",
"concept": "cf122053-f10b-4450-89e1-ed9adabb413c"
},
{
"label": "6 - Severely ill",
"concept": "a6f90f7f-82c5-4cf0-adc5-c71cc14ca3c7"
},
{
"label": "7 - Extremely ill patient",
"concept": "0f115f25-cdd0-49c3-b009-ba9acb041fef"
}
]
}
}
]
}
Expand Down Expand Up @@ -808,7 +909,7 @@
"questionOptions": {
"rendering": "workspace-launcher",
"buttonLabel": "Active medications",
"workspaceName": "medications-form-workspace"
"workspaceName": "add-drug-order"
}
}
]
Expand Down Expand Up @@ -845,7 +946,7 @@
"questions": [
{
"id": "followUpRequired",
"label": "Follow-up required",
"label": "Follow up session required? (If no, fill the Exit form)",
"type": "obs",
"required": false,
"questionOptions": {
Expand All @@ -854,11 +955,11 @@
"answers": [
{
"label": "Yes",
"concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"concept": "681cf0bc-5213-492a-8470-0a0b3cc324dd"
},
{
"label": "No",
"concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"concept": "a5c5563e-df0e-4742-a335-b24fb63664ee"
}
]
}
Expand Down