{
  "resourceType": "Questionnaire",
  "id": "sf-3353",
  "meta": {
    "extension": [
      {
        "url": "http://hapifhir.io/fhir/StructureDefinition/resource-meta-source",
        "valueUri": "#0oeSx9nhi3dXpcjM"
      }
    ],
    "versionId": "45",
    "lastUpdated": "2023-07-25T02:39:52.956+00:00",
    "tag": [
      {
        "system": "https://qhr-devops.health.qld.gov.au/fhir/CodeSystem/formbuilder-editor-version",
        "code": "1.10.1"
      },
      {
        "system": "https://qhr-devops.health.qld.gov.au/fhir/CodeSystem/formbuilder-editor-version",
        "code": "1.16.0"
      },
      {
        "system": "https://qhr-devops.health.qld.gov.au/fhir/CodeSystem/formbuilder-editor-version",
        "code": "1.10.0"
      },
      {
        "system": "https://qhr-devops.health.qld.gov.au/fhir/CodeSystem/formbuilder-editor-version",
        "code": "1.8.0"
      },
      {
        "system": "https://qhr-devops.health.qld.gov.au/fhir/CodeSystem/formbuilder-runtime-version",
        "code": "11.21.0"
      },
      {
        "system": "https://qhr-devops.health.qld.gov.au/fhir/CodeSystem/formbuilder-runtime-version",
        "code": "11.25.4"
      },
      {
        "system": "https://qhr-devops.health.qld.gov.au/fhir/CodeSystem/formbuilder-runtime-version",
        "code": "11.14.2"
      },
      {
        "system": "https://qhr-devops.health.qld.gov.au/fhir/CodeSystem/formbuilder-editor-version",
        "code": "1.9.0"
      },
      {
        "system": "https://qhr-devops.health.qld.gov.au/fhir/CodeSystem/form-tags",
        "code": "QLD SIT and UAT release 18/07/23"
      },
      {
        "system": "https://qhr-devops.health.qld.gov.au/fhir/CodeSystem/formbuilder-runtime-version",
        "code": "11.18.0"
      }
    ]
  },
  "extension": [
    {
      "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-has-been-published",
      "valueBoolean": true
    },
    {
      "extension": [
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/auto-select-name",
          "valueString": "Gestational diabetes"
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/auto-select-value",
          "valueReference": {
            "identifier": {
              "value": "https://qhr-devops.health.qld.gov.au/fhir/LOINC-LFT"
            },
            "display": "LFT"
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/auto-select-value",
          "valueReference": {
            "identifier": {
              "value": "https://qhr-devops.health.qld.gov.au/fhir/lab_UPCR"
            },
            "display": "Urine protein creatinine ratio"
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/auto-select-value",
          "valueReference": {
            "identifier": {
              "value": "https://qhr-devops.health.qld.gov.au/fhir/gtt"
            },
            "display": "OGTT"
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/auto-select-value",
          "valueReference": {
            "identifier": {
              "value": "https://qhr-devops.health.qld.gov.au/fhir/LOINC-FastingGlucose-Glucose"
            },
            "display": "Fasting blood glucose"
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/auto-select-value",
          "valueReference": {
            "identifier": {
              "value": "https://qhr-devops.health.qld.gov.au/fhir/HbA1c"
            },
            "display": "HbA1c"
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/auto-select-value",
          "valueReference": {
            "identifier": {
              "value": "https://qhr-devops.health.qld.gov.au/fhir/LOINC-UEC-UandE"
            },
            "display": "U&E"
          }
        }
      ],
      "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/auto-select-data"
    },
    {
      "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/form-data-source",
      "valueString": "previous-response"
    },
    {
      "extension": [
        {
          "extension": [
            {
              "extension": [
                {
                  "url": "indexabledata.specialtycondition.specialty",
                  "valueCoding": {
                    "system": "https://qhr-devops.health.qld.gov.au/fhir/cs/GPSR_specialties",
                    "code": "20.53",
                    "display": "Obstetrics - Management of Complex Pregnancy"
                  }
                },
                {
                  "url": "indexabledata.specialtycondition.condition",
                  "valueCoding": {
                    "system": "https://qhr-devops.health.qld.gov.au/fhir/cs/GPSR_conditions",
                    "code": "CPC0412",
                    "display": "Gestational Diabetes Mellitus (Antenatal) (Adult)"
                  }
                }
              ],
              "url": "instance"
            }
          ],
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/indexable-data/questionnaire-specialty-condition"
        }
      ],
      "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/application-indexable-data"
    },
    {
      "extension": [
        {
          "extension": [
            {
              "url": "language",
              "valueString": "text/fhirpath"
            },
            {
              "url": "variable-condition",
              "valueString": "{\"id\":\"c2c2b78b-2043-46e0-2a28-a047d83d5940\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\",\"conditions\":[{\"id\":\"f1c028e1-cf35-a047-9f79-16f29c2e3785\",\"type\":\"condition\",\"item\":{\"text\":\"Private or Clinical override\",\"value\":\"d0bd7ce7-4981-a213-97aa-bb5a86b342ac\",\"dataType\":\"boolean\",\"container\":{\"type\":\"none\",\"id\":null},\"operators\":\"boolean\",\"options\":[{\"display\":\"true\",\"value\":true},{\"display\":\"false\",\"value\":false}],\"showEligibleWhenOption\":false},\"coded\":false,\"operator\":\"=\",\"operand\":false}]}"
            },
            {
              "url": "name",
              "valueString": "Essential"
            },
            {
              "url": "expression",
              "valueString": "%context.descendants().select(where(linkId='d0bd7ce7-4981-a213-97aa-bb5a86b342ac')).answer.valueBoolean=false"
            }
          ],
          "url": "http://hl7.org/fhir/StructureDefinition/variable"
        }
      ],
      "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/variables"
    },
    {
      "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-layout-type",
      "valueString": "standard"
    }
  ],
  "name": "QLD Antenatal - Gestational Diabetes Mellitus 3353",
  "title": "QLD Antenatal - Gestational Diabetes Mellitus 3353",
  "status": "active",
  "publisher": "qhRefer Template Manager",
  "useContext": [
    {
      "code": {
        "code": "R1",
        "display": "Referral form"
      },
      "valueCodeableConcept": {
        "coding": [
          {
            "code": "R1",
            "display": "Referral form"
          }
        ]
      }
    }
  ],
  "jurisdiction": [
    {
      "coding": [
        {
          "code": "PHN306",
          "display": "Central Queensland and Sunshine Coast PHN"
        }
      ]
    }
  ],
  "item": [
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "list"
              }
            ]
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
          "valueString": "{\"id\":\"875ce591-3bab-fd21-da46-65efda151c13\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
        }
      ],
      "linkId": "34e7e29c-f6d6-6a1e-d2c6-3ff332078e91",
      "type": "group",
      "enableWhen": [
        {
          "id": "08659acf-dbb9-8679-7cb2-45e6f46ab60c",
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
              "valueString": "="
            }
          ],
          "question": "3976b0fa-3f13-8745-b9be-b32e8251e84c",
          "hasAnswer": false,
          "answerBoolean": true
        }
      ],
      "item": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"37e6cc80-1f2d-a8e9-a684-16356354e0f9\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"3ee6a54e-a0ff-143e-6a49-5eaa64a44685\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            }
          ],
          "linkId": "5087b504-d9cb-56f6-7d51-4aa15fef0c65",
          "text": "Show emergency referral criteria",
          "type": "choice",
          "required": false,
          "option": [
            {
              "valueString": "Show"
            },
            {
              "valueString": "Hide"
            }
          ],
          "initialString": "Hide"
        },
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "21b58439-8183-8680-c59f-b7abcc911f78",
          "type": "display",
          "enableWhen": [
            {
              "id": "51ac323f-682e-3ac6-b63e-abacd1d4682e",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "5087b504-d9cb-56f6-7d51-4aa15fef0c65",
              "hasAnswer": false,
              "answerString": "Show"
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                }
              ],
              "text": "**If any of the following are present or suspected, please refer the patient to the emergency department (via ambulance if necessary) or follow local emergency care protocols or seek emergent medical advice if in a remote region**\n\n* Diabetic ketoacidosis\n* Diabetes and severe vomiting\n* Acute severe hyperglycaemia\n* Acute severe hypoglycaemia",
              "type": "display"
            }
          ]
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "list"
              }
            ]
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
          "valueString": "{\"id\":\"36565275-e3b0-e184-856f-3a9040330d17\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
        }
      ],
      "linkId": "c1cf9c5d-ac72-1ffe-8746-d14a25ed4cfb",
      "text": "Minimum Referral Criteria",
      "type": "group",
      "enableWhen": [
        {
          "id": "ced21bdd-9f3e-4777-3833-709123bdc834",
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
              "valueString": "="
            }
          ],
          "question": "b34a1f8f-5364-799f-8009-b1f1981275c9",
          "hasAnswer": false,
          "answerBoolean": true
        }
      ],
      "item": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "check-box"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/choice-list-orientation",
                    "code": "vertical"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"4575f651-6dcb-8ac2-89ee-350f626d67e1\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"582ec602-2d96-b882-3727-b54889d9291e\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "http://hl7.org/fhir/layout-columns",
              "valueString": "3-columns"
            }
          ],
          "linkId": "70271412-10e2-8bef-f441-99241915f74d",
          "text": "Minimum referral criteria",
          "type": "choice",
          "required": true,
          "option": [
            {
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/option/none-of-the-above",
                  "valueBoolean": false
                }
              ],
              "valueString": "Gestational diabetes (GDM), or diabetes first recognised during pregnancy"
            },
            {
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/option/none-of-the-above",
                  "valueBoolean": true
                }
              ],
              "valueString": "Request clinical override of minimum referral criteria"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"d5c8da9e-a9b1-4fef-e836-86f4a97a126d\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"71aee3ba-edf8-b589-a1ae-4986d801c4ff\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            }
          ],
          "linkId": "8826a3af-bcd2-040e-e68a-919e29276b64",
          "text": "Please describe reason(s) for clinical override request",
          "type": "text",
          "enableWhen": [
            {
              "id": "73367e7d-6a9f-8159-debe-539acad1588d",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "70271412-10e2-8bef-f441-99241915f74d",
              "hasAnswer": false,
              "answerString": "Request clinical override of minimum referral criteria"
            }
          ],
          "required": true
        },
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": false
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "9dbe4178-06cf-acff-09f8-def6b16bde96",
          "definition": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/specialty-form-question-definition#cpcUrgency30Days",
          "text": "CPC Clinical Urgency",
          "type": "display",
          "enableWhen": [
            {
              "id": "4cf36b76-5e09-aa8d-89a9-f4a70703c53e",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "b9a11e57-9aed-5d2f-5b3e-854255bc344a",
              "hasAnswer": false,
              "answerBoolean": true
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                },
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/alternative-text",
                  "valueMarkdown": "Category 1 (appointment within 30 calendar days)"
                }
              ],
              "text": "**For optimum care, the patient should be seen within 1 week at maternity service. Please review your 'priority' selection.**\n\n**Note: pregnancy in a patient with existing diabetes requires early referral to maternity services**",
              "type": "display"
            }
          ]
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "list"
              }
            ]
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
          "valueString": "{\"id\":\"af8e44cf-abd3-b58b-4ed7-070613d2ed3b\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
        }
      ],
      "linkId": "8fea745c-6a0d-3140-879d-b37dd0145f23",
      "text": "Referral Indication",
      "type": "group",
      "enableWhen": [
        {
          "id": "ad6fe232-1f24-e383-30da-1712b33b19dc",
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
              "valueString": "="
            }
          ],
          "question": "7d15a5df-46da-53d5-482d-87c5e71b7683",
          "hasAnswer": false,
          "answerBoolean": true
        }
      ],
      "item": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "check-box"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/choice-list-orientation",
                    "code": "vertical"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"b22e22ea-6bf2-0237-5ef6-1729bf537c6b\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"1b7dec6a-fd38-44d9-278b-eb8b85c53a91\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "http://hl7.org/fhir/layout-columns",
              "valueString": "3-columns"
            }
          ],
          "linkId": "10a72e9a-e541-016d-0a80-c4fc3cb1e96e",
          "text": "Referral indication(s)",
          "type": "choice",
          "required": false,
          "option": [
            {
              "valueString": "Gestational diabetes (GDM), or diabetes first recognised during pregnancy"
            },
            {
              "valueString": "Antenatal care requiring review within 90 days"
            },
            {
              "valueString": "Other"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"8812a21f-c0ee-9fcb-31fe-9573286ba816\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"a76500be-bc50-5dcb-bccd-902518d6334e\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            }
          ],
          "linkId": "f1df68eb-22a8-d6e9-ca1f-329cd260467b",
          "text": "Please describe",
          "type": "text",
          "enableWhen": [
            {
              "id": "68ec2473-bd95-7bdf-875c-30f293320e75",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "10a72e9a-e541-016d-0a80-c4fc3cb1e96e",
              "hasAnswer": false,
              "answerString": "Other"
            }
          ],
          "required": false
        },
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "c635d7df-9c38-89bb-a4fc-9146f414d2fb",
          "type": "display",
          "enableWhen": [
            {
              "id": "98ace7a3-801b-3b03-fe39-04ad99cb7fbf",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "10a72e9a-e541-016d-0a80-c4fc3cb1e96e",
              "hasAnswer": false,
              "answerString": "Gestational diabetes (GDM), or diabetes first recognised during pregnancy"
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                }
              ],
              "text": "**For optimum care, the patient should be seen within 1 week at maternity service**\n\n**Note: pregnancy in a patient with existing diabetes requires early referral to maternity services**",
              "type": "display"
            }
          ]
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "list"
              }
            ]
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
          "valueString": "{\"id\":\"de878df6-106b-aea7-79d2-19f9417bab2e\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
        }
      ],
      "linkId": "d22da621-a905-493c-6149-5750a9d8f667",
      "text": "History and Examination",
      "type": "group",
      "enableWhen": [
        {
          "id": "a638e3fa-55d2-2c96-62ec-967c02a346b8",
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
              "valueString": "="
            }
          ],
          "question": "3976b0fa-3f13-8745-b9be-b32e8251e84c",
          "hasAnswer": false,
          "answerBoolean": true
        }
      ],
      "item": [
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "80940ffb-7ac9-f26b-fb77-d4b91bf09341",
          "type": "display",
          "enableWhen": [
            {
              "id": "f4d6f20b-a2d0-46a4-21b5-310e43857ae3",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "d0bd7ce7-4981-a213-97aa-bb5a86b342ac",
              "hasAnswer": false,
              "answerBoolean": false
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                }
              ],
              "text": "**Essential referral information:**\n\n**The most recent blood pressure and BMI recorded in the practice software (PMS) will automatically be included in the referral, please ensure that these are up to date**",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "f5e998fe-c21b-77f8-851b-fcdbfad1d4d7",
          "type": "display",
          "enableWhen": [
            {
              "id": "4fbd7cfb-ca08-0233-7809-bc42bbf8423e",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "d0bd7ce7-4981-a213-97aa-bb5a86b342ac",
              "hasAnswer": false,
              "answerBoolean": true
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                }
              ],
              "text": "**Recommended referral information:**\n\n**The most recent blood pressure and BMI recorded in the practice software (PMS) will automatically be included in the referral, please ensure that these are up to date**",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "number"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-selected-external-data-item",
              "valueString": "gravida"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"53decdee-a936-45bd-1458-b3a0d50475af\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/data-overridable",
              "valueBoolean": true
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "983d02b4-dbe8-62b9-19b2-765170c76247",
          "text": "Gravidity",
          "type": "quantity",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "number"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-selected-external-data-item",
              "valueString": "para"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"49aa2c6f-fc6f-5114-1845-7fb77709f5b0\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/data-overridable",
              "valueBoolean": true
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "99b3d1c0-129c-ce65-a073-81ea0910f321",
          "text": "Parity",
          "type": "quantity",
          "enableWhen": [
            {
              "id": "06ede5a9-8898-1b6e-1d6e-27353d6ef373",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": ">="
                }
              ],
              "question": "983d02b4-dbe8-62b9-19b2-765170c76247",
              "hasAnswer": false,
              "answerDecimal": 1
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "date-picker"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-selected-external-data-item",
              "valueString": "lnmp"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"4003b677-35d4-bf8d-1534-3b1e4aa4a046\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/data-overridable",
              "valueBoolean": true
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "469f8b70-88c0-a091-27e2-6ae51d7fa3a9",
          "text": "Last normal menstrual period (LNMP)",
          "type": "date",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "date-picker"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-selected-external-data-item",
              "valueString": "edb"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"1be32fa2-3a9c-dcb7-1a5e-9c8dc8b7db6c\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/data-overridable",
              "valueBoolean": true
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "c956e346-1a3e-d3e7-db22-4297c1de1a93",
          "text": "Estimated date of birth (EDB)",
          "type": "date",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"a04886c7-b26d-9490-a1ba-2b3a01823c71\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"6db670df-3b4e-e0c4-aa57-b38c4064e1ea\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "f27f16b3-b1d1-36d5-3d81-45c68c3f2eef",
          "text": "Current pregnancy",
          "type": "choice",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Single"
            },
            {
              "valueString": "Multiple"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"93388e68-e91f-500f-8ef0-54869f4aa5d2\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"f66ad09e-0c64-8ae2-1781-09d3d12c1ad8\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            }
          ],
          "linkId": "e39c5161-0e5f-86bf-089c-a5930fe5beef",
          "text": "Please give details",
          "type": "text",
          "enableWhen": [
            {
              "id": "3fdf5b5f-04da-81b8-484c-240b3ed73a40",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "f27f16b3-b1d1-36d5-3d81-45c68c3f2eef",
              "hasAnswer": false,
              "answerString": "Multiple"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"a04886c7-b26d-9490-a1ba-2b3a01823c71\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"0a02452d-e425-9dba-8dcb-8d6455590e85\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "54fbacf5-1d59-2da8-daa2-df7b60338e87",
          "text": "Details of past obstetric history known",
          "type": "choice",
          "enableWhen": [
            {
              "id": "1b2415d7-e53f-a587-d2f6-71fe965389a8",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": ">="
                }
              ],
              "question": "983d02b4-dbe8-62b9-19b2-765170c76247",
              "hasAnswer": false,
              "answerDecimal": 1
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Yes"
            },
            {
              "valueString": "No"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "17ad0bc0-775c-5a50-075a-4361ed1fb7a3",
          "type": "display",
          "enableWhen": [
            {
              "id": "2bf54d39-c964-a025-d950-2d34cd84df73",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "54fbacf5-1d59-2da8-daa2-df7b60338e87",
              "hasAnswer": false,
              "answerString": "Yes"
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                }
              ],
              "text": "**For each pregnancy, please provide details of outcome:**",
              "type": "display"
            }
          ]
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "repeating-list"
              }
            ]
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/minimum-repeats",
          "valueInteger": 1
        }
      ],
      "linkId": "f8f0ad1e-520a-cc68-9280-cd2223712969",
      "text": "Pregnancy",
      "type": "group",
      "enableWhen": [
        {
          "id": "e9918e20-cf34-dd9a-aaf2-d97509206d9b",
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
              "valueString": "="
            }
          ],
          "question": "54fbacf5-1d59-2da8-daa2-df7b60338e87",
          "hasAnswer": false,
          "answerString": "Yes"
        }
      ],
      "repeats": true,
      "item": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "radio-button"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/choice-list-orientation",
                    "code": "vertical"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"009c1705-bca1-10f4-eee2-0a26ce0d4a6b\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"43d0e94f-be07-1c71-82ae-d801aac14cd6\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "http://hl7.org/fhir/layout-columns",
              "valueString": "3-columns"
            }
          ],
          "linkId": "3ce5531e-368d-4751-a214-468376afd0ef",
          "text": "Pregnancy",
          "type": "choice",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Full term"
            },
            {
              "valueString": "Preterm"
            },
            {
              "valueString": "Stillbirth"
            },
            {
              "valueString": "Miscarriage"
            },
            {
              "valueString": "Ectopic pregnancy"
            },
            {
              "valueString": "Termination of pregnancy"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"c764116b-a3f8-46e7-c458-2eb38420c05a\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"36ee64ec-8f7f-5c18-945e-6baea968646b\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            }
          ],
          "linkId": "9185e3f0-e721-3e92-d3c8-fb6c304c877b",
          "text": "Please give details",
          "type": "text",
          "enableWhen": [
            {
              "id": "99f92755-d68e-f32c-6882-a5cdbfe4d72f",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Miscarriage"
            },
            {
              "id": "d0c9cf5d-589a-6293-a4ea-44dff0f2285d",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Ectopic pregnancy"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"b36d8596-51df-ca45-bc07-f64a22095653\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"4cb7a627-9e70-eec1-e92c-c883683386a4\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "d763c89e-b40c-543e-f5bc-6ede4f9af401",
          "text": "Date of birth",
          "type": "choice",
          "enableWhen": [
            {
              "id": "6f3d7a46-b3bf-0343-2ce7-83396800cc09",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Full term"
            },
            {
              "id": "c9b16745-2923-bfe2-6c51-0081de69fe25",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Preterm"
            },
            {
              "id": "8f531764-c27d-af69-d882-18d074390559",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Stillbirth"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Known"
            },
            {
              "valueString": "Unknown"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "date-picker"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-date-picker-restriction",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/date-picker-restriction"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"ecb43616-6fa4-2a4e-31c8-c769e78e1b28\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"896f7b29-c947-2038-dbbb-0b715d14a44c\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "24fb0ccd-7a6b-3a70-e84b-8f0b489c972b",
          "text": "Date of birth",
          "type": "date",
          "enableWhen": [
            {
              "id": "4f2689c1-f80e-2991-2d4e-d1d8117d83dc",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "d763c89e-b40c-543e-f5bc-6ede4f9af401",
              "hasAnswer": false,
              "answerString": "Known"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"b36d8596-51df-ca45-bc07-f64a22095653\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"1cb003c1-3288-35a1-4e64-f1c68f751fd3\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "7cb3afc2-66e0-f843-8b11-7674450fec15",
          "text": "Gestation",
          "type": "choice",
          "enableWhen": [
            {
              "id": "4db5d969-409a-3e3f-5de9-7de3d599de0c",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "has-value"
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": true
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Known"
            },
            {
              "valueString": "Unknown"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-box"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"c1e9e8be-da62-5abf-d522-f566cc4e9a41\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"ce38f846-1fdd-8034-d384-95f850049c22\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "3f33f86e-78e0-a90f-7a4f-10c7bbf70b6f",
          "text": "Gestation",
          "type": "string",
          "enableWhen": [
            {
              "id": "badb2f17-ef08-eb10-3323-41e2b1a39a96",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "7cb3afc2-66e0-f843-8b11-7674450fec15",
              "hasAnswer": false,
              "answerString": "Known"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"b36d8596-51df-ca45-bc07-f64a22095653\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"7a6cf402-0042-c00d-5391-be786d61f8fb\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "275ea93f-8802-fd8c-8bfb-ad2ed0117163",
          "text": "Mode of birth",
          "type": "choice",
          "enableWhen": [
            {
              "id": "1b6f61a5-76de-1be3-0f4e-244c7037ddd0",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Full term"
            },
            {
              "id": "04607ef0-1b6e-9de4-aa96-b480083b974b",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Preterm"
            },
            {
              "id": "432927fb-5e9a-d483-70c6-073a8c71cfde",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Stillbirth"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Known"
            },
            {
              "valueString": "Unknown"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-box"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"c1e9e8be-da62-5abf-d522-f566cc4e9a41\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"6542b714-7a41-b988-659b-6b567290400e\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "e7ef2f77-f1a0-8254-98c7-7fa06bd3538e",
          "text": "Mode of birth",
          "type": "string",
          "enableWhen": [
            {
              "id": "1258c0c0-b458-3acb-0e37-bbf8885366d1",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "275ea93f-8802-fd8c-8bfb-ad2ed0117163",
              "hasAnswer": false,
              "answerString": "Known"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"b36d8596-51df-ca45-bc07-f64a22095653\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"5b66837b-0cf6-40f9-d9e5-6cc43e14514d\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "0927b489-3e49-6c8e-ddc9-2a3292f3746c",
          "text": "Birth weight",
          "type": "choice",
          "enableWhen": [
            {
              "id": "6b581e5e-2342-6b79-ec40-dbc172e86389",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Full term"
            },
            {
              "id": "cd011ef4-329c-66b1-6ac7-43c4769618d3",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Preterm"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Known"
            },
            {
              "valueString": "Unknown"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-box"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"c1e9e8be-da62-5abf-d522-f566cc4e9a41\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"7472ab26-844d-03a8-2980-0348e2064990\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "41505b64-a508-0052-66c6-890441d9bb26",
          "text": "Birth weight",
          "type": "string",
          "enableWhen": [
            {
              "id": "e21916d2-2bec-6506-e1bc-2d9e69c998e1",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "0927b489-3e49-6c8e-ddc9-2a3292f3746c",
              "hasAnswer": false,
              "answerString": "Known"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"b36d8596-51df-ca45-bc07-f64a22095653\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"a35f170d-3765-6afa-a55c-e33d79d5743a\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "53642749-8175-c5b4-0890-e627eccd79a5",
          "text": "Place of birth",
          "type": "choice",
          "enableWhen": [
            {
              "id": "2224c4b2-1fbc-e7e9-7af0-e8bf8194a1f8",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Full term"
            },
            {
              "id": "e15577ae-4290-c521-c849-b9995ea1fc6b",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Preterm"
            },
            {
              "id": "6a2c8859-b38e-9e59-aca7-17f44cc373c7",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Stillbirth"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Known"
            },
            {
              "valueString": "Unknown"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-box"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"c1e9e8be-da62-5abf-d522-f566cc4e9a41\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"9cb7d034-c5ae-5a6f-343e-1c73deca130d\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "0db9552c-6bb5-6329-7663-1b1619ccd988",
          "text": "Place of birth",
          "type": "string",
          "enableWhen": [
            {
              "id": "f87c730c-5edc-9aab-745f-84d724e53f6c",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "53642749-8175-c5b4-0890-e627eccd79a5",
              "hasAnswer": false,
              "answerString": "Known"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"ec9c147b-b756-84e9-d977-f337d8d073d7\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"450e81df-3410-184d-3eb5-4421d9d1de74\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-hover",
              "valueString": "E.G., Gestational diabetes mellitus (GDM), fetal growth restriction, pre-eclampsia, antepartum haemorrhage (APH)"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "8fde4796-9ed0-d554-e7f7-3143040978f0",
          "text": "Complications of pregnancy",
          "type": "choice",
          "enableWhen": [
            {
              "id": "5b70d9d0-0535-1a6b-9eaa-f6cf714c1121",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Full term"
            },
            {
              "id": "f17ac00d-355c-41a2-dc87-2b27f03a2eb8",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Preterm"
            },
            {
              "id": "bde786c0-5b5c-1821-7eeb-bbc7d2072ba8",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Stillbirth"
            },
            {
              "id": "7bee8910-1ab0-e7ef-0e9d-afc92747f85e",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Miscarriage"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Yes"
            },
            {
              "valueString": "No"
            },
            {
              "valueString": "Unknown"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"c764116b-a3f8-46e7-c458-2eb38420c05a\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"a7c7b185-7e06-359e-0fd6-3e48f4f369af\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            }
          ],
          "linkId": "fbda17b3-31a1-c8cd-4201-b2507151b3d5",
          "text": "Please give details",
          "type": "text",
          "enableWhen": [
            {
              "id": "28d9eff0-67fb-9d0d-e944-32d66687ef67",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "8fde4796-9ed0-d554-e7f7-3143040978f0",
              "hasAnswer": false,
              "answerString": "Yes"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"ec9c147b-b756-84e9-d977-f337d8d073d7\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"22f615b7-ba73-75fc-7577-d223d0f8edae\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-hover",
              "valueString": "E.G., postpartum haemorrhage (PPH), preterm birth, stillbirth, pre-existing trauma"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "8966e56a-5fff-c907-5838-a54755d9de9f",
          "text": "Complications of birth",
          "type": "choice",
          "enableWhen": [
            {
              "id": "2700882d-3b9b-ccd9-480b-239ebb3f3fec",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Full term"
            },
            {
              "id": "7e99dd91-fcf4-d438-ee33-c7f76a59cf27",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Preterm"
            },
            {
              "id": "eb667052-8913-2761-ed37-7f58786356ea",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Stillbirth"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Yes"
            },
            {
              "valueString": "No"
            },
            {
              "valueString": "Unknown"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"671f07cc-8da8-e37c-d52e-416e94fb2314\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"66eadbeb-9380-6790-0dfb-1c6bd045580c\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            }
          ],
          "linkId": "374f88d3-4025-c76b-57bb-82b19c5f6270",
          "text": "Please give details",
          "type": "text",
          "enableWhen": [
            {
              "id": "d641c70d-b3cc-4d95-f843-3a5c4173c405",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "8966e56a-5fff-c907-5838-a54755d9de9f",
              "hasAnswer": false,
              "answerString": "Yes"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"d27c8035-19c9-4440-7976-765e94c379f9\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"019eaa96-4dc1-c5b9-3d0f-c74b1621672a\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            }
          ],
          "linkId": "6b4d61c3-70c0-80a2-b736-256f1006ef84",
          "text": "Previous neonatal admission to SCN/NICU",
          "type": "choice",
          "enableWhen": [
            {
              "id": "dbaf5401-8f3d-5422-696c-7880b34d1a67",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Full term"
            },
            {
              "id": "9897b39e-642c-3171-d203-d2d770011596",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "3ce5531e-368d-4751-a214-468376afd0ef",
              "hasAnswer": false,
              "answerString": "Preterm"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Yes"
            },
            {
              "valueString": "No"
            },
            {
              "valueString": "Unknown"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"27a485eb-04d9-de34-2dfc-17faacc496c3\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"6ea12aea-c87d-5a95-5f6c-1f2637c77b80\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            }
          ],
          "linkId": "d720e454-c1b9-6f73-2fd6-3decfd6cd665",
          "text": "Please give details",
          "type": "text",
          "enableWhen": [
            {
              "id": "353b69cc-2377-de4b-71e1-7767de98387d",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "6b4d61c3-70c0-80a2-b736-256f1006ef84",
              "hasAnswer": false,
              "answerString": "Yes"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "list"
              }
            ]
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
          "valueString": "{\"id\":\"4239b6f9-9f1f-60cc-357c-85cea1472e51\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
        }
      ],
      "linkId": "3c8d1da6-0f16-236a-a2e4-58dffd44424a",
      "type": "group",
      "enableWhen": [
        {
          "id": "45531cbc-eb61-f72a-fa8a-dbb7c9f56e36",
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
              "valueString": "="
            }
          ],
          "question": "3976b0fa-3f13-8745-b9be-b32e8251e84c",
          "hasAnswer": false,
          "answerBoolean": true
        }
      ],
      "item": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"a7c21c84-da24-0b09-cfb0-79b901407996\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"90966710-150b-4cca-083a-938e97092826\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-hover",
              "valueString": "Including psychotropic drugs such as sodium valproate, lithium and other medications with recognised fetal implications"
            }
          ],
          "linkId": "5d696252-0c64-7281-c9dd-854e213abced",
          "text": "Current or recent medications with recognised fetal implications",
          "type": "choice",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Yes"
            },
            {
              "valueString": "No"
            },
            {
              "valueString": "Unknown"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"54936c8e-08b2-36e3-1004-4325e449e90e\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"e81bd60c-876e-572d-8736-705186fb5eaf\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            }
          ],
          "linkId": "58e73534-83fa-26ee-b908-59473b658d79",
          "text": "Please describe",
          "type": "text",
          "enableWhen": [
            {
              "id": "ff14ea41-6cc1-c0e5-3b1c-d4e9741e90ad",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "5d696252-0c64-7281-c9dd-854e213abced",
              "hasAnswer": false,
              "answerString": "Yes"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"37ac3fb0-6ba3-c4e9-4a73-d7220e9a0def\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"e58db0ed-689b-0982-120a-b0a746d15407\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-hover",
              "valueString": "Including details of any risk factors/comorbidities (e.g. diabetes, obesity, bariatric surgery, asthma, cardiac, renal or liver disease, hypertension, eating disorders, mental health concerns, substance abuse etc.)"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            }
          ],
          "linkId": "96c2cef4-a2f2-3ecc-b785-0b28ce147cf6",
          "text": "Relevant medical, surgical and psychosocial history",
          "type": "text",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"531e8dfb-ea63-8c7f-3f07-2c2c0021bdf3\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"3c258484-bffe-4fdf-37f2-b2144b9a8bb3\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            }
          ],
          "linkId": "88b4876b-9822-af2a-254c-bd89d5806999",
          "text": "Drug, alcohol, and smoking history",
          "type": "text",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "9123443b-ccf2-f641-2994-4718492d967f",
          "type": "display",
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                }
              ],
              "text": "**Immunisation History**",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"da654310-f48a-bf9b-2ba0-f4b66834415a\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"125c5bd8-f59b-5277-5557-b431b1f3d18c\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            }
          ],
          "linkId": "8a755a8f-31bd-87e9-dc72-ea7d3e89f66a",
          "text": "Influenza (this season)",
          "type": "choice",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Yes"
            },
            {
              "valueString": "No"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"9e27acdd-c719-7352-ad1d-cee374fe8bf6\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"2795b4f5-f18c-1874-cb64-2a3f1c1a8bbf\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            }
          ],
          "linkId": "fb0c4572-40eb-5270-b897-0467fb6df795",
          "text": "COVID-19 (any vaccinations)",
          "type": "choice",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Yes"
            },
            {
              "valueString": "No"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "check-box"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/choice-list-orientation",
                    "code": "vertical"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/layout-columns",
              "valueString": "3-columns"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"8aa2d9ae-9713-3ee6-3c1f-c991803deb23\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"ec0ea86b-2014-a095-a270-f880a3d7f12c\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            }
          ],
          "linkId": "27b6a09a-39e3-e748-2525-e32f4b782cf1",
          "text": "COVID vaccination",
          "type": "choice",
          "enableWhen": [
            {
              "id": "02b4ea9d-499b-2cc9-3611-a68519ec765f",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "fb0c4572-40eb-5270-b897-0467fb6df795",
              "hasAnswer": false,
              "answerString": "Yes"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/option/none-of-the-above",
                  "valueBoolean": false
                }
              ],
              "valueString": "Up to date"
            },
            {
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/option/none-of-the-above",
                  "valueBoolean": false
                }
              ],
              "valueString": "Dose during current pregnancy"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"da654310-f48a-bf9b-2ba0-f4b66834415a\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"ae992c9b-0c7d-da98-347e-c430e95042c1\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            }
          ],
          "linkId": "0e92db10-465f-c614-6e37-2145412f726c",
          "text": "Has Pertussis been discussed and planned for after 20 weeks",
          "type": "choice",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Yes"
            },
            {
              "valueString": "No"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "3d1ac29f-6507-6e59-627a-feb89c4a3a9e",
          "type": "display",
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                }
              ],
              "text": "**Ethnicity:**",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "check-box"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/choice-list-orientation",
                    "code": "vertical"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"6e1b9568-a93a-2a15-773e-9a374ae29fcb\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "http://hl7.org/fhir/layout-columns",
              "valueString": "3-columns"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"3832a33f-7248-885a-255d-4ef39bf15307\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            }
          ],
          "linkId": "a57cbc74-6287-086d-7144-7be82ad19e9c",
          "text": "Indigenous status",
          "type": "choice",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/option/none-of-the-above",
                  "valueBoolean": false
                }
              ],
              "valueString": "Aboriginal"
            },
            {
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/option/none-of-the-above",
                  "valueBoolean": false
                }
              ],
              "valueString": "Torres Strait Islander"
            },
            {
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/option/none-of-the-above",
                  "valueBoolean": true
                }
              ],
              "valueString": "Neither Aboriginal nor Torres Strait Islander"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "drop-down-multiselect"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"2e5c9aba-05bd-8df8-6bdf-6860b047af54\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"84bd6e26-67be-a426-2a9a-f4c68178b0f2\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-hover",
              "valueString": "Select all that apply"
            }
          ],
          "linkId": "986972f2-be99-465e-3fde-11cd29917ad7",
          "text": "Ethnicity",
          "type": "choice",
          "enableWhen": [
            {
              "id": "0ce342fb-8e18-45c4-8a68-623049cac281",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "a57cbc74-6287-086d-7144-7be82ad19e9c",
              "hasAnswer": false,
              "answerString": "Neither Aboriginal nor Torres Strait Islander"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "European"
            },
            {
              "valueString": "Pacifica"
            },
            {
              "valueString": "Maori"
            },
            {
              "valueString": "Other Oceanian"
            },
            {
              "valueString": "North African and Middle Eastern"
            },
            {
              "valueString": "South- East Asian"
            },
            {
              "valueString": "North-East Asian"
            },
            {
              "valueString": "Southern and Central Asian"
            },
            {
              "valueString": "Peoples of the Americas"
            },
            {
              "valueString": "Sub-Saharan African"
            },
            {
              "valueString": "Other"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-box"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"67644f18-1b6f-8398-2706-1a1aa00f8e5d\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"6e33c8cb-032e-194b-9e4d-52d8492fe2c2\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            }
          ],
          "linkId": "7f6c02b8-93bf-9377-fb1e-bd311e46bcef",
          "text": "Please give details",
          "type": "string",
          "enableWhen": [
            {
              "id": "b727cef2-4d8c-c297-f383-b36566f2df1c",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "986972f2-be99-465e-3fde-11cd29917ad7",
              "hasAnswer": false,
              "answerString": "Other"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"936e494c-b9e8-0fab-4a4d-12fe4bce61da\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"2e91d40d-0d48-bb9a-2324-478b3cd0ffbd\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            }
          ],
          "linkId": "b7c98ded-dc9a-d517-a68b-9d22acc09780",
          "text": "Is an interpreter required",
          "type": "choice",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Yes"
            },
            {
              "valueString": "No"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-box"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"512344de-14b4-b904-4015-602c32f64d61\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"851ef12e-362a-58a3-929c-541b63ee5cef\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            }
          ],
          "linkId": "14737da5-a430-0f2e-3479-a7b212aef341",
          "text": "Language spoken",
          "type": "string",
          "enableWhen": [
            {
              "id": "e4478a78-e605-b459-691b-03bbb87e3ef2",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "b7c98ded-dc9a-d517-a68b-9d22acc09780",
              "hasAnswer": false,
              "answerString": "Yes"
            }
          ],
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          }
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"fe739a74-636c-5ed9-6794-10de40f28aa7\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"b714dbed-dfcf-d986-9372-48800b3c15e7\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            }
          ],
          "linkId": "7754c120-c6e8-ff2a-1eb1-260d6a933a09",
          "text": "Will the child identify as Aboriginal and/or Torres Strait Islander",
          "type": "choice",
          "required": false,
          "_required": {
            "extension": [
              {
                "extension": [
                  {
                    "url": "language",
                    "valueString": "text/fhirpath"
                  },
                  {
                    "url": "expression",
                    "valueString": "%Essential"
                  }
                ],
                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression"
              }
            ]
          },
          "option": [
            {
              "valueString": "Yes"
            },
            {
              "valueString": "No"
            },
            {
              "valueString": "Unknown"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "900aa326-ea8c-111d-1bf7-bfec41a9a371",
          "type": "display",
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                }
              ],
              "text": "**Additional referral information:**\n* Past history of GDM and previous management\n* Outcomes associated with previous GDM e.g. stillbirth, macrosomia, shoulder dystocia, fetal hypoglycaemia\n* Method of conception (either spontaneous or assisted)\n* Advise if new partner with this pregnancy\n* Refugee status\n* Social history including domestic violence, living situation, drug and alcohol use\n* Identification of Gillick competence and intellectual capacity (where appropriate)\n* Recognition of sexual orientation i.e. lesbian, gay and bisexual (LGB)",
              "type": "display"
            }
          ]
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "list"
              }
            ]
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
          "valueString": "{\"id\":\"b603dd5e-da70-9a31-7ea9-64e56c16a514\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
        }
      ],
      "linkId": "f2ed9708-fb1c-f6c1-df85-b3ecb8f426cb",
      "text": "Referral Letter",
      "type": "group",
      "enableWhen": [
        {
          "id": "affee269-b236-0ba0-aa5a-58f54a8cf692",
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
              "valueString": "="
            }
          ],
          "question": "3976b0fa-3f13-8745-b9be-b32e8251e84c",
          "hasAnswer": false,
          "answerBoolean": true
        }
      ],
      "item": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"65813fa8-6b5f-89d6-3656-26746ebaafbf\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"12ce3b7c-1793-503e-783c-6846d5940216\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-hover",
              "valueString": "E.g., presenting symptoms (evolution and duration); physical findings; details of previous treatment"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            }
          ],
          "linkId": "c95b8944-6af0-7ceb-e0e4-eafd02a8b16b",
          "definition": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/specialty-form-question-definition#referralLetter",
          "text": "Referral letter",
          "type": "text",
          "required": false,
          "maxLength": 2000
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "readonly-text"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
          "valueBoolean": true
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-selected-external-data-item",
          "valueString": "sex"
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/data-overridable",
          "valueBoolean": false
        }
      ],
      "linkId": "00252249-edbf-8052-4b8b-5a64a133437e",
      "text": "Sex",
      "type": "string",
      "required": false
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "readonly-text"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
          "valueBoolean": true
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-selected-external-data-item",
          "valueString": "age"
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/data-overridable",
          "valueBoolean": false
        }
      ],
      "linkId": "afadbb75-a3bb-15cc-0a94-25e065fa8406",
      "text": "Age",
      "type": "string",
      "required": false
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "calculated-field"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
          "valueBoolean": true
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/calculated-field-conditions",
          "valueString": "{\"id\":\"c721d0b2-221c-600a-105a-f5e22ebab670\",\"operator\":\"or\",\"type\":\"group\",\"conditions\":[{\"id\":\"716af4d0-f61d-bc06-6e04-51de79f660db\",\"type\":\"condition\",\"item\":{\"text\":\"Minimum referral criteria\",\"value\":\"70271412-10e2-8bef-f441-99241915f74d\",\"dataType\":\"choice\",\"container\":{\"type\":\"list\",\"id\":\"c1cf9c5d-ac72-1ffe-8746-d14a25ed4cfb\"},\"operators\":\"equality\",\"options\":[{\"display\":\"Gestational diabetes (GDM), or diabetes first recognised during pregnancy\",\"value\":\"Gestational diabetes (GDM), or diabetes first recognised during pregnancy\"},{\"display\":\"Request clinical override of minimum referral criteria\",\"value\":\"Request clinical override of minimum referral criteria\"}],\"showEligibleWhenOption\":true},\"operator\":\"=\",\"operand\":\"Gestational diabetes (GDM), or diabetes first recognised during pregnancy\",\"coded\":false}],\"returnType\":\"boolean\"}"
        }
      ],
      "linkId": "b9a11e57-9aed-5d2f-5b3e-854255bc344a",
      "text": "Category 1 text is showing",
      "type": "boolean",
      "required": false
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "list"
              }
            ]
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
          "valueString": "{\"id\":\"70b3412c-d0d7-1358-9d54-b122d358f63d\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
        }
      ],
      "linkId": "21bd8740-b710-9b04-111d-e6ff784c5ef5",
      "text": "Pathology and Test Results",
      "type": "group",
      "enableWhen": [
        {
          "id": "15fd3fa5-0765-57ff-2539-ba294323c86a",
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
              "valueString": "="
            }
          ],
          "question": "3976b0fa-3f13-8745-b9be-b32e8251e84c",
          "hasAnswer": false,
          "answerBoolean": true
        }
      ],
      "item": [
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "f9e02cf4-c013-9992-7cd9-654f48a2c06a",
          "type": "display",
          "enableWhen": [
            {
              "id": "fae92b98-9909-aff5-30e5-14d3135f7a1b",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "d0bd7ce7-4981-a213-97aa-bb5a86b342ac",
              "hasAnswer": false,
              "answerBoolean": false
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                }
              ],
              "text": "**Essential referral information:** \n\nDiagnostic test result e.g.:\n\n* OGTT\n* Fasting blood sugar\n* HbA1c\n\n**Additional referral information:**\n* Any additional BGL data\n* LFT\n* U&E\n* Urine protein creatinine ratio\n* Any other relevant pathology (please manually attach)",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "5a0395e7-3f61-42c7-e314-ad259d254463",
          "type": "display",
          "enableWhen": [
            {
              "id": "5d374b6b-23f3-5dd1-3fc7-0abbd0264b47",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "d0bd7ce7-4981-a213-97aa-bb5a86b342ac",
              "hasAnswer": false,
              "answerBoolean": true
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                }
              ],
              "text": "**Recommended referral information:** \n\nDiagnostic test result e.g.:\n\n* OGTT\n* Fasting blood sugar\n* HbA1c\n\n**Additional referral information:**\n* Any additional BGL data\n* LFT\n* U&E\n* Urine protein creatinine ratio\n* Any other relevant pathology (please manually attach)",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "889e6dc6-55b1-5f8a-d77f-e23d886294c9",
          "type": "display",
          "enableWhen": [
            {
              "id": "568dad07-759b-9b14-d0cf-f14eb605a82c",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "a6476ddb-c5c4-775e-f129-e703c0ce25de",
              "hasAnswer": false,
              "answerBoolean": true
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                }
              ],
              "text": "**If any laboratory investigations are listed below, they have NOT been automatically selected by the software. Please manually select or attach**",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "1978f17f-006f-1928-1c54-f3a8dccffe0f",
          "type": "display",
          "enableWhen": [
            {
              "id": "bce18429-a3af-add2-e36e-adfeaed8d038",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "d0bd7ce7-4981-a213-97aa-bb5a86b342ac",
              "hasAnswer": false,
              "answerBoolean": true
            }
          ],
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                }
              ],
              "text": "**If any laboratory investigations are listed below, they have NOT been automatically selected by the software. Please manually select or attach if available**",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "auto-select-display"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/auto-select-name",
              "valueString": "Gestational diabetes"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/auto-select-type",
              "valueString": "Unselected"
            }
          ],
          "linkId": "107ac9df-d9ee-af6d-e648-8b567ea1eb8a",
          "text": "Laboratory investigations NOT found by the software:",
          "type": "string"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "url"
                  }
                ]
              }
            }
          ],
          "linkId": "1501bcbc-8360-6e0a-2c23-3651a0f8d7bd",
          "text": "Click link to manually select investigations",
          "type": "display",
          "initialString": "investigations"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "url"
                  }
                ]
              }
            }
          ],
          "linkId": "d8844e3c-0562-cc11-6288-7033d5f9385d",
          "text": "Click link to manually attach investigations",
          "type": "display",
          "initialString": "attachments"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "button-bar"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"45fcb3d7-038f-8bab-421d-2a464e261a67\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable-text",
              "valueString": "Clear selection"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"d9c51c95-599f-1e4a-87aa-a8f412789b6f\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            }
          ],
          "linkId": "0bb55b46-9630-ec70-8eb6-2e8559e4b6ae",
          "text": "Request to override essential referral information requirement",
          "type": "choice",
          "enableWhen": [
            {
              "id": "0dd34ee1-7c22-485e-481f-66424d5dbf56",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "d0bd7ce7-4981-a213-97aa-bb5a86b342ac",
              "hasAnswer": false,
              "answerBoolean": false
            }
          ],
          "required": false,
          "option": [
            {
              "valueString": "Yes"
            },
            {
              "valueString": "No"
            }
          ],
          "initialString": "No"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"3002b990-2ddb-8b4f-3472-43bc355f223b\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"96383d03-377e-b9a0-c700-bddab285f4b9\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            }
          ],
          "linkId": "21d9830b-2193-317b-c86e-c64673b7e31c",
          "text": "Please describe reason unable to complete investigations",
          "type": "text",
          "enableWhen": [
            {
              "id": "afb6767a-436c-b6a2-1eb7-6047099c4093",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "0bb55b46-9630-ec70-8eb6-2e8559e4b6ae",
              "hasAnswer": false,
              "answerString": "Yes"
            }
          ],
          "required": true
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "list"
              }
            ]
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
          "valueString": "{\"id\":\"9044559f-3774-2dea-49b0-7fc249b91f33\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
        }
      ],
      "linkId": "0a31f22c-628c-c180-e100-3a64c48bb532",
      "text": "Imaging and Reports",
      "type": "group",
      "enableWhen": [
        {
          "id": "8c87be12-2325-7a23-26ac-eec13832e8b4",
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
              "valueString": "="
            }
          ],
          "question": "3976b0fa-3f13-8745-b9be-b32e8251e84c",
          "hasAnswer": false,
          "answerBoolean": true
        }
      ],
      "item": [
        {
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-form-only",
              "valueBoolean": true
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "inline"
                  }
                ]
              }
            }
          ],
          "linkId": "383c231a-c6be-f6e3-4c4f-6dc32bcb3e13",
          "type": "display",
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "inline"
                      }
                    ]
                  }
                }
              ],
              "text": "**Additional referral information:**\n* Fetal ultrasound\n* Additional relevant imaging",
              "type": "display"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "check-box"
                  }
                ]
              }
            },
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/choice-list-orientation",
                    "code": "vertical"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"0f1e6d90-783c-e08d-881f-36d4a98861ce\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"13eec616-d097-db1d-8c8c-449ca9c99513\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/clearable",
              "valueBoolean": false
            },
            {
              "url": "http://hl7.org/fhir/layout-columns",
              "valueString": "3-columns"
            }
          ],
          "linkId": "dca57b0c-89cf-4e92-6067-aa98f0785afe",
          "text": "Imaging performed",
          "type": "choice",
          "required": false,
          "option": [
            {
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/option/none-of-the-above",
                  "valueBoolean": false
                }
              ],
              "valueString": "Ultrasound"
            },
            {
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/option/none-of-the-above",
                  "valueBoolean": false
                }
              ],
              "valueString": "Other"
            }
          ]
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"9cc48fe6-df10-7f47-40cc-9f3a0005ae40\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"6a291717-3609-8555-fa72-d03bb0e5a0e1\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            }
          ],
          "linkId": "73ed8691-c2c6-9080-60f7-03e9e442cd4b",
          "text": "Please specify other imaging",
          "type": "text",
          "enableWhen": [
            {
              "id": "ccda4834-0387-24f9-6de3-378d6c70ae86",
              "extension": [
                {
                  "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
                  "valueString": "="
                }
              ],
              "question": "dca57b0c-89cf-4e92-6067-aa98f0785afe",
              "hasAnswer": false,
              "answerString": "Other"
            }
          ],
          "required": true
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "url"
                  }
                ]
              }
            }
          ],
          "linkId": "a937daf7-a4d0-e229-6129-b6f01afe0537",
          "text": "Click link to manually select imaging",
          "type": "display",
          "initialString": "investigations"
        },
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "url"
                  }
                ]
              }
            }
          ],
          "linkId": "30844639-0361-9e88-8a53-3ecbc3660d61",
          "text": "Click link to manually attach imaging",
          "type": "display",
          "initialString": "attachments"
        }
      ]
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "calculated-field"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
          "valueBoolean": true
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/calculated-field-conditions",
          "valueString": "{\"id\":\"b5c33dbe-dd7b-6dfe-deba-a2bb859a0d6a\",\"operator\":\"or\",\"type\":\"group\",\"conditions\":[{\"id\":\"d6e4107f-8b7f-e26b-70ce-04ff999441ab\",\"type\":\"condition\",\"item\":{\"text\":\"Minimum referral criteria\",\"value\":\"70271412-10e2-8bef-f441-99241915f74d\",\"dataType\":\"choice\",\"container\":{\"type\":\"list\",\"id\":\"c1cf9c5d-ac72-1ffe-8746-d14a25ed4cfb\"},\"operators\":\"equality\",\"options\":[{\"display\":\"Gestational diabetes (GDM), or diabetes first recognised during pregnancy\",\"value\":\"Gestational diabetes (GDM), or diabetes first recognised during pregnancy\"},{\"display\":\"Request clinical override of minimum referral criteria\",\"value\":\"Request clinical override of minimum referral criteria\"}],\"showEligibleWhenOption\":true},\"operator\":\"has-value\",\"operand\":null,\"coded\":false}],\"returnType\":\"boolean\"}"
        }
      ],
      "linkId": "e39bd053-7f95-de4a-8411-9397dc7e4d46",
      "text": "Minimum ciriteria has value",
      "type": "boolean",
      "required": false
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "calculated-field"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
          "valueBoolean": true
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/calculated-field-conditions",
          "valueString": "{\"id\":\"ef313dab-9ba5-6b28-1661-f569425147b3\",\"operator\":\"or\",\"type\":\"group\",\"conditions\":[{\"id\":\"b3e14169-1cd2-bff9-f995-6d5b085938c1\",\"type\":\"condition\",\"item\":{\"text\":\"Provider\",\"value\":\"8e59fb06-066d-2d00-7a90-ae55e0bc5e72\",\"dataType\":\"choice\",\"container\":{\"type\":\"none\",\"id\":null},\"operators\":\"equality\",\"options\":[{\"display\":\"Private\",\"value\":\"DDE394C1-CC0C-4A54-A1B3-3B2B1E7F82D6\"},{\"display\":\"Public\",\"value\":\"7BEEBDA2-2DD5-4812-98DB-330011333617\"},{\"display\":\"SCC\",\"value\":\"9863C554-031C-4319-92B2-A16E80A87C73\"},{\"display\":\"CCC\",\"value\":\"62F5779F-A428-4DFE-9AFA-DDEF951E17EF\"},{\"display\":\"MBS\",\"value\":\"A9A8EE09-E605-4F6E-9ABD-6EDF4D0B9E8D\"}],\"showEligibleWhenOption\":false},\"operator\":\"=\",\"operand\":\"DDE394C1-CC0C-4A54-A1B3-3B2B1E7F82D6\",\"coded\":true},{\"id\":\"817240e1-f7c9-8e88-81e4-cfe58aa24684\",\"type\":\"condition\",\"item\":{\"text\":\"Minimum referral criteria\",\"value\":\"70271412-10e2-8bef-f441-99241915f74d\",\"dataType\":\"choice\",\"container\":{\"type\":\"list\",\"id\":\"c1cf9c5d-ac72-1ffe-8746-d14a25ed4cfb\"},\"operators\":\"equality\",\"options\":[{\"display\":\"Gestational diabetes (GDM), or diabetes first recognised during pregnancy\",\"value\":\"Gestational diabetes (GDM), or diabetes first recognised during pregnancy\"},{\"display\":\"Request clinical override of minimum referral criteria\",\"value\":\"Request clinical override of minimum referral criteria\"}],\"showEligibleWhenOption\":true},\"operator\":\"=\",\"operand\":\"Request clinical override of minimum referral criteria\",\"coded\":false}],\"returnType\":\"boolean\"}"
        }
      ],
      "linkId": "d0bd7ce7-4981-a213-97aa-bb5a86b342ac",
      "text": "Private or Clinical override",
      "type": "boolean",
      "required": false
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "readonly-text"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
          "valueBoolean": true
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-selected-external-data-item",
          "valueString": "funding"
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/data-overridable",
          "valueBoolean": false
        }
      ],
      "linkId": "8e59fb06-066d-2d00-7a90-ae55e0bc5e72",
      "text": "Provider",
      "type": "string",
      "required": false
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "calculated-field"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
          "valueBoolean": true
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/calculated-field-conditions",
          "valueString": "{\"id\":\"bf6cdcfb-49ad-41fe-9787-cbc45f8d598c\",\"operator\":\"or\",\"type\":\"group\",\"conditions\":[{\"id\":\"a34e8202-07b0-25e3-cf58-edc8383f74db\",\"type\":\"condition\",\"item\":{\"text\":\"Imaging performed\",\"value\":\"dca57b0c-89cf-4e92-6067-aa98f0785afe\",\"dataType\":\"choice\",\"container\":{\"type\":\"list\",\"id\":\"0a31f22c-628c-c180-e100-3a64c48bb532\"},\"operators\":\"equality\",\"options\":[{\"display\":\"Ultrasound\",\"value\":\"Ultrasound\"},{\"display\":\"Other\",\"value\":\"Other\"}],\"showEligibleWhenOption\":true},\"coded\":false,\"operator\":\"has-value\",\"operand\":null}],\"returnType\":\"boolean\"}"
        }
      ],
      "linkId": "7cac472b-7e56-4546-da9d-f4c57d9ff7ae",
      "text": "Imaging performed public has value",
      "type": "boolean",
      "required": false
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "calculated-field"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
          "valueBoolean": true
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/calculated-field-conditions",
          "valueString": "{\"id\":\"7f719cc3-997d-b0c6-e137-b06c4a38bc39\",\"operator\":\"or\",\"type\":\"group\",\"conditions\":[{\"id\":\"a8b80522-eff2-b52f-a01c-747617a4a29b\",\"operator\":\"and\",\"type\":\"group\",\"conditions\":[{\"id\":\"cd13c968-1614-8470-c17c-efac50ba4b5a\",\"type\":\"condition\",\"item\":{\"text\":\"Minimum referral criteria\",\"value\":\"70271412-10e2-8bef-f441-99241915f74d\",\"dataType\":\"choice\",\"container\":{\"type\":\"list\",\"id\":\"c1cf9c5d-ac72-1ffe-8746-d14a25ed4cfb\"},\"operators\":\"equality\",\"options\":[{\"display\":\"Gestational diabetes (GDM), or diabetes first recognised during pregnancy\",\"value\":\"Gestational diabetes (GDM), or diabetes first recognised during pregnancy\"},{\"display\":\"Request clinical override of minimum referral criteria\",\"value\":\"Request clinical override of minimum referral criteria\"}],\"showEligibleWhenOption\":true},\"operator\":\"has-value\",\"operand\":null,\"coded\":false},{\"id\":\"8b34e46e-382e-f4e1-6291-77c71fd9f701\",\"type\":\"condition\",\"item\":{\"text\":\"Minimum referral criteria\",\"value\":\"70271412-10e2-8bef-f441-99241915f74d\",\"dataType\":\"choice\",\"container\":{\"type\":\"list\",\"id\":\"c1cf9c5d-ac72-1ffe-8746-d14a25ed4cfb\"},\"operators\":\"equality\",\"options\":[{\"display\":\"Gestational diabetes (GDM), or diabetes first recognised during pregnancy\",\"value\":\"Gestational diabetes (GDM), or diabetes first recognised during pregnancy\"},{\"display\":\"Request clinical override of minimum referral criteria\",\"value\":\"Request clinical override of minimum referral criteria\"}],\"showEligibleWhenOption\":true},\"operator\":\"!=\",\"operand\":\"Request clinical override of minimum referral criteria\",\"coded\":false}]},{\"id\":\"3a28ac85-2d80-0722-dfd4-1d1c36c6e743\",\"operator\":\"and\",\"type\":\"group\",\"conditions\":[{\"id\":\"3d278ddd-c6bd-1415-b6eb-d18f96077b4a\",\"type\":\"condition\",\"item\":{\"text\":\"Provider\",\"value\":\"8e59fb06-066d-2d00-7a90-ae55e0bc5e72\",\"dataType\":\"choice\",\"container\":{\"type\":\"none\",\"id\":null},\"operators\":\"equality\",\"options\":[{\"display\":\"Private\",\"value\":\"DDE394C1-CC0C-4A54-A1B3-3B2B1E7F82D6\"},{\"display\":\"Public\",\"value\":\"7BEEBDA2-2DD5-4812-98DB-330011333617\"},{\"display\":\"SCC\",\"value\":\"9863C554-031C-4319-92B2-A16E80A87C73\"},{\"display\":\"CCC\",\"value\":\"62F5779F-A428-4DFE-9AFA-DDEF951E17EF\"},{\"display\":\"MBS\",\"value\":\"A9A8EE09-E605-4F6E-9ABD-6EDF4D0B9E8D\"}],\"showEligibleWhenOption\":false},\"operator\":\"=\",\"operand\":\"7BEEBDA2-2DD5-4812-98DB-330011333617\",\"coded\":true},{\"id\":\"641afc38-0c11-66e0-2df7-5e2a5daf00b1\",\"type\":\"condition\",\"item\":{\"text\":\"Minimum ciriteria has value\",\"value\":\"e39bd053-7f95-de4a-8411-9397dc7e4d46\",\"dataType\":\"boolean\",\"container\":{\"type\":\"none\",\"id\":null},\"operators\":\"boolean\",\"options\":[{\"display\":\"true\",\"value\":true},{\"display\":\"false\",\"value\":false}],\"showEligibleWhenOption\":false},\"operator\":\"=\",\"operand\":false,\"coded\":false}]}],\"returnType\":\"boolean\"}"
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-information-hover",
          "valueString": "This was created when using variable Private or Clinical override as False to display essential information wasn't working as expected. This can be used to forced the display of text when No value has been selected."
        }
      ],
      "linkId": "a6476ddb-c5c4-775e-f129-e703c0ce25de",
      "text": "Show essential Labs/Imaging",
      "type": "boolean",
      "required": false
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "readonly-text"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
          "valueBoolean": true
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-selected-external-data-item",
          "valueString": "referralType"
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/data-overridable",
          "valueBoolean": false
        }
      ],
      "linkId": "e6904c02-7ffe-ef4f-3783-d77861dc74f6",
      "text": "Referral type",
      "type": "string",
      "required": false
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "calculated-field"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
          "valueBoolean": true
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/calculated-field-conditions",
          "valueString": "{\"id\":\"93fa12ff-c882-5b8e-cca9-2d1d7a90f568\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\",\"conditions\":[{\"id\":\"7806f475-79a2-19a3-2833-a993af3ff9c6\",\"type\":\"condition\",\"item\":{\"text\":\"Referral type\",\"value\":\"e6904c02-7ffe-ef4f-3783-d77861dc74f6\",\"dataType\":\"choice\",\"container\":{\"type\":\"none\",\"id\":null},\"operators\":\"equality\",\"options\":[{\"display\":\"New referral\",\"value\":\"2203A2DB-916F-472F-89EB-698706BF9FE1\"},{\"display\":\"MBS update\",\"value\":\"3EAB1B26-7E35-48B9-B5BC-0AFB244B37C1\"},{\"display\":\"Request for advice\",\"value\":\"075A3553-46AE-43FB-8DE6-AC623FFF7763\"},{\"display\":\"Clinical Update\",\"value\":\"3D607CAD-D613-4635-AE69-3CD52DCE2A88\"},{\"display\":\"Update\",\"value\":\"BFBF853D-0652-488E-AFA7-54BD8097B4A3\"},{\"display\":\"Continuation\",\"value\":\"9AA2003F-EDB9-43C1-A943-249B78858295\"},{\"display\":\"Other\",\"value\":\"6949CD1D-C966-4272-81AA-54DFEF825790\"}],\"showEligibleWhenOption\":false},\"coded\":true,\"operator\":\"=\",\"operand\":\"2203A2DB-916F-472F-89EB-698706BF9FE1\"},{\"id\":\"7203d2e7-f7a8-4362-97a8-cbdaab0d17ab\",\"type\":\"condition\",\"item\":{\"text\":\"Referral type\",\"value\":\"e6904c02-7ffe-ef4f-3783-d77861dc74f6\",\"dataType\":\"choice\",\"container\":{\"type\":\"none\",\"id\":null},\"operators\":\"equality\",\"options\":[{\"display\":\"New referral\",\"value\":\"2203A2DB-916F-472F-89EB-698706BF9FE1\"},{\"display\":\"MBS update\",\"value\":\"3EAB1B26-7E35-48B9-B5BC-0AFB244B37C1\"},{\"display\":\"Request for advice\",\"value\":\"075A3553-46AE-43FB-8DE6-AC623FFF7763\"},{\"display\":\"Clinical Update\",\"value\":\"3D607CAD-D613-4635-AE69-3CD52DCE2A88\"},{\"display\":\"Update\",\"value\":\"BFBF853D-0652-488E-AFA7-54BD8097B4A3\"},{\"display\":\"Continuation\",\"value\":\"9AA2003F-EDB9-43C1-A943-249B78858295\"},{\"display\":\"Other\",\"value\":\"6949CD1D-C966-4272-81AA-54DFEF825790\"}],\"showEligibleWhenOption\":false},\"coded\":true,\"operator\":\"=\",\"operand\":\"BFBF853D-0652-488E-AFA7-54BD8097B4A3\"},{\"id\":\"b8fe49cc-d32e-8b77-3b72-cacc4dfb77df\",\"type\":\"condition\",\"item\":{\"text\":\"Referral type\",\"value\":\"e6904c02-7ffe-ef4f-3783-d77861dc74f6\",\"dataType\":\"choice\",\"container\":{\"type\":\"none\",\"id\":null},\"operators\":\"equality\",\"options\":[{\"display\":\"New referral\",\"value\":\"2203A2DB-916F-472F-89EB-698706BF9FE1\"},{\"display\":\"MBS update\",\"value\":\"3EAB1B26-7E35-48B9-B5BC-0AFB244B37C1\"},{\"display\":\"Request for advice\",\"value\":\"075A3553-46AE-43FB-8DE6-AC623FFF7763\"},{\"display\":\"Clinical Update\",\"value\":\"3D607CAD-D613-4635-AE69-3CD52DCE2A88\"},{\"display\":\"Update\",\"value\":\"BFBF853D-0652-488E-AFA7-54BD8097B4A3\"},{\"display\":\"Continuation\",\"value\":\"9AA2003F-EDB9-43C1-A943-249B78858295\"},{\"display\":\"Other\",\"value\":\"6949CD1D-C966-4272-81AA-54DFEF825790\"}],\"showEligibleWhenOption\":false},\"coded\":true,\"operator\":\"=\",\"operand\":\"9AA2003F-EDB9-43C1-A943-249B78858295\"}]}"
        }
      ],
      "linkId": "3976b0fa-3f13-8745-b9be-b32e8251e84c",
      "text": "Referral type New, Continuation or Update",
      "type": "boolean",
      "required": false
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "calculated-field"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
          "valueBoolean": true
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/calculated-field-conditions",
          "valueString": "{\"id\":\"b2a61f3c-cc20-d518-42b1-eb7d5a811bb0\",\"operator\":\"and\",\"type\":\"group\",\"returnType\":\"boolean\",\"conditions\":[{\"id\":\"9f875eb4-5557-b96f-0a5f-98d48218cf1a\",\"type\":\"condition\",\"item\":{\"text\":\"Provider\",\"value\":\"8e59fb06-066d-2d00-7a90-ae55e0bc5e72\",\"dataType\":\"choice\",\"container\":{\"type\":\"none\",\"id\":null},\"operators\":\"equality\",\"options\":[{\"display\":\"Private\",\"value\":\"DDE394C1-CC0C-4A54-A1B3-3B2B1E7F82D6\"},{\"display\":\"Public\",\"value\":\"7BEEBDA2-2DD5-4812-98DB-330011333617\"},{\"display\":\"SCC\",\"value\":\"9863C554-031C-4319-92B2-A16E80A87C73\"},{\"display\":\"CCC\",\"value\":\"62F5779F-A428-4DFE-9AFA-DDEF951E17EF\"},{\"display\":\"MBS\",\"value\":\"A9A8EE09-E605-4F6E-9ABD-6EDF4D0B9E8D\"}],\"showEligibleWhenOption\":false},\"coded\":true,\"operator\":\"=\",\"operand\":\"7BEEBDA2-2DD5-4812-98DB-330011333617\"},{\"id\":\"67e16b58-3294-d64a-99c8-d453f1192439\",\"type\":\"condition\",\"item\":{\"text\":\"Referral type New, Continuation or Update\",\"value\":\"3976b0fa-3f13-8745-b9be-b32e8251e84c\",\"dataType\":\"boolean\",\"container\":{\"type\":\"none\",\"id\":null},\"operators\":\"boolean\",\"options\":[{\"display\":\"true\",\"value\":true},{\"display\":\"false\",\"value\":false}],\"showEligibleWhenOption\":false},\"coded\":false,\"operator\":\"=\",\"operand\":true}]}"
        }
      ],
      "linkId": "b34a1f8f-5364-799f-8009-b1f1981275c9",
      "text": "Public and referral type New, Continuation or Update",
      "type": "boolean",
      "required": false
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "calculated-field"
              }
            ]
          }
        },
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
          "valueBoolean": true
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/calculated-field-conditions",
          "valueString": "{\"id\":\"7beb2bdc-c991-1e8c-a942-e9ef8ff1fea3\",\"operator\":\"and\",\"type\":\"group\",\"returnType\":\"boolean\",\"conditions\":[{\"id\":\"56ff9c34-bae3-a2f7-4527-87ee5b9a735b\",\"type\":\"condition\",\"item\":{\"text\":\"Provider\",\"value\":\"8e59fb06-066d-2d00-7a90-ae55e0bc5e72\",\"dataType\":\"choice\",\"container\":{\"type\":\"none\",\"id\":null},\"operators\":\"equality\",\"options\":[{\"display\":\"Private\",\"value\":\"DDE394C1-CC0C-4A54-A1B3-3B2B1E7F82D6\"},{\"display\":\"Public\",\"value\":\"7BEEBDA2-2DD5-4812-98DB-330011333617\"},{\"display\":\"SCC\",\"value\":\"9863C554-031C-4319-92B2-A16E80A87C73\"},{\"display\":\"CCC\",\"value\":\"62F5779F-A428-4DFE-9AFA-DDEF951E17EF\"},{\"display\":\"MBS\",\"value\":\"A9A8EE09-E605-4F6E-9ABD-6EDF4D0B9E8D\"}],\"showEligibleWhenOption\":false},\"coded\":true,\"operator\":\"=\",\"operand\":\"DDE394C1-CC0C-4A54-A1B3-3B2B1E7F82D6\"},{\"id\":\"7242e194-3f52-47a3-05a5-1497862260ed\",\"type\":\"condition\",\"item\":{\"text\":\"Referral type New, Continuation or Update\",\"value\":\"3976b0fa-3f13-8745-b9be-b32e8251e84c\",\"dataType\":\"boolean\",\"container\":{\"type\":\"none\",\"id\":null},\"operators\":\"boolean\",\"options\":[{\"display\":\"true\",\"value\":true},{\"display\":\"false\",\"value\":false}],\"showEligibleWhenOption\":false},\"coded\":false,\"operator\":\"=\",\"operand\":true}]}"
        }
      ],
      "linkId": "7d15a5df-46da-53d5-482d-87c5e71b7683",
      "text": "Private and referral type New, Continuation or Update",
      "type": "boolean",
      "required": false
    },
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "list"
              }
            ]
          }
        },
        {
          "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
          "valueString": "{\"id\":\"d7321024-4d8e-1fda-5b43-ea7bf13eb186\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
        }
      ],
      "linkId": "01ad97fd-2051-68d4-e9a0-5accabc802b0",
      "text": "Request for Advice",
      "type": "group",
      "enableWhen": [
        {
          "id": "4bdeb8bf-9dfa-c6fb-34ce-0bdb481db45a",
          "extension": [
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/questionnaire-item-enable-when-operator",
              "valueString": "="
            }
          ],
          "question": "e6904c02-7ffe-ef4f-3783-d77861dc74f6",
          "hasAnswer": false,
          "answerCoding": {
            "code": "075A3553-46AE-43FB-8DE6-AC623FFF7763",
            "display": "Request for advice"
          }
        }
      ],
      "item": [
        {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                    "code": "text-area"
                  }
                ]
              }
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/eligible-when-conditions",
              "valueString": "{\"id\":\"c6bc8297-b474-8b97-6a5b-946663635991\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/rows",
              "valueInteger": 4
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/max-rows",
              "valueInteger": 16
            },
            {
              "url": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/valid-when-conditions",
              "valueString": "{\"id\":\"1d16fb00-a11a-df7a-1d73-b3fde943eee9\",\"operator\":\"or\",\"type\":\"group\",\"returnType\":\"boolean\"}"
            }
          ],
          "linkId": "e3fc3f0c-ee7f-4e16-1e3e-859cbf35a307",
          "definition": "https://qhr-devops.health.qld.gov.au/fhir/StructureDefinition/referral-model-for-merging#referralDetails.referralManagement.replies.replyText",
          "text": "Request for advice - clinical question",
          "type": "text",
          "required": true
        }
      ]
    }
  ]
}