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

Add dialog extension #2663

Merged
merged 10 commits into from
Nov 14, 2024
57 changes: 15 additions & 42 deletions catalog/src/main/assets/component_modal.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
"resourceType": "Questionnaire",
"item": [
{
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
"valueCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/questionnaire-item-control",
"code": "lookup",
"display": "Lookup"
}
],
"text": "Lookup"
}
}
],
"linkId": "1.1",
"type": "choice",
"repeats": true,
Expand Down Expand Up @@ -44,48 +59,6 @@
"code": "diarrhoea",
"display": "Diarrhoea"
}
},
{
"valueCoding": {
"code": "fever",
"display": "Fever"
}
},
{
"valueCoding": {
"code": "injury",
"display": "Injury"
}
},
{
"valueCoding": {
"code": "jaundice",
"display": "Jaundice"
}
},
{
"valueCoding": {
"code": "mental-health",
"display": "Mental health"
}
},
{
"valueCoding": {
"code": "nausea",
"display": "Nausea"
}
},
{
"valueCoding": {
"code": "pain",
"display": "Pain"
}
},
{
"valueCoding": {
"code": "bleeding",
"display": "Bleeding"
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ enum class ItemControlTypes(
CHECK_BOX("check-box", QuestionnaireViewHolderType.CHECK_BOX_GROUP),
DROP_DOWN("drop-down", QuestionnaireViewHolderType.DROP_DOWN),
OPEN_CHOICE("open-choice", QuestionnaireViewHolderType.DIALOG_SELECT),
LOOKUP("lookup", QuestionnaireViewHolderType.DIALOG_SELECT),
RADIO_BUTTON("radio-button", QuestionnaireViewHolderType.RADIO_GROUP),
SLIDER("slider", QuestionnaireViewHolderType.SLIDER),
PHONE_NUMBER("phone-number", QuestionnaireViewHolderType.PHONE_NUMBER),
Expand Down
Loading