FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagefhir.surveillanceIG
Resource TypeQuestionnaire
IdQuestionnaire-MeaslesCaseReport.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/IntelliSOFT-Consulting/Surveillance-FHIR-IG/Questionnaire-MeaslesCaseReport.html
URLhttp://example.org/Questionnaire/MeaslesCaseReport
Version0.1.0
Statusdraft
Date2026-04-02T20:27:34+00:00
TitleMeasles Case Report
Realmus
Authorityhl7
DescriptionMeasles Case Report questionnaire for disease surveillance

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: Questionnaire MeaslesCaseReport

Profile: http://hl7.org/fhir/4.0/StructureDefinition/Questionnaire

Structure
LinkIDTextCardinalityTypeFlagsDescription & Constraintsdoco
.. Measles Case Report questionnaire for disease surveillanceQuestionnairehttp://example.org/Questionnaire/MeaslesCaseReport#0.1.0
... 151479012557Reporting Site0..1group
.... user_roleUser Role0..1stringiconicon
.... user_facilityUser Facility0..1stringiconicon
.... user_wardUser Ward0..1stringiconicon
.... user_sub_countyUser Sub County0..1stringiconicon
.... user_countyUser County0..1stringiconicon
.... facility_levelnull0..1groupEnable When: user_role = VACCINATOR
..... 294367770999County1..1reference
..... 819946803642Sub County1..1reference
..... 819943434Ward1..1reference
..... 819946803677Health Facility1..1reference
..... 438862163919Type of health facility1..1choiceOptions: 3 options
.... sub_county_levelnull0..1groupEnable When: user_role = SUBCOUNTY_DISEASE_SURVEILLANCE_OFFICER
..... 294367770999_sub_countyCounty1..1reference
..... 819946803642_sub_countySub County1..1reference
..... 819943434_sub_countyWard1..1reference
..... 819946803677_sub_countyHealth Facility1..1reference
..... 438862163919_sub_countyType of health facility1..1choiceOptions: 3 options
.... county_levelnull0..1groupEnable When: user_role = COUNTY_DISEASE_SURVEILLANCE_OFFICER
..... 294367770999_countyCounty1..1reference
..... 819946803642_countySub County1..1reference
..... 819943434_countyWard1..1reference
..... 819946803677_countyHealth Facility1..1reference
..... 438862163919_countyType of health facility1..1choiceOptions: 3 options
.... national_levelnull0..1groupEnable When: user_role = ADMINISTRATOR
..... 294367770999_nationalCounty1..1reference
..... 819946803642_nationalSub County1..1reference
..... 819943434_nationalWard1..1reference
..... 819946803677_nationalHealth Facility1..1reference
..... 438862163919_nationalType of health facility1..1choiceOptions: 3 options
.... 992818778559EPID No0..1stringiconicon
... 670954892057Case Demographics0..1group
.... 873240407472First name1..1string
.... 246751846436Middle name0..1string
.... 486402457213Surname/Family name1..1string
.... 929966324957Sex1..1choiceiconiconOptions: 2 options
.... 442636360588Date of birth known or unknown1..1choiceiconiconOptions: 2 options
.... 257830485990Date of Birth1..1dateEnable When: 442636360588 = Known (known)
.... age-at-onsetAge at Onset0..1stringiconiconInitial Value: string = 0
.... 492731638700Age in Years1..1integerEnable When: 442636360588 = Unknown (unknown)
.... 185726989867Months0..1integerEnable When: 442636360588 = Unknown (unknown)
.... 828303331247Days0..1integerEnable When: 442636360588 = Unknown (unknown)
.... residenceResidence1..1choiceiconiconOptions: 2 options
.... 422935041274Tracer Information0..1display
.... parentParent / Guardian Name1..1string
.... a4-countyCounty1..1reference
.... a3-sub-countySub County1..1reference
.... a2-wardWard1..1reference
.... 242811643559Residence or Village0..1string
.... 946232932304Neighborhood major landmark1..1string
.... 424111786438Street/Plot/Estate/S. location1..1string
.... 754217593839Telephone No of parent/guardian0..1string
..... 2.107xxxxxxxx0..1display
... 216343227137Case Information0..1group
.... 554231819382Date 1st seen at health facility1..1date
.... 483042281962Hospitalized? 1..1choiceiconiconOptions: 2 options
.... 340908984116Date of Admission1..1dateEnable When: 483042281962 = Yes (yes)
.... 755731625544IP/ OP No1..1string
.... 508745697175Outcome1..1choiceiconiconOptions: 3 options
... 477144604557Clinical History0..1group
.... 728034137219Date of onset of illness1..1date
.... 745196148424Clinical symptoms1..*choiceOptions: 5 options
.... 576528567552Date of Onset of rash1..1dateEnable When: 745196148424 = Rash (Rash)
.... 704922081985Type of Rash1..1choiceEnable When: 745196148424 = Rash (Rash)
Options: 2 options
.... 679340979918If Other, specify1..1stringEnable When: 704922081985 = Other (Other)
.... 817978705295Measles Surveilance0..1display
.... 207408507040Was home of patient visited for contact investigation1..1choiceiconiconOptions: 2 options
.... 566661890668If yes, date of visit1..1dateEnable When: 207408507040 = Yes (yes)
.... 865158268604Is this a Case or a Line List?1..1choiceiconiconOptions: 2 options
... 736291402384Vaccination History0..1group
.... 517772812375Was patient vaccinated against illness?1..1choiceiconiconOptions: 3 options
.... 886125589225If yes, number of doses1..1integerEnable When: 517772812375 = Yes (yes)
.... 308128177300MR vaccination given in last 30 days prior to onset of illness1..1choiceiconiconOptions: 3 options
.... 544290619304Date of last vaccination1..1dateEnable When: 308128177300 = Yes (yes)
... 271053545237Sample/Specimen Collection0..1groupEnable When: 865158268604 = Case (Case)
.... 412689284625Please select specimen collected1..*choiceOptions: 3 options
.... 8962468583341Date of specimen collection1..1dateEnable When: 412689284625 exists true
.... 258912872921Were other specimen types collected?1..1choiceiconiconOptions: 2 options
.... 340507649387If yes, specify other specimen type1..1stringEnable When: 258912872921 = Yes (yes)
.... 699353598445Date of other specimen type collection1..1dateEnable When: 258912872921 = Yes (yes)
.... 718251724172Date specimen sent to lab1..1date

doco Documentation for this format

Options Sets

Answer options for 438862163919

  • null#Private ("Private")
  • null#Public ("Public")
  • null#Faith Based ("Faith Based")

Answer options for 438862163919_sub_county

  • null#Private ("Private")
  • null#Public ("Public")
  • null#Faith Based ("Faith Based")

Answer options for 438862163919_county

  • null#Private ("Private")
  • null#Public ("Public")
  • null#Faith Based ("Faith Based")

Answer options for 438862163919_national

  • null#Private ("Private")
  • null#Public ("Public")
  • null#Faith Based ("Faith Based")

Answer options for 929966324957

  • null#male ("Male")
  • null#female ("Female")

Answer options for 442636360588

  • null#known ("Known")
  • null#unknown ("Unknown")

Answer options for residence

  • null#Urban ("Urban")
  • null#Rural ("Rural")

Answer options for 483042281962

  • null#yes ("Yes")
  • null#no ("No")

Answer options for 508745697175

  • null#Alive ("Alive")
  • null#Dead ("Dead")
  • null#Unknown ("Unknown")

Answer options for 745196148424

  • null#Fever ("Fever")
  • null#Rash ("Rash")
  • null#Cough ("Cough")
  • null#Coryza ("Coryza")
  • null#Conjunctivitis ("Conjunctivitis")

Answer options for 704922081985

  • null#Maculopapular ("Maculopapular")
  • null#Other ("Other")

Answer options for 207408507040

  • null#yes ("Yes")
  • null#no ("No")

Answer options for 865158268604

  • null#Case ("Case")
  • null#Line List ("Line List")

Answer options for 517772812375

  • null#yes ("Yes")
  • null#no ("No")
  • null#unknown ("Unknown")

Answer options for 308128177300

  • null#yes ("Yes")
  • null#no ("No")
  • null#unknown ("Unknown")

Answer options for 412689284625

  • null#Blood ("Blood")
  • null#Urine ("Urine")
  • null#Respiratory Sample ("Respiratory Sample")

Answer options for 258912872921

  • null#yes ("Yes")
  • null#no ("No")

Source1

{
  "resourceType": "Questionnaire",
  "id": "MeaslesCaseReport",
  "meta": {
    "profile": [
      "http://hl7.org/fhir/4.0/StructureDefinition/Questionnaire"
    ]
  },
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "extension": [
        {
          "url": "name",
          "valueCoding": {
            "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
            "code": "patient"
          }
        },
        {
          "url": "type",
          "valueCode": "Patient"
        }
      ],
      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "countyName",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='294367770999').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "patientCountyName",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='a4-county').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "patientSubCountyName",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='a3-sub-county').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "selectedSubCountyName",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='819946803642').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "selectedWardName",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='819943434').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "selectedFacilityName",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='819943434').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "assignedCounty",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='user_county').answer.value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "assignedRole",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='user_role').answer.value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "assignedSubCounty",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='user_sub_county').answer.value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "assignedWard",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='user_ward').answer.value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "assignedFacility",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='user_facility').answer.value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "selectedCountyNameCounty",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='294367770999_county').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "selectedSubCountyNameCounty",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='819946803642_county').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "selectedWardNameCounty",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='819943434_county').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "selectedCountyNameNational",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='294367770999_national').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "selectedSubCountyNameNational",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='819946803642_national').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "selectedWardNameNational",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='819943434_national').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "selectedCountyNameSubCounty",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='294367770999_sub_county').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "selectedSubCountyNameSubCounty",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='819946803642_sub_county').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "selectedWardNameSubCounty",
        "language": "text/fhirpath",
        "expression": "%resource.descendants().where(linkId='819943434_sub_county').answer.value.reference"
      }
    },
    {
      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-entryMode",
      "valueCode": "prior-edit"
    }
  ],
  "url": "http://example.org/Questionnaire/MeaslesCaseReport",
  "version": "0.1.0",
  "title": "Measles Case Report",
  "status": "draft",
  "date": "2026-04-02T20:27:34+00:00",
  "publisher": "intellisoftConsulting",
  "contact": [
    {
      "name": "intellisoftConsulting",
      "telecom": [
        {
          "system": "url",
          "value": "http://example.org/example-publisher"
        }
      ]
    },
    {
      "name": "IntelliSOFT Consulting Ltd.",
      "telecom": [
        {
          "system": "email",
          "value": "info@intellisoftkenya.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Measles Case Report questionnaire for disease surveillance",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "KE",
          "display": "Kenya"
        }
      ]
    }
  ],
  "item": [
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "page",
                "display": "Page"
              }
            ]
          }
        }
      ],
      "linkId": "151479012557",
      "text": "Reporting Site",
      "type": "group",
      "item": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
              "valueBoolean": true
            }
          ],
          "linkId": "user_role",
          "text": "User Role",
          "type": "string"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
              "valueBoolean": true
            }
          ],
          "linkId": "user_facility",
          "text": "User Facility",
          "type": "string"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
              "valueBoolean": true
            }
          ],
          "linkId": "user_ward",
          "text": "User Ward",
          "type": "string"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
              "valueBoolean": true
            }
          ],
          "linkId": "user_sub_county",
          "text": "User Sub County",
          "type": "string"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
              "valueBoolean": true
            }
          ],
          "linkId": "user_county",
          "text": "User County",
          "type": "string"
        },
        {
          "linkId": "facility_level",
          "type": "group",
          "enableWhen": [
            {
              "question": "user_role",
              "operator": "=",
              "answerString": "VACCINATOR"
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?_id={{%assignedCounty}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "294367770999",
              "text": "County",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?_id={{%assignedSubCounty}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "819946803642",
              "text": "Sub County",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?_id={{%assignedWard}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "819943434",
              "text": "Ward",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?_id={{%assignedFacility}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "819946803677",
              "text": "Health Facility",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "drop-down",
                        "display": "Drop down"
                      }
                    ]
                  }
                }
              ],
              "linkId": "438862163919",
              "text": "Type of health facility",
              "type": "choice",
              "required": true,
              "answerOption": [
                {
                  "valueCoding": {
                    "code": "Private",
                    "display": "Private"
                  }
                },
                {
                  "valueCoding": {
                    "code": "Public",
                    "display": "Public"
                  }
                },
                {
                  "valueCoding": {
                    "code": "Faith Based",
                    "display": "Faith Based"
                  }
                }
              ]
            }
          ]
        },
        {
          "linkId": "sub_county_level",
          "type": "group",
          "enableWhen": [
            {
              "question": "user_role",
              "operator": "=",
              "answerString": "SUBCOUNTY_DISEASE_SURVEILLANCE_OFFICER"
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?_id={{%assignedCounty}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "294367770999_sub_county",
              "text": "County",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?_id={{%assignedSubCounty}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "819946803642_sub_county",
              "text": "Sub County",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?partof={{%selectedSubCountyNameSubCounty}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "819943434_sub_county",
              "text": "Ward",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?partof={{%selectedWardNameSubCounty}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "819946803677_sub_county",
              "text": "Health Facility",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "drop-down",
                        "display": "Drop down"
                      }
                    ]
                  }
                }
              ],
              "linkId": "438862163919_sub_county",
              "text": "Type of health facility",
              "type": "choice",
              "required": true,
              "answerOption": [
                {
                  "valueCoding": {
                    "code": "Private",
                    "display": "Private"
                  }
                },
                {
                  "valueCoding": {
                    "code": "Public",
                    "display": "Public"
                  }
                },
                {
                  "valueCoding": {
                    "code": "Faith Based",
                    "display": "Faith Based"
                  }
                }
              ]
            }
          ]
        },
        {
          "linkId": "county_level",
          "type": "group",
          "enableWhen": [
            {
              "question": "user_role",
              "operator": "=",
              "answerString": "COUNTY_DISEASE_SURVEILLANCE_OFFICER"
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?_id={{%assignedCounty}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "294367770999_county",
              "text": "County",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?partof={{%selectedCountyNameCounty}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "819946803642_county",
              "text": "Sub County",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?partof={{%selectedSubCountyNameCounty}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "819943434_county",
              "text": "Ward",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?partof={{%selectedWardNameCounty}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "819946803677_county",
              "text": "Health Facility",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "drop-down",
                        "display": "Drop down"
                      }
                    ]
                  }
                }
              ],
              "linkId": "438862163919_county",
              "text": "Type of health facility",
              "type": "choice",
              "required": true,
              "answerOption": [
                {
                  "valueCoding": {
                    "code": "Private",
                    "display": "Private"
                  }
                },
                {
                  "valueCoding": {
                    "code": "Public",
                    "display": "Public"
                  }
                },
                {
                  "valueCoding": {
                    "code": "Faith Based",
                    "display": "Faith Based"
                  }
                }
              ]
            }
          ]
        },
        {
          "linkId": "national_level",
          "type": "group",
          "enableWhen": [
            {
              "question": "user_role",
              "operator": "=",
              "answerString": "ADMINISTRATOR"
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?partof=Location/0&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "294367770999_national",
              "text": "County",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?partof={{%selectedCountyNameNational}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "819946803642_national",
              "text": "Sub County",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?partof={{%selectedSubCountyNameNational}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "819943434_national",
              "text": "Ward",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
                  "valueExpression": {
                    "language": "application/x-fhir-query",
                    "expression": "Location?partof={{%selectedWardNameNational}}&_sort=name"
                  }
                },
                {
                  "extension": [
                    {
                      "url": "path",
                      "valueString": "name"
                    },
                    {
                      "url": "forDisplay",
                      "valueBoolean": true
                    }
                  ],
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
                }
              ],
              "linkId": "819946803677_national",
              "text": "Health Facility",
              "type": "reference",
              "required": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "drop-down",
                        "display": "Drop down"
                      }
                    ]
                  }
                }
              ],
              "linkId": "438862163919_national",
              "text": "Type of health facility",
              "type": "choice",
              "required": true,
              "answerOption": [
                {
                  "valueCoding": {
                    "code": "Private",
                    "display": "Private"
                  }
                },
                {
                  "valueCoding": {
                    "code": "Public",
                    "display": "Public"
                  }
                },
                {
                  "valueCoding": {
                    "code": "Faith Based",
                    "display": "Faith Based"
                  }
                }
              ]
            }
          ]
        },
        {
          "linkId": "992818778559",
          "text": "EPID No",
          "type": "string",
          "readOnly": true
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "page",
                "display": "Page"
              }
            ]
          }
        }
      ],
      "linkId": "670954892057",
      "text": "Case Demographics",
      "type": "group",
      "item": [
        {
          "linkId": "873240407472",
          "text": "First name",
          "type": "string",
          "required": true
        },
        {
          "linkId": "246751846436",
          "text": "Middle name",
          "type": "string"
        },
        {
          "linkId": "486402457213",
          "text": "Surname/Family name",
          "type": "string",
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            }
          ],
          "linkId": "929966324957",
          "text": "Sex",
          "type": "choice",
          "required": true,
          "answerOption": [
            {
              "valueCoding": {
                "code": "male",
                "display": "Male"
              }
            },
            {
              "valueCoding": {
                "code": "female",
                "display": "Female"
              }
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            }
          ],
          "linkId": "442636360588",
          "text": "Date of birth known or unknown",
          "type": "choice",
          "required": true,
          "answerOption": [
            {
              "valueCoding": {
                "code": "known",
                "display": "Known"
              }
            },
            {
              "valueCoding": {
                "code": "unknown",
                "display": "Unknown"
              }
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
              "valueString": "d/M/y"
            },
            {
              "url": "http://ehelse.no/fhir/StructureDefinition/validationtext",
              "valueString": "Cannot be a date in the future"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "_valueDate": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue",
                    "valueExpression": {
                      "language": "text/fhirpath",
                      "expression": "today()"
                    }
                  }
                ]
              }
            }
          ],
          "linkId": "257830485990",
          "text": "Date of Birth",
          "type": "date",
          "enableWhen": [
            {
              "question": "442636360588",
              "operator": "=",
              "answerCoding": {
                "code": "known",
                "display": "Known"
              }
            }
          ],
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
              "valueBoolean": true
            }
          ],
          "linkId": "age-at-onset",
          "text": "Age at Onset",
          "type": "string",
          "initial": [
            {
              "valueString": "0"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "valueInteger": 120
            }
          ],
          "linkId": "492731638700",
          "text": "Age in Years",
          "type": "integer",
          "enableWhen": [
            {
              "question": "442636360588",
              "operator": "=",
              "answerCoding": {
                "code": "unknown",
                "display": "Unknown"
              }
            }
          ],
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "valueInteger": 11
            }
          ],
          "linkId": "185726989867",
          "text": "Months",
          "type": "integer",
          "enableWhen": [
            {
              "question": "442636360588",
              "operator": "=",
              "answerCoding": {
                "code": "unknown",
                "display": "Unknown"
              }
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "valueInteger": 31
            }
          ],
          "linkId": "828303331247",
          "text": "Days",
          "type": "integer",
          "enableWhen": [
            {
              "question": "442636360588",
              "operator": "=",
              "answerCoding": {
                "code": "unknown",
                "display": "Unknown"
              }
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            }
          ],
          "linkId": "residence",
          "text": "Residence",
          "type": "choice",
          "required": true,
          "answerOption": [
            {
              "valueCoding": {
                "code": "Urban",
                "display": "Urban"
              }
            },
            {
              "valueCoding": {
                "code": "Rural",
                "display": "Rural"
              }
            }
          ]
        },
        {
          "linkId": "422935041274",
          "text": "Tracer Information",
          "type": "display"
        },
        {
          "linkId": "parent",
          "text": "Parent / Guardian Name",
          "type": "string",
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
              "valueExpression": {
                "language": "application/x-fhir-query",
                "expression": "Location?partof=Location/0&_sort=name"
              }
            },
            {
              "extension": [
                {
                  "url": "path",
                  "valueString": "name"
                },
                {
                  "url": "forDisplay",
                  "valueBoolean": true
                }
              ],
              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
            }
          ],
          "linkId": "a4-county",
          "text": "County",
          "type": "reference",
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
              "valueExpression": {
                "language": "application/x-fhir-query",
                "expression": "Location?partof={{%patientCountyName}}"
              }
            },
            {
              "extension": [
                {
                  "url": "path",
                  "valueString": "name"
                },
                {
                  "url": "forDisplay",
                  "valueBoolean": true
                }
              ],
              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
            }
          ],
          "linkId": "a3-sub-county",
          "text": "Sub County",
          "type": "reference",
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-answerExpression",
              "valueExpression": {
                "language": "application/x-fhir-query",
                "expression": "Location?partof={{%patientSubCountyName}}"
              }
            },
            {
              "extension": [
                {
                  "url": "path",
                  "valueString": "name"
                },
                {
                  "url": "forDisplay",
                  "valueBoolean": true
                }
              ],
              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-choiceColumn"
            }
          ],
          "linkId": "a2-ward",
          "text": "Ward",
          "type": "reference",
          "required": true
        },
        {
          "linkId": "242811643559",
          "text": "Residence or Village",
          "type": "string"
        },
        {
          "linkId": "946232932304",
          "text": "Neighborhood major landmark",
          "type": "string",
          "required": true
        },
        {
          "linkId": "424111786438",
          "text": "Street/Plot/Estate/S. location",
          "type": "string",
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://ehelse.no/fhir/StructureDefinition/validationtext",
              "valueString": "Enter a valid mobile number. Strings and special characters aren't allowed"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/regex",
              "valueString": "^\\d{10,10}[%content%]quot;
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "phone-number",
                    "display": "Phone Number"
                  }
                ]
              }
            }
          ],
          "linkId": "754217593839",
          "text": "Telephone No of parent/guardian",
          "type": "string",
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "flyover",
                        "display": "Fly-over"
                      }
                    ]
                  }
                }
              ],
              "linkId": "2.1",
              "text": "07xxxxxxxx",
              "type": "display"
            }
          ]
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "page",
                "display": "Page"
              }
            ]
          }
        }
      ],
      "linkId": "216343227137",
      "text": "Case Information",
      "type": "group",
      "item": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
              "valueString": "d/M/y"
            },
            {
              "url": "http://ehelse.no/fhir/StructureDefinition/validationtext",
              "valueString": "Cannot be a date in the future"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "_valueDate": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue",
                    "valueExpression": {
                      "language": "text/fhirpath",
                      "expression": "today()"
                    }
                  }
                ]
              }
            },
            {
              "extension": [
                {
                  "url": "key",
                  "valueId": "constraint-1"
                },
                {
                  "url": "requirements",
                  "valueString": "Date 1st seen at the facility should be after date of birth"
                },
                {
                  "url": "severity",
                  "valueCode": "error"
                },
                {
                  "url": "expression",
                  "valueString": "%context.answer.value >= %resource.descendants().where(linkId='257830485990').answer.value"
                },
                {
                  "url": "human",
                  "valueString": "Date 1st seen at the facility should be after date of birth"
                },
                {
                  "url": "location",
                  "valueString": "257830485990"
                }
              ],
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint"
            }
          ],
          "linkId": "554231819382",
          "text": "Date 1st seen at health facility",
          "type": "date",
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            }
          ],
          "linkId": "483042281962",
          "text": "Hospitalized? ",
          "type": "choice",
          "required": true,
          "answerOption": [
            {
              "valueCoding": {
                "code": "yes",
                "display": "Yes"
              }
            },
            {
              "valueCoding": {
                "code": "no",
                "display": "No"
              }
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
              "valueString": "d/M/y"
            },
            {
              "url": "http://ehelse.no/fhir/StructureDefinition/validationtext",
              "valueString": "Cannot be a date in the future"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "_valueDate": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue",
                    "valueExpression": {
                      "language": "text/fhirpath",
                      "expression": "today()"
                    }
                  }
                ]
              }
            },
            {
              "extension": [
                {
                  "url": "key",
                  "valueId": "constraint-1"
                },
                {
                  "url": "requirements",
                  "valueString": "Date of Admission should be after the date 1st seen at the facility"
                },
                {
                  "url": "severity",
                  "valueCode": "error"
                },
                {
                  "url": "expression",
                  "valueString": "%context.answer.value >= %resource.descendants().where(linkId='554231819382').answer.value"
                },
                {
                  "url": "human",
                  "valueString": "Date of Admission should be after date 1st seen at the facility"
                },
                {
                  "url": "location",
                  "valueString": "554231819382"
                }
              ],
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint"
            }
          ],
          "linkId": "340908984116",
          "text": "Date of Admission",
          "type": "date",
          "enableWhen": [
            {
              "question": "483042281962",
              "operator": "=",
              "answerCoding": {
                "code": "yes",
                "display": "Yes"
              }
            }
          ],
          "required": true
        },
        {
          "linkId": "755731625544",
          "text": "IP/ OP No",
          "type": "string",
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            }
          ],
          "linkId": "508745697175",
          "text": "Outcome",
          "type": "choice",
          "required": true,
          "answerOption": [
            {
              "valueCoding": {
                "code": "Alive",
                "display": "Alive"
              }
            },
            {
              "valueCoding": {
                "code": "Dead",
                "display": "Dead"
              }
            },
            {
              "valueCoding": {
                "code": "Unknown",
                "display": "Unknown"
              }
            }
          ]
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "page",
                "display": "Page"
              }
            ]
          }
        }
      ],
      "linkId": "477144604557",
      "text": "Clinical History",
      "type": "group",
      "item": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
              "valueString": "d/M/y"
            },
            {
              "url": "http://ehelse.no/fhir/StructureDefinition/validationtext",
              "valueString": "Cannot be a date in the future"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "_valueDate": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue",
                    "valueExpression": {
                      "language": "text/fhirpath",
                      "expression": "today()"
                    }
                  }
                ]
              }
            },
            {
              "extension": [
                {
                  "url": "key",
                  "valueId": "constraint-1"
                },
                {
                  "url": "requirements",
                  "valueString": "Date of Onset of illness should be before the date 1st seen at the facility"
                },
                {
                  "url": "severity",
                  "valueCode": "error"
                },
                {
                  "url": "expression",
                  "valueString": "%context.answer.value <= %resource.descendants().where(linkId='554231819382').answer.value"
                },
                {
                  "url": "human",
                  "valueString": "Date of Onset of illness should be before the date 1st seen at the facility"
                },
                {
                  "url": "location",
                  "valueString": "554231819382"
                }
              ],
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint"
            }
          ],
          "linkId": "728034137219",
          "text": "Date of onset of illness",
          "type": "date",
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "check-box",
                    "display": "Check-box"
                  }
                ]
              }
            }
          ],
          "linkId": "745196148424",
          "text": "Clinical symptoms",
          "type": "choice",
          "required": true,
          "repeats": true,
          "answerOption": [
            {
              "valueCoding": {
                "code": "Fever",
                "display": "Fever"
              }
            },
            {
              "valueCoding": {
                "code": "Rash",
                "display": "Rash"
              }
            },
            {
              "valueCoding": {
                "code": "Cough",
                "display": "Cough"
              }
            },
            {
              "valueCoding": {
                "code": "Coryza",
                "display": "Coryza"
              }
            },
            {
              "valueCoding": {
                "code": "Conjunctivitis",
                "display": "Conjunctivitis"
              }
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
              "valueString": "d/M/y"
            },
            {
              "url": "http://ehelse.no/fhir/StructureDefinition/validationtext",
              "valueString": "Cannot be a date in the future"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "_valueDate": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue",
                    "valueExpression": {
                      "language": "text/fhirpath",
                      "expression": "today()"
                    }
                  }
                ]
              }
            },
            {
              "extension": [
                {
                  "url": "key",
                  "valueId": "constraint-1"
                },
                {
                  "url": "requirements",
                  "valueString": "Date of Onset of rash should be after the onset of illness"
                },
                {
                  "url": "severity",
                  "valueCode": "error"
                },
                {
                  "url": "expression",
                  "valueString": "%context.answer.value >= %resource.descendants().where(linkId='728034137219').answer.value"
                },
                {
                  "url": "human",
                  "valueString": "Date of Onset of rash should be after the onset of illness"
                },
                {
                  "url": "location",
                  "valueString": "728034137219"
                }
              ],
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint"
            }
          ],
          "linkId": "576528567552",
          "text": "Date of Onset of rash",
          "type": "date",
          "enableWhen": [
            {
              "question": "745196148424",
              "operator": "=",
              "answerCoding": {
                "code": "Rash",
                "display": "Rash"
              }
            }
          ],
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "drop-down",
                    "display": "Drop down"
                  }
                ]
              }
            }
          ],
          "linkId": "704922081985",
          "text": "Type of Rash",
          "type": "choice",
          "enableWhen": [
            {
              "question": "745196148424",
              "operator": "=",
              "answerCoding": {
                "code": "Rash",
                "display": "Rash"
              }
            }
          ],
          "required": true,
          "answerOption": [
            {
              "valueCoding": {
                "code": "Maculopapular",
                "display": "Maculopapular"
              }
            },
            {
              "valueCoding": {
                "code": "Other",
                "display": "Other"
              }
            }
          ]
        },
        {
          "linkId": "679340979918",
          "text": "If Other, specify",
          "type": "string",
          "enableWhen": [
            {
              "question": "704922081985",
              "operator": "=",
              "answerCoding": {
                "code": "Other",
                "display": "Other"
              }
            }
          ],
          "required": true
        },
        {
          "linkId": "817978705295",
          "text": "Measles Surveilance",
          "type": "display"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            }
          ],
          "linkId": "207408507040",
          "text": "Was home of patient visited for contact investigation",
          "type": "choice",
          "required": true,
          "answerOption": [
            {
              "valueCoding": {
                "code": "yes",
                "display": "Yes"
              }
            },
            {
              "valueCoding": {
                "code": "no",
                "display": "No"
              }
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
              "valueString": "d/M/y"
            },
            {
              "url": "http://ehelse.no/fhir/StructureDefinition/validationtext",
              "valueString": "Cannot be a date in the future"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "_valueDate": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue",
                    "valueExpression": {
                      "language": "text/fhirpath",
                      "expression": "today()"
                    }
                  }
                ]
              }
            },
            {
              "extension": [
                {
                  "url": "key",
                  "valueId": "constraint-1"
                },
                {
                  "url": "requirements",
                  "valueString": "Date of Home visit should be after the date 1st seen at the facility"
                },
                {
                  "url": "severity",
                  "valueCode": "error"
                },
                {
                  "url": "expression",
                  "valueString": "%context.answer.value >= %resource.descendants().where(linkId='554231819382').answer.value"
                },
                {
                  "url": "human",
                  "valueString": "Date of Home visit should be after the date 1st seen at the facility"
                },
                {
                  "url": "location",
                  "valueString": "554231819382"
                }
              ],
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint"
            }
          ],
          "linkId": "566661890668",
          "text": "If yes, date of visit",
          "type": "date",
          "enableWhen": [
            {
              "question": "207408507040",
              "operator": "=",
              "answerCoding": {
                "code": "yes",
                "display": "Yes"
              }
            }
          ],
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            }
          ],
          "linkId": "865158268604",
          "text": "Is this a Case or a Line List?",
          "type": "choice",
          "required": true,
          "answerOption": [
            {
              "valueCoding": {
                "code": "Case",
                "display": "Case"
              }
            },
            {
              "valueCoding": {
                "code": "Line List",
                "display": "Line List"
              }
            }
          ]
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "page",
                "display": "Page"
              }
            ]
          }
        }
      ],
      "linkId": "736291402384",
      "text": "Vaccination History",
      "type": "group",
      "item": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            }
          ],
          "linkId": "517772812375",
          "text": "Was patient vaccinated against illness?",
          "type": "choice",
          "required": true,
          "answerOption": [
            {
              "valueCoding": {
                "code": "yes",
                "display": "Yes"
              }
            },
            {
              "valueCoding": {
                "code": "no",
                "display": "No"
              }
            },
            {
              "valueCoding": {
                "code": "unknown",
                "display": "Unknown"
              }
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "valueInteger": 8
            }
          ],
          "linkId": "886125589225",
          "text": "If yes, number of doses",
          "type": "integer",
          "enableWhen": [
            {
              "question": "517772812375",
              "operator": "=",
              "answerCoding": {
                "code": "yes",
                "display": "Yes"
              }
            }
          ],
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            }
          ],
          "linkId": "308128177300",
          "text": "MR vaccination given in last 30 days prior to onset of illness",
          "type": "choice",
          "required": true,
          "answerOption": [
            {
              "valueCoding": {
                "code": "yes",
                "display": "Yes"
              }
            },
            {
              "valueCoding": {
                "code": "no",
                "display": "No"
              }
            },
            {
              "valueCoding": {
                "code": "unknown",
                "display": "Unknown"
              }
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
              "valueString": "d/M/y"
            },
            {
              "url": "http://ehelse.no/fhir/StructureDefinition/validationtext",
              "valueString": "Cannot be a date in the future"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "_valueDate": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue",
                    "valueExpression": {
                      "language": "text/fhirpath",
                      "expression": "today()"
                    }
                  }
                ]
              }
            },
            {
              "extension": [
                {
                  "url": "key",
                  "valueId": "constraint-1"
                },
                {
                  "url": "requirements",
                  "valueString": "Date of last vaccination should be before Date of onset of illness"
                },
                {
                  "url": "severity",
                  "valueCode": "error"
                },
                {
                  "url": "expression",
                  "valueString": "%context.answer.value <= %resource.descendants().where(linkId='728034137219').answer.value"
                },
                {
                  "url": "human",
                  "valueString": "Date of last vaccination should be before Date of onset of illness"
                },
                {
                  "url": "location",
                  "valueString": "728034137219"
                }
              ],
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint"
            }
          ],
          "linkId": "544290619304",
          "text": "Date of last vaccination",
          "type": "date",
          "enableWhen": [
            {
              "question": "308128177300",
              "operator": "=",
              "answerCoding": {
                "code": "yes",
                "display": "Yes"
              }
            }
          ],
          "required": true
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "page",
                "display": "Page"
              }
            ]
          }
        }
      ],
      "linkId": "271053545237",
      "text": "Sample/Specimen Collection",
      "type": "group",
      "enableWhen": [
        {
          "question": "865158268604",
          "operator": "=",
          "answerCoding": {
            "code": "Case",
            "display": "Case"
          }
        }
      ],
      "item": [
        {
          "linkId": "412689284625",
          "text": "Please select specimen collected",
          "type": "choice",
          "required": true,
          "repeats": true,
          "answerOption": [
            {
              "valueCoding": {
                "code": "Blood",
                "display": "Blood"
              }
            },
            {
              "valueCoding": {
                "code": "Urine",
                "display": "Urine"
              }
            },
            {
              "valueCoding": {
                "code": "Respiratory Sample",
                "display": "Respiratory Sample"
              }
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
              "valueString": "d/M/y"
            },
            {
              "url": "http://ehelse.no/fhir/StructureDefinition/validationtext",
              "valueString": "Cannot be a date in the future"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "_valueDate": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue",
                    "valueExpression": {
                      "language": "text/fhirpath",
                      "expression": "today()"
                    }
                  }
                ]
              }
            },
            {
              "extension": [
                {
                  "url": "key",
                  "valueId": "constraint-1"
                },
                {
                  "url": "requirements",
                  "valueString": "Date of Specimen Collection should be after the date 1st seen at the facility"
                },
                {
                  "url": "severity",
                  "valueCode": "error"
                },
                {
                  "url": "expression",
                  "valueString": "%context.answer.value >= %resource.descendants().where(linkId='554231819382').answer.value"
                },
                {
                  "url": "human",
                  "valueString": "Date of Specimen Collection should be after the date 1st seen at the facility"
                },
                {
                  "url": "location",
                  "valueString": "554231819382"
                }
              ],
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint"
            }
          ],
          "linkId": "8962468583341",
          "text": "Date of specimen collection",
          "type": "date",
          "enableWhen": [
            {
              "question": "412689284625",
              "operator": "exists",
              "answerBoolean": true
            }
          ],
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button",
                    "display": "Radio Button"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCode": "horizontal"
            }
          ],
          "linkId": "258912872921",
          "text": "Were other specimen types collected?",
          "type": "choice",
          "required": true,
          "answerOption": [
            {
              "valueCoding": {
                "code": "yes",
                "display": "Yes"
              }
            },
            {
              "valueCoding": {
                "code": "no",
                "display": "No"
              }
            }
          ]
        },
        {
          "linkId": "340507649387",
          "text": "If yes, specify other specimen type",
          "type": "string",
          "enableWhen": [
            {
              "question": "258912872921",
              "operator": "=",
              "answerCoding": {
                "code": "yes",
                "display": "Yes"
              }
            }
          ],
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
              "valueString": "d/M/y"
            },
            {
              "url": "http://ehelse.no/fhir/StructureDefinition/validationtext",
              "valueString": "Cannot be a date in the future"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "_valueDate": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue",
                    "valueExpression": {
                      "language": "text/fhirpath",
                      "expression": "today()"
                    }
                  }
                ]
              }
            },
            {
              "extension": [
                {
                  "url": "key",
                  "valueId": "constraint-1"
                },
                {
                  "url": "requirements",
                  "valueString": "Date of Specimen Collection should be after the date 1st seen at the facility"
                },
                {
                  "url": "severity",
                  "valueCode": "error"
                },
                {
                  "url": "expression",
                  "valueString": "%context.answer.value >= %resource.descendants().where(linkId='554231819382').answer.value"
                },
                {
                  "url": "human",
                  "valueString": "Date of Specimen Collection should be after the date 1st seen at the facility"
                },
                {
                  "url": "location",
                  "valueString": "554231819382"
                }
              ],
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint"
            }
          ],
          "linkId": "699353598445",
          "text": "Date of other specimen type collection",
          "type": "date",
          "enableWhen": [
            {
              "question": "258912872921",
              "operator": "=",
              "answerCoding": {
                "code": "yes",
                "display": "Yes"
              }
            }
          ],
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
              "valueString": "d/M/y"
            },
            {
              "url": "http://ehelse.no/fhir/StructureDefinition/validationtext",
              "valueString": "Cannot be a date in the future"
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/maxValue",
              "_valueDate": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/cqf-calculatedValue",
                    "valueExpression": {
                      "language": "text/fhirpath",
                      "expression": "today()"
                    }
                  }
                ]
              }
            },
            {
              "extension": [
                {
                  "url": "key",
                  "valueId": "constraint-1"
                },
                {
                  "url": "requirements",
                  "valueString": "The date should be after the specimen collection date"
                },
                {
                  "url": "severity",
                  "valueCode": "error"
                },
                {
                  "url": "expression",
                  "valueString": "%context.answer.value >= %resource.descendants().where(linkId='8962468583341').answer.value"
                },
                {
                  "url": "human",
                  "valueString": "The date should be after the specimen collection date"
                },
                {
                  "url": "location",
                  "valueString": "8962468583341"
                }
              ],
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint"
            }
          ],
          "linkId": "718251724172",
          "text": "Date specimen sent to lab",
          "type": "date",
          "required": true
        }
      ]
    }
  ]
}