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

FHIR IG analytics

Packagecsiro.fhir.au.gpccmp
Resource TypeQuestionnaire
IdQuestionnaire-GPChronicConditionManagementPlan.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/aehrc/gpccmp-fhir-ig/Questionnaire-GPChronicConditionManagementPlan.html
URLhttp://www.health.gov.au/assessments/GPChronicConditionManagementPlan
Version0.1.0
Statusdraft
Date2026-02-13
NameGPChronicConditionManagementPlan
TitleGP Chronic Condition Management Plan
DescriptionGP Chronic Condition Management Plan

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

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

Generated Narrative: Questionnaire GPChronicConditionManagementPlan

Structure
LinkIDTextCardinalityTypeFlagsDescription & Constraintsdoco
.. GPChronicConditionManagementPlanGP Chronic Condition Management PlanQuestionnairehttp://www.health.gov.au/assessments/GPChronicConditionManagementPlan#0.1.0
... containernull0..1group
.... patientPatient details0..1group
..... patient-instructionsThis form has been prefilled with information that was available from the patient's health record. Upon saving, the form will be stored, but additional information entered will not be used to update the patient's health record. Changes to patient demographic information should be made in the source system.0..1display
Consent0..1group
Consent given to proceed with plan after discussion of the purpose, benefits, process and costs0..1boolean
..... patient-nameName0..1stringiconicon
..... patient-preferrednamePreferred name0..1stringiconicon
..... patient-preferredpronounsPreferred pronouns0..1choiceiconiconValue Set: Australian Pronouns
..... patient-dobDate of birth0..1dateiconicon
..... patient-ageAge0..1integericonicon
..... patient-sexatbirthSex assigned at birth0..1choiceiconiconValue Set: Biological Sex
..... patient-genderidentityGender identity0..1choiceiconiconValue Set: Gender Identity Response
..... patient-firstnationsstatusAboriginal and/or Torres Strait Islander status0..1choiceiconiconValue Set: Australian Indigenous Status
..... patient-ctgRegistered for Closing the Gap PBS Co-payment Measure (CTG)0..1booleaniconicon
..... patient-myagedcareMy Aged Care0..1group
...... patient-myagedcare-registeredRegistered for My Aged Care0..1choiceiconiconValue Set: Yes/No/Pending
...... patient-myagedcare-numberMy Aged Care Number0..1stringEnable When: patient-myagedcare-registered = Yes (v2 Y/N Indicator#Y)
...... patient-myagedcare-commentComment0..1string
..... patient-ndisNational Disability Insurance Scheme0..1group
...... patient-ndis-registeredRegistered for NDIS0..1choiceiconiconValue Set: Yes/No/Pending
...... patient-ndis-numberNDIS Number0..1stringEnable When: patient-ndis-registered = Yes (v2 Y/N Indicator#Y)
...... patient-ndis-commentComment0..1string
..... patient-medicareMedicare card number0..*groupiconicon
...... patient-medicare-numberNumber0..1string
...... patient-medicare-referencenumberReference number0..1string
...... patient-medicare-expiryExpiry0..1string
..... patient-contactContact information0..1group
...... patient-contact-homephoneHome phone0..*stringiconicon
...... patient-contact-mobilephoneMobile phone0..*stringiconicon
...... patient-contact-emailEmail0..*stringiconicon
...... patient-contact-homeaddressHome address0..1groupiconicon
....... patient-contact-homeaddress-nofixedaddressNo fixed address0..1boolean
....... patient-contact-homeaddress-detailsHome address0..*group
........ patient-contact-homeaddress-details-streetaddressStreet address0..1string
........ patient-contact-homeaddress-details-cityCity0..1string
........ patient-contact-homeaddress-details-stateState0..1choiceValue Set: Australian States and Territories
........ patient-contact-homeaddress-details-postcodePostcode0..1string
...... patient-contact-postaladdressPostal address0..*groupiconicon
....... patient-contact-postaladdress-purposePurpose of use0..1string
....... patient-contact-postaladdress-streetaddressStreet address0..1string
....... patient-contact-postaladdress-cityCity0..1string
....... patient-contact-postaladdress-stateState0..1choiceValue Set: Australian States and Territories
....... patient-contact-postaladdress-postcodePostcode0..1string
..... patient-carerdetailsCarer information0..*group
...... patient-carerinformation-hascarerDo you have a carer?0..1choiceiconiconValue Set: Yes/No
...... patient-carerinformation-contactCarer contact0..*groupEnable When: patient-carerinformation-hascarer = Yes (v2 Y/N Indicator#Y)
....... patient-carerinformation-contact-nameName0..1string
....... patient-carerinformation-contact-phonePhone0..*string
....... patient-carerinformation-contact-emailEmail0..*string
...... patient-carerinformation-presentCarer present at appointment0..1choiceiconiconEnable When: patient-carerinformation-hascarer = Yes (v2 Y/N Indicator#Y)
Value Set: Yes/No
..... patient-additionalcontactsAdditional contacts0..*group
...... patient-additionalcontacts-typeType0..1open-choiceOptions: 5 options
...... patient-additionalcontacts-nameName0..1string
...... patient-additionalcontacts-phonePhone0..*string
...... patient-additionalcontacts-emailEmail0..*string
...... patient-additionalcontacts-relationshipRelationship to patient0..1string
..... patient-additionalinformationAdditional information0..1text
.... practitionerPractitioner details0..1group
..... practitioner-instructionsThis form has been prefilled with information that was available from the patient's health record. Upon saving, the form will be stored, but additional information entered will not be used to update the patient's health record. Changes to practitioner information should be made in the source system.0..1display
..... practitioner-nameName0..1stringiconicon
..... practitioner-phonePhone0..*stringiconicon
..... practitioner-emailEmail0..*stringiconicon
..... practitioner-medicareprovidernumberMedicare provider number0..*stringiconicon
..... practitioner-clinicdetailsClinic details0..1groupiconicon
...... practitioner-clinicdetails-nameName0..1stringiconicon
...... practitioner-clinicdetails-addressAddress0..1group
....... practitioner-clinicdetails-address-streetaddressStreet address0..1string
....... practitioner-clinicdetails-address-cityCity0..1string
....... practitioner-clinicdetails-address-stateState0..1choiceValue Set: Australian States and Territories
....... practitioner-clinicdetails-address-postcodePostcode0..1string
...... practitioner-clinicdetails-addresstextAddress0..1string
.... clinicaldetailsClinical details0..1group
..... clinicaldetails-instructionsThis form has been prefilled with information that was available from the patient's health record. Upon saving, the form will be stored, but additional information entered will not be used to update the patient's health record.0..1display
..... clinicaldetails-problemsdiagnosesProblems/Diagnoses0..1group
...... clinicaldetails-problemsdiagnoses-recordedproblemsRecorded problems/diagnoses0..*group
....... clinicaldetails-problemsdiagnoses-recordedproblems-conditionCondition0..1open-choiceiconiconValue Set: Clinical Condition
....... clinicaldetails-problemsdiagnoses-recordedproblems-clinicalstatusClinical status0..1choiceValue Set: Condition Clinical Status Codes
....... clinicaldetails-problemsdiagnoses-recordedproblems-onsetdateOnset date0..1dateiconicon
....... clinicaldetails-problemsdiagnoses-recordedproblems-abatementdateAbatement date0..1date
...... clinicaldetails-problemsdiagnoses-newproblemsNew problems/diagnoses0..*group
....... clinicaldetails-problemsdiagnoses-newproblems-conditionCondition0..1open-choiceValue Set: Clinical Condition
....... clinicaldetails-problemsdiagnoses-newproblems-onsetdateOnset date0..1date
....... clinicaldetails-problemsdiagnoses-newproblems-commentComment0..1string
..... clinicaldetails-allergiesAdverse reaction risks0..1group
...... clinicaldetails-allergies-recordedallergiesRecorded adverse reaction risks0..*group
....... clinicaldetails-allergies-recordedallergies-substanceSubstance0..1open-choiceiconiconValue Set: Adverse Reaction Agent
....... clinicaldetails-allergies-recordedallergies-statusStatus0..1choiceValue Set: AllergyIntolerance Clinical Status Codes
....... clinicaldetails-allergies-recordedallergies-manifestationManifestation0..*open-choiceiconiconValue Set: Clinical Finding
....... clinicaldetails-allergies-recordedallergies-commentComment0..1text
...... clinicaldetails-allergies-newallergiesNew adverse reaction risks0..*group
....... clinicaldetails-allergies-newallergies-substanceSubstance0..1open-choiceValue Set: Adverse Reaction Agent
....... clinicaldetails-allergies-newallergies-manifestationManifestation0..*open-choiceValue Set: Clinical Finding
....... clinicaldetails-allergies-newallergies-commentComment0..1text
..... clinicaldetails-medicationsMedications (current)0..1group
...... clinicaldetails-medications-recordedmedicationsRecorded medications0..*group
....... clinicaldetails-medications-recordedmedications-medicationMedication0..1open-choiceiconiconValue Set: Australian Medication
....... clinicaldetails-medications-recordedmedications-statusStatus0..1choiceValue Set: Medication Statement Status Limited
....... clinicaldetails-medications-recordedmedications-dosageDosage0..1text
....... clinicaldetails-medications-recordedmedications-indicationIndication0..*open-choiceiconiconValue Set: Medication Reason Taken
....... clinicaldetails-medications-recordedmedications-commentComment0..1text
...... clinicaldetails-medications-newmedicationsNew medications0..*group
....... clinicaldetails-medications-newmedications-medicationMedication0..1open-choiceValue Set: Australian Medication
....... clinicaldetails-medications-newmedications-dosageDosage0..1text
....... clinicaldetails-medications-newmedications-indicationIndication0..*open-choiceValue Set: Medication Reason Taken
....... clinicaldetails-medications-newmedications-commentComment0..1text
..... clinicaldetails-observationsObservations0..1group
...... clinicaldetails-observations-instructionsThe tabled observations will display the most recent results available from the patient record. New observations may be added.0..1display
...... clinicaldetails-observations-maingridObservations0..1group
....... clinicaldetails-observations-maingrid-heightHeight0..1group
........ clinicaldetails-observations-maingrid-height-lastresultLast result0..1display
........ clinicaldetails-observations-maingrid-height-lastresultvaluenull0..1decimaliconicon
........ clinicaldetails-observations-maingrid-height-lastresultdatenull0..1dateiconicon
........ clinicaldetails-observations-maingrid-height-newresultvalueNew result0..1decimal
......... clinicaldetails-observations-maingrid-height-newresultvalue-unitcm0..1display
........ clinicaldetails-observations-maingrid-height-newresultdateNew result date0..1date
....... clinicaldetails-observations-maingrid-weightWeight0..1group
........ clinicaldetails-observations-maingrid-weight-lastresultLast result0..1display
........ clinicaldetails-observations-maingrid-weight-lastresultvaluenull0..1decimaliconicon
........ clinicaldetails-observations-maingrid-weight-lastresultdatenull0..1dateiconicon
........ clinicaldetails-observations-maingrid-weight-newresultvalueNew result0..1decimal
......... clinicaldetails-observations-maingrid-weight-newresultvalue-unitkg0..1display
........ clinicaldetails-observations-maingrid-weight-newresultdateNew result date0..1date
....... clinicaldetails-observations-maingrid-bmiBMI (calculated)0..1group
........ clinicaldetails-observations-maingrid-bmi-lastresultLast result0..1display
........ clinicaldetails-observations-maingrid-bmi-lastresultvaluenull0..1decimaliconicon
........ clinicaldetails-observations-maingrid-bmi-newresultvalueNew result0..1decimaliconicon
......... clinicaldetails-observations-maingrid-bmi-newresult-unitkg/m20..1display
....... clinicaldetails-observations-maingrid-waistcircumferenceWaist circumference0..1group
........ clinicaldetails-observations-maingrid-waistcircumference-lastresultLast result0..1display
........ clinicaldetails-observations-maingrid-waistcircumference-lastresultvaluenull0..1decimaliconicon
........ clinicaldetails-observations-maingrid-waistcircumference-lastresultdatenull0..1dateiconicon
........ clinicaldetails-observations-maingrid-waistcircumference-newresultvalueNew result0..1decimal
......... clinicaldetails-observations-maingrid-waistcircumference-newresultvalue-unitcm0..1display
........ clinicaldetails-observations-maingrid-waistcircumference-newdateNew result date0..1date
....... clinicaldetails-observations-maingrid-pulseratePulse rate0..1group
........ clinicaldetails-observations-maingrid-pulserate-lastresultLast result0..1display
........ clinicaldetails-observations-maingrid-pulserate-lastresultvaluenull0..1decimaliconicon
........ clinicaldetails-observations-maingrid-pulserate-lastresultdatenull0..1dateiconicon
........ clinicaldetails-observations-maingrid-pulserate-newresultvalueNew result0..1integer
......... clinicaldetails-observations-maingrid-pulserate-newresultvalue-unit/min0..1display
........ clinicaldetails-observations-maingrid-pulserate-newresultdateNew result date0..1date
....... clinicaldetails-observations-maingrid-pulserhythmPulse rhythm0..1group
........ clinicaldetails-observations-maingrid-pulserhythm-lastresultLast result0..1display
........ clinicaldetails-observations-maingrid-pulserhythm-lastresultvaluenull0..1choiceiconiconValue Set: Pulse Rhythm
........ clinicaldetails-observations-maingrid-pulserhythm-lastresultdatenull0..1dateiconicon
........ clinicaldetails-observations-maingrid-pulserhythm-newresultvalueNew result0..1choiceValue Set: Pulse Rhythm
........ clinicaldetails-observations-maingrid-pulserhythm-newresultdateNew result date0..1date
....... clinicaldetails-observations-maingrid-oxygensaturationOxygen saturation0..1group
........ clinicaldetails-observations-maingrid-oxygensaturation-lastresultLast result0..1display
........ clinicaldetails-observations-maingrid-oxygensaturation-lastresultvaluenull0..1decimaliconicon
........ clinicaldetails-observations-maingrid-oxygensaturation-lastresultdatenull0..1dateiconicon
........ clinicaldetails-observations-maingrid-oxygensaturation-newresultvalueNew result0..1integer
......... clinicaldetails-observations-maingrid-oxygensaturation-newresultvalue-unit%0..1display
........ clinicaldetails-observations-maingrid-oxygensaturation-newresultdateNew result date0..1date
...... clinicaldetails-observations-bpgridBlood pressure0..1group
....... clinicaldetails-observations-bpgrid-bpBlood pressure0..1group
........ clinicaldetails-observations-bpgrid-bp-lastresultLast result0..1display
........ clinicaldetails-observations-bpgrid-bp-lastresultvaluesystolicnull0..1decimaliconicon
........ clinicaldetails-observations-bpgrid-bp-lastresultvaluediastolicnull0..1decimaliconicon
........ clinicaldetails-observations-bpgrid-bp-lastresultdatenull0..1dateiconicon
........ clinicaldetails-observations-bpgrid-bp-newresultsystolicSystolic0..1integer
......... clinicaldetails-observations-bpgrid-bp-newresultsystolic-unitmm Hg0..1display
........ clinicaldetails-observations-bpgrid-bp-newresultdiastolicDiastolic0..1integer
......... clinicaldetails-observations-bpgrid-bp-newresultdiastolic-unitmm Hg0..1display
........ clinicaldetails-observations-bpgrid-bp-newresultdateDate performed0..1date
...... clinicaldetails-observations-substanceusegridSubstance use0..1group
....... clinicaldetails-observations-substanceusegrid-smokingstatusSmoking status0..1group
........ clinicaldetails-observations-substanceusegrid-smokingstatus-laststatusLast status0..1display
........ clinicaldetails-observations-substanceusegrid-smokingstatus-lastresultvaluenull0..1choiceiconiconValue Set: Smoking Status
........ clinicaldetails-observations-substanceusegrid-smokingstatus-lastresultdatenull0..1dateiconicon
........ clinicaldetails-observations-substanceusegrid-smokingstatus-newresultvalueNew status0..1choiceValue Set: Smoking Status
........ clinicaldetails-observations-substanceusegrid-smokingstatus-newresultdateNew status date0..1date
........ clinicaldetails-observations-smokingstatusgrid-smokingstatus-newresultcommentComment0..1string
....... clinicaldetails-observations-substanceusegrid-alcoholstatusAlcohol consumption status0..1group
........ clinicaldetails-observations-substanceusegrid-alcoholstatus-laststatusLast status0..1display
........ clinicaldetails-observations-substanceusegrid-alcoholstatus-lastresultvaluenull0..1choiceiconiconValue Set: Alcohol Intake Status
........ clinicaldetails-observations-substanceusegrid-alcoholstatus-lastresultdatenull0..1dateiconicon
........ clinicaldetails-observations-substanceusegrid-alcoholstatus-newresultvalueNew status0..1choiceValue Set: Alcohol Intake Status
........ clinicaldetails-observations-substanceusegrid-alcoholstatus-newresultdateNew status date0..1date
........ clinicaldetails-observations-substanceusegrid-alcoholstatus-newresultcommentComment0..1string
..... clinicaldetails-observations-additionalinformationAdditional information0..1text
.... planPlan0..1group
..... plandetails-inprogressIncomplete draft plan already exists?0..1booleaniconicon
..... plandetails-lastcompleteddateDate of most recent plan0..1dateiconicon
..... plan-conditionsConditions addressed0..*group
...... plan-conditions-conditionCondition0..1open-choiceValue Set: Clinical Condition
...... plan-conditions-onsetdateOnset date0..1date
...... plan-conditions-commentsComments0..1text
..... plan-goalstasksGoals and tasks0..*group
...... plan-goalstasks-problemneedProblems/Needs0..*open-choiceValue Set: Clinical Condition
...... plan-goalstasks-details-goalsettingGoal setting0..*group
....... plan-goalstasks-details-goalsetting-goalsGoals0..1text
....... plan-goalstasks-details-goalsetting-initiatorInitiator0..1string
....... plan-goalstasks-details-goalsetting-targetdateTarget date0..1date
....... plan-goalstasks-details-goalsetting-statusStatus0..1choiceValue Set: Goal Status Limited
....... plan-goalstasks-details-goalsetting-commentComment0..1string
...... plan-goalstasks-details-interventionsactionsInterventions and actions0..*group
....... plan-goalstasks-details-interventionsactions-interventionsactionsInterventions/Actions0..1open-choiceValue Set: Procedure
....... plan-goalstasks-details-interventionsactions-ownerOwner0..1string
....... plan-goalstasks-details-interventionsactions-duedateDue date0..1date
....... plan-goalstasks-details-interventionsactions-commentComment0..1string
...... plan-goalstasks-details-servicestreatmentsServices and treatments0..*group
....... plan-goalstasks-details-servicestreatments-servicestreatmentsRequired services and treatments0..1open-choiceValue Set: Service Type
....... plan-goalstasks-details-servicestreatments-activityActivity0..1open-choiceValue Set: Procedure
....... plan-goalstasks-details-servicestreatments-providerProvider0..1string
....... plan-goalstasks-details-servicestreatments-commentComment0..1string
..... notesNotes0..1group
...... notes-additionalcommentsAdditional notes or comments0..*text
..... completionCompletion0..1group
...... completion-consentforsharingConsent given for sharing of information with relevant healthcare providers0..1boolean
...... completion-reviewReview0..1group
....... completion-review-appointmentstatusAppointment status0..1choiceOptions: 2 options
....... completion-review-dateDate0..1date
....... completion-review-commentComment0..1string
...... completion-copyofferedPatient has been offered a copy of this plan0..1choiceOptions: 3 options
...... completion-commentComment0..1string

doco Documentation for this format

Options Sets

Answer options for patient-additionalcontacts-type

  • http://snomed.info/sct#394619001
  • http://snomed.info/sct#1620171000168100
  • http://terminology.hl7.org/CodeSystem/v2-0131#C
  • http://terminology.hl7.org/CodeSystem/v2-0131#CP
  • http://terminology.hl7.org/CodeSystem/v2-0131#N

Answer options for completion-review-appointmentstatus

  • http://hl7.org/fhir/appointmentstatus#booked ("Booked")
  • http://hl7.org/fhir/appointmentstatus#proposed ("Proposed")

Answer options for completion-copyoffered

  • Yes, copy provided
  • Yes, copy to be provided at a later date
  • Yes, but declined

Contained Resources


ValueSet #YesNoPending

This ValueSet requires the Code system Supplement GP CCMP Expanded Yes No Indicator Supplement.

This value set contains 3 concepts

SystemCodeDisplay (en)Definition
http://terminology.hl7.org/CodeSystem/v2-0532  YYesYes
http://terminology.hl7.org/CodeSystem/v2-0532  NNoNo
http://terminology.hl7.org/CodeSystem/v2-0532  NAVPendingtemporarily unavailable

ValueSet #YesNo

Expansion based on codesystem expandedYes-NoIndicator v3.0.0 (CodeSystem)

This value set contains 2 concepts

SystemCodeDisplay (en)Definition
http://terminology.hl7.org/CodeSystem/v2-0532  YYesYes
http://terminology.hl7.org/CodeSystem/v2-0532  NNoNo

ValueSet #pulse-rhythm-1

Expansion based on SNOMED CT Australian Edition edition 31-Jan 2026

This value set contains 4 concepts

SystemCodeDisplay (en)
http://snomed.info/sct  271636001Pulse regular
http://snomed.info/sct  61086009Pulse irregular
http://snomed.info/sct  271637005Pulse irregularly irregular
http://snomed.info/sct  271638000Pulse regularly irregular

ValueSet #MedicationStatementStatusLimited

Expansion based on codesystem Medication status codes v4.0.1 (CodeSystem)

This value set contains 4 concepts

SystemCodeDisplay
http://hl7.org/fhir/CodeSystem/medication-statement-status  activeActive
http://hl7.org/fhir/CodeSystem/medication-statement-status  completedCompleted
http://hl7.org/fhir/CodeSystem/medication-statement-status  stoppedStopped
http://hl7.org/fhir/CodeSystem/medication-statement-status  on-holdOn Hold

ValueSet #GoalStatusLimited

This value set contains 3 concepts

SystemCodeDisplay (en)Definition
http://hl7.org/fhir/goal-status  activeactiveThe goal is being sought actively.
http://hl7.org/fhir/goal-status  completedcompletedThe goal is no longer being sought.
http://hl7.org/fhir/goal-status  cancelledwithdrawnThe goal has been abandoned.

Source1

{
  "resourceType": "Questionnaire",
  "id": "GPChronicConditionManagementPlan",
  "meta": {
    "profile": [
      "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-render",
      "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-pop-exp"
    ]
  },
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "contained": [
    {
      "resourceType": "ValueSet",
      "id": "YesNoPending",
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/valueset-supplement",
          "valueCanonical": "https://gpccmp.csiro.au/ig/CodeSystem/GPCCMPExpandedYesNoIndicatorSupplement|0.1.0"
        }
      ],
      "url": "https://gpccmp.csiro.au/ig/ValueSet/YesNoPending",
      "name": "YesNoPending",
      "title": "Yes/No/Pending",
      "status": "draft",
      "experimental": false,
      "description": "Concepts for Yes, No and Pending",
      "compose": {
        "include": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/v2-0532",
            "version": "3.0.0",
            "concept": [
              {
                "code": "Y",
                "display": "Yes"
              },
              {
                "code": "N",
                "display": "No"
              },
              {
                "code": "NAV",
                "display": "Pending"
              }
            ]
          }
        ]
      },
      "expansion": {
        "identifier": "urn:uuid:105bb5ba-72a4-43a2-ab99-6859a21463a8",
        "timestamp": "2026-02-17T10:59:10+10:00",
        "total": 3,
        "offset": 0,
        "parameter": [
          {
            "name": "displayLanguage",
            "valueCode": "en"
          },
          {
            "name": "count",
            "valueInteger": 1000
          },
          {
            "name": "offset",
            "valueInteger": 0
          },
          {
            "name": "excludeNested",
            "valueBoolean": false
          },
          {
            "name": "used-codesystem",
            "valueUri": "http://terminology.hl7.org/CodeSystem/v2-0532|3.0.0"
          },
          {
            "name": "used-supplement",
            "valueUri": "https://gpccmp.csiro.au/ig/CodeSystem/GPCCMPExpandedYesNoIndicatorSupplement|0.1.0"
          }
        ],
        "contains": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/v2-0532",
            "code": "Y",
            "display": "Yes"
          },
          {
            "system": "http://terminology.hl7.org/CodeSystem/v2-0532",
            "code": "N",
            "display": "No"
          },
          {
            "system": "http://terminology.hl7.org/CodeSystem/v2-0532",
            "code": "NAV",
            "display": "Pending"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "YesNo",
      "url": "https://gpccmp.csiro.au/ig/ValueSet/YesNo",
      "name": "YesNo",
      "title": "Yes/No",
      "status": "draft",
      "experimental": false,
      "description": "Concepts for Yes and No",
      "compose": {
        "include": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/v2-0532",
            "version": "3.0.0",
            "concept": [
              {
                "code": "Y",
                "display": "Yes"
              },
              {
                "code": "N",
                "display": "No"
              }
            ]
          }
        ]
      },
      "expansion": {
        "identifier": "urn:uuid:65f54ac5-483f-4d55-a6eb-43c1588ba934",
        "timestamp": "2026-02-17T11:03:51+10:00",
        "total": 2,
        "offset": 0,
        "parameter": [
          {
            "name": "displayLanguage",
            "valueCode": "en"
          },
          {
            "name": "count",
            "valueInteger": 1000
          },
          {
            "name": "offset",
            "valueInteger": 0
          },
          {
            "name": "excludeNested",
            "valueBoolean": false
          },
          {
            "name": "used-codesystem",
            "valueUri": "http://terminology.hl7.org/CodeSystem/v2-0532|3.0.0"
          }
        ],
        "contains": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/v2-0532",
            "code": "Y",
            "display": "Yes"
          },
          {
            "system": "http://terminology.hl7.org/CodeSystem/v2-0532",
            "code": "N",
            "display": "No"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "pulse-rhythm-1",
      "url": "https://gpccmp.csiro.au/ig/ValueSet/pulse-rhythm-1",
      "name": "PulseRhythm",
      "title": "Pulse Rhythm",
      "status": "draft",
      "experimental": false,
      "description": "The Pulse Rhythm value set includes values that may be used to represent the pulse rhythm of an individual.",
      "compose": {
        "include": [
          {
            "system": "http://snomed.info/sct",
            "concept": [
              {
                "code": "271636001",
                "display": "Pulse regular"
              },
              {
                "code": "61086009",
                "display": "Pulse irregular"
              },
              {
                "code": "271637005",
                "display": "Pulse irregularly irregular"
              },
              {
                "code": "271638000",
                "display": "Pulse regularly irregular"
              }
            ]
          }
        ]
      },
      "expansion": {
        "identifier": "urn:uuid:a544a2bc-fc6b-45e8-bbaa-4472eedaba72",
        "timestamp": "2026-02-09T11:26:29+10:00",
        "total": 4,
        "offset": 0,
        "parameter": [
          {
            "name": "displayLanguage",
            "valueCode": "en"
          },
          {
            "name": "count",
            "valueInteger": 1000
          },
          {
            "name": "offset",
            "valueInteger": 0
          },
          {
            "name": "excludeNested",
            "valueBoolean": false
          },
          {
            "name": "system-version",
            "valueUri": "http://snomed.info/sct|http://snomed.info/sct/32506021000036107"
          },
          {
            "name": "used-codesystem",
            "valueUri": "http://snomed.info/sct|http://snomed.info/sct/32506021000036107/version/20260131"
          },
          {
            "name": "version",
            "valueUri": "http://snomed.info/sct|http://snomed.info/sct/32506021000036107/version/20260131"
          }
        ],
        "contains": [
          {
            "system": "http://snomed.info/sct",
            "code": "271636001",
            "display": "Pulse regular"
          },
          {
            "system": "http://snomed.info/sct",
            "code": "61086009",
            "display": "Pulse irregular"
          },
          {
            "system": "http://snomed.info/sct",
            "code": "271637005",
            "display": "Pulse irregularly irregular"
          },
          {
            "system": "http://snomed.info/sct",
            "code": "271638000",
            "display": "Pulse regularly irregular"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "MedicationStatementStatusLimited",
      "url": "https://gpccmp.csiro.au/ig/ValueSet/MedicationStatementStatusLimited",
      "name": "MedicationStatementStatusLimited",
      "title": "Medication Statement Status Limited",
      "status": "draft",
      "experimental": false,
      "description": "This value set includes the minimal set of codes to represent the status of a medication statement (i.e., active, completed, stopped and on-hold).",
      "compose": {
        "include": [
          {
            "system": "http://hl7.org/fhir/CodeSystem/medication-statement-status",
            "version": "4.0.1",
            "concept": [
              {
                "code": "active"
              },
              {
                "code": "completed"
              },
              {
                "code": "stopped"
              },
              {
                "code": "on-hold"
              }
            ]
          }
        ]
      },
      "expansion": {
        "identifier": "urn:uuid:59fe5ac1-65bf-4606-8c2a-0a55fba1d064",
        "timestamp": "2025-08-25T15:53:32+10:00",
        "total": 4,
        "offset": 0,
        "parameter": [
          {
            "name": "count",
            "valueInteger": 1000
          },
          {
            "name": "offset",
            "valueInteger": 0
          },
          {
            "name": "excludeNested",
            "valueBoolean": false
          },
          {
            "name": "used-codesystem",
            "valueUri": "http://hl7.org/fhir/CodeSystem/medication-statement-status|4.0.1"
          }
        ],
        "contains": [
          {
            "system": "http://hl7.org/fhir/CodeSystem/medication-statement-status",
            "code": "active",
            "display": "Active"
          },
          {
            "system": "http://hl7.org/fhir/CodeSystem/medication-statement-status",
            "code": "completed",
            "display": "Completed"
          },
          {
            "system": "http://hl7.org/fhir/CodeSystem/medication-statement-status",
            "code": "stopped",
            "display": "Stopped"
          },
          {
            "system": "http://hl7.org/fhir/CodeSystem/medication-statement-status",
            "code": "on-hold",
            "display": "On Hold"
          }
        ]
      }
    },
    {
      "resourceType": "ValueSet",
      "id": "GoalStatusLimited",
      "url": "https://gpccmp.csiro.au/ig/ValueSet/GoalStatusLimited",
      "name": "GoalStatusLimited",
      "title": "Goal Status Limited",
      "status": "draft",
      "experimental": false,
      "description": "This value set includes the minimal set of codes to represent the status of a goal (i.e., active, completed, and withdrawn).",
      "compose": {
        "include": [
          {
            "system": "http://hl7.org/fhir/goal-status",
            "version": "4.0.1",
            "concept": [
              {
                "code": "active",
                "display": "active"
              },
              {
                "code": "completed",
                "display": "completed"
              },
              {
                "code": "cancelled",
                "display": "withdrawn"
              }
            ]
          }
        ]
      },
      "expansion": {
        "identifier": "urn:uuid:363b3b05-2833-47d2-b88f-6d2ccb006278",
        "timestamp": "2026-02-17T14:48:48+10:00",
        "total": 3,
        "offset": 0,
        "parameter": [
          {
            "name": "displayLanguage",
            "valueCode": "en"
          },
          {
            "name": "count",
            "valueInteger": 1000
          },
          {
            "name": "offset",
            "valueInteger": 0
          },
          {
            "name": "excludeNested",
            "valueBoolean": false
          },
          {
            "name": "used-codesystem",
            "valueUri": "http://hl7.org/fhir/goal-status|4.0.1"
          },
          {
            "name": "used-supplement",
            "valueUri": "https://gpccmp.csiro.au/ig/CodeSystem/GPCCMPGoalStatusSupplement|0.1.0"
          }
        ],
        "contains": [
          {
            "system": "http://hl7.org/fhir/goal-status",
            "code": "active",
            "display": "active"
          },
          {
            "system": "http://hl7.org/fhir/goal-status",
            "code": "completed",
            "display": "completed"
          },
          {
            "system": "http://hl7.org/fhir/goal-status",
            "code": "cancelled",
            "display": "withdrawn"
          }
        ]
      }
    }
  ],
  "extension": [
    {
      "extension": [
        {
          "url": "name",
          "valueCoding": {
            "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
            "code": "patient"
          }
        },
        {
          "url": "type",
          "valueCode": "Patient"
        },
        {
          "url": "description",
          "valueString": "The patient that is to be used to pre-populate the form. This is the subject of the form."
        }
      ],
      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext"
    },
    {
      "extension": [
        {
          "url": "name",
          "valueCoding": {
            "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
            "code": "user"
          }
        },
        {
          "url": "type",
          "valueCode": "Practitioner"
        },
        {
          "url": "description",
          "valueString": "The practitioner user that is to be used to pre-populate the form. This is the user that is filling out the form."
        }
      ],
      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext"
    },
    {
      "extension": [
        {
          "url": "name",
          "valueCoding": {
            "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
            "code": "encounter"
          }
        },
        {
          "url": "type",
          "valueCode": "Encounter"
        },
        {
          "url": "description",
          "valueString": "The encounter that is to be used to pre-populate the form. This is the encounter during which the form is being filled out."
        }
      ],
      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext"
    },
    {
      "extension": [
        {
          "url": "name",
          "valueCoding": {
            "system": "https://gpccmp.csiro.au/ig/CodeSystem/LaunchContextExtended",
            "code": "gpccmppractitionerrole"
          }
        },
        {
          "url": "type",
          "valueCode": "PractitionerRole"
        },
        {
          "url": "description",
          "valueString": "The practitioner role that is to be used to pre-populate the form. This is the practitioner role of the user that is filling out the form."
        }
      ],
      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "GPCCMPLatest",
        "language": "application/x-fhir-query",
        "expression": "QuestionnaireResponse?questionnaire=http://www.health.gov.au/assessments/GPChronicConditionManagementPlan&_count=1&_sort=-authored&patient={{%patient.id}}"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "GPCCMPLatestCompletedAmended",
        "language": "application/x-fhir-query",
        "expression": "QuestionnaireResponse?questionnaire=http://www.health.gov.au/assessments/GPChronicConditionManagementPlan&status=completed,amended&_count=1&_sort=-authored&patient={{%patient.id}}"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "PractitionerRoleLocation",
        "language": "application/x-fhir-query",
        "expression": "PractitionerRole?_id={{%gpccmppractitionerrole.id}}&_include=PractitionerRole:location"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "Condition",
        "language": "application/x-fhir-query",
        "expression": "Condition?patient={{%patient.id}}&category=http://terminology.hl7.org/CodeSystem/condition-category|problem-list-item"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "AllergyIntolerance",
        "language": "application/x-fhir-query",
        "expression": "AllergyIntolerance?patient={{%patient.id}}"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "MedicationStatement",
        "language": "application/x-fhir-query",
        "expression": "MedicationStatement?patient={{%patient.id}}&status=active&_include=MedicationStatement:medication"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBodyHeight",
        "language": "application/x-fhir-query",
        "expression": "Observation?code=8302-2&_sort=-date&patient={{%patient.id}}"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBodyWeight",
        "language": "application/x-fhir-query",
        "expression": "Observation?code=29463-7&_sort=-date&patient={{%patient.id}}"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsWaistCircumference",
        "language": "application/x-fhir-query",
        "expression": "Observation?code=8280-0&_sort=-date&patient={{%patient.id}}"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsPulseRate",
        "language": "application/x-fhir-query",
        "expression": "Observation?code=78564009&_sort=-date&patient={{%patient.id}}"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsPulseRhythm",
        "language": "application/x-fhir-query",
        "expression": "Observation?code=364095004&_sort=-date&patient={{%patient.id}}"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsOxygenSaturation",
        "language": "application/x-fhir-query",
        "expression": "Observation?code=2708-6&_sort=-date&patient={{%patient.id}}"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBloodPressure",
        "language": "application/x-fhir-query",
        "expression": "Observation?code=85354-9&_sort=-date&patient={{%patient.id}}"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsSmokingStatus",
        "language": "application/x-fhir-query",
        "expression": "Observation?code=1747861000168109&_sort=-date&patient={{%patient.id}}"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsAlcoholStatus",
        "language": "application/x-fhir-query",
        "expression": "Observation?code=897148007&_sort=-date&patient={{%patient.id}}"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ClinicLocation",
        "language": "text/fhirpath",
        "expression": "%PractitionerRoleLocation.entry.resource.ofType(Location)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "HomeAddressNoFixedAddress",
        "language": "text/fhirpath",
        "expression": "repeat(item).where(linkId='patient-contact-homeaddress-nofixedaddress').answer.value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "age",
        "language": "text/fhirpath",
        "expression": "repeat(item).where(linkId='patient-age').answer.value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "weight",
        "language": "text/fhirpath",
        "expression": "repeat(item).where(linkId='clinicaldetails-observations-maingrid-weight-newresultvalue').answer.value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "height",
        "language": "text/fhirpath",
        "expression": "repeat(item).where(linkId='clinicaldetails-observations-maingrid-height-newresultvalue').answer.value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "medicationsFromContained",
        "language": "text/fhirpath",
        "expression": "%MedicationStatement.entry.resource.contained.ofType(Medication).where(id in %MedicationStatement.entry.resource.medication.select(reference.replace('#', '')))"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "medicationsFromRef",
        "language": "text/fhirpath",
        "expression": "%MedicationStatement.entry.resource.ofType(Medication).where(id in %MedicationStatement.entry.resource.medication.select(reference.replace('Medication/', '')))"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBodyHeightLatest",
        "language": "text/fhirpath",
        "expression": "%ObsBodyHeight.entry.resource.where(status = 'final' or status = 'amended' or status = 'corrected').first()"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBodyWeightLatest",
        "language": "text/fhirpath",
        "expression": "%ObsBodyWeight.entry.resource.where(status = 'final' or status = 'amended' or status = 'corrected').first()"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsWaistCircumferenceLatest",
        "language": "text/fhirpath",
        "expression": "%ObsWaistCircumference.entry.resource.where(status = 'final' or status = 'amended' or status = 'corrected').first()"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsPulseRateLatest",
        "language": "text/fhirpath",
        "expression": "%ObsPulseRate.entry.resource.where(status = 'final' or status = 'amended' or status = 'corrected').first()"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsPulseRhythmLatest",
        "language": "text/fhirpath",
        "expression": "%ObsPulseRhythm.entry.resource.where(status = 'final' or status = 'amended' or status = 'corrected').first()"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsOxygenSaturationLatest",
        "language": "text/fhirpath",
        "expression": "%ObsOxygenSaturation.entry.resource.where(status = 'final' or status = 'amended' or status = 'corrected').first()"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBloodPressureLatest",
        "language": "text/fhirpath",
        "expression": "%ObsBloodPressure.entry.resource.where(status = 'final' or status = 'amended' or status = 'corrected').first()"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsSmokingStatusLatest",
        "language": "text/fhirpath",
        "expression": "%ObsSmokingStatus.entry.resource.where(status = 'final' or status = 'amended' or status = 'corrected').first()"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsAlcoholStatusLatest",
        "language": "text/fhirpath",
        "expression": "%ObsAlcoholStatus.entry.resource.where(status = 'final' or status = 'amended' or status = 'corrected').first()"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBodyHeightValue",
        "language": "text/fhirpath",
        "expression": "%ObsBodyHeightLatest.value.where(exists(system='http://unitsofmeasure.org' and code='cm')).value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBodyHeightDateString",
        "language": "text/fhirpath",
        "expression": "%ObsBodyHeightLatest.effective.toString().substring(0,10)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBodyHeightDateFormatted",
        "language": "text/fhirpath",
        "expression": "%ObsBodyHeightDateString.substring(8,2).toInteger().toString() + ' ' + %ObsBodyHeightDateString.substring(5,2).replace('01','Jan').replace('02','Feb').replace('03','Mar').replace('04','Apr').replace('05','May').replace('06','Jun').replace('07','Jul').replace('08','Aug').replace('09','Sep').replace('10','Oct').replace('11','Nov').replace('12','Dec') + ' ' + %ObsBodyHeightDateString.substring(0,4)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBodyWeightValue",
        "language": "text/fhirpath",
        "expression": "%ObsBodyWeightLatest.value.where(exists(system='http://unitsofmeasure.org' and code='kg')).value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBodyWeightDateString",
        "language": "text/fhirpath",
        "expression": "%ObsBodyWeightLatest.effective.toString().substring(0,10)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBodyWeightDateFormatted",
        "language": "text/fhirpath",
        "expression": "%ObsBodyWeightDateString.substring(8,2).toInteger().toString() + ' ' + %ObsBodyWeightDateString.substring(5,2).replace('01','Jan').replace('02','Feb').replace('03','Mar').replace('04','Apr').replace('05','May').replace('06','Jun').replace('07','Jul').replace('08','Aug').replace('09','Sep').replace('10','Oct').replace('11','Nov').replace('12','Dec') + ' ' + %ObsBodyWeightDateString.substring(0,4)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsWaistCircumferenceValue",
        "language": "text/fhirpath",
        "expression": "%ObsWaistCircumferenceLatest.value.where(exists(system='http://unitsofmeasure.org' and code='cm')).value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsWaistCircumferenceDateString",
        "language": "text/fhirpath",
        "expression": "%ObsWaistCircumferenceLatest.effective.toString().substring(0,10)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsWaistCircumferenceDateFormatted",
        "language": "text/fhirpath",
        "expression": "%ObsWaistCircumferenceDateString.substring(8,2).toInteger().toString() + ' ' + %ObsWaistCircumferenceDateString.substring(5,2).replace('01','Jan').replace('02','Feb').replace('03','Mar').replace('04','Apr').replace('05','May').replace('06','Jun').replace('07','Jul').replace('08','Aug').replace('09','Sep').replace('10','Oct').replace('11','Nov').replace('12','Dec') + ' ' + %ObsWaistCircumferenceDateString.substring(0,4)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsPulseRateValue",
        "language": "text/fhirpath",
        "expression": "%ObsPulseRateLatest.value.where(exists(system='http://unitsofmeasure.org' and code='/min')).value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsPulseRateDateString",
        "language": "text/fhirpath",
        "expression": "%ObsPulseRateLatest.effective.toString().substring(0,10)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsPulseRateDateFormatted",
        "language": "text/fhirpath",
        "expression": "%ObsPulseRateDateString.substring(8,2).toInteger().toString() + ' ' + %ObsPulseRateDateString.substring(5,2).replace('01','Jan').replace('02','Feb').replace('03','Mar').replace('04','Apr').replace('05','May').replace('06','Jun').replace('07','Jul').replace('08','Aug').replace('09','Sep').replace('10','Oct').replace('11','Nov').replace('12','Dec') + ' ' + %ObsPulseRateDateString.substring(0,4)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsPulseRhythmValue",
        "language": "text/fhirpath",
        "expression": "%ObsPulseRhythmLatest.value.coding.where(system='http://snomed.info/sct').first()"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsPulseRhythmDateString",
        "language": "text/fhirpath",
        "expression": "%ObsPulseRhythmLatest.effective.toString().substring(0,10)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsPulseRhythmDateFormatted",
        "language": "text/fhirpath",
        "expression": "%ObsPulseRhythmDateString.substring(8,2).toInteger().toString() + ' ' + %ObsPulseRhythmDateString.substring(5,2).replace('01','Jan').replace('02','Feb').replace('03','Mar').replace('04','Apr').replace('05','May').replace('06','Jun').replace('07','Jul').replace('08','Aug').replace('09','Sep').replace('10','Oct').replace('11','Nov').replace('12','Dec') + ' ' + %ObsPulseRhythmDateString.substring(0,4)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsOxygenSaturationValue",
        "language": "text/fhirpath",
        "expression": "%ObsOxygenSaturationLatest.value.where(exists(system='http://unitsofmeasure.org' and code='%')).value"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsOxygenSaturationString",
        "language": "text/fhirpath",
        "expression": "%ObsOxygenSaturationLatest.effective.toString().substring(0,10)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsOxygenSaturationDateFormatted",
        "language": "text/fhirpath",
        "expression": "%ObsOxygenSaturationString.substring(8,2).toInteger().toString() + ' ' + %ObsOxygenSaturationString.substring(5,2).replace('01','Jan').replace('02','Feb').replace('03','Mar').replace('04','Apr').replace('05','May').replace('06','Jun').replace('07','Jul').replace('08','Aug').replace('09','Sep').replace('10','Oct').replace('11','Nov').replace('12','Dec') + ' ' + %ObsOxygenSaturationString.substring(0,4)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsSmokingStatusValue",
        "language": "text/fhirpath",
        "expression": "%ObsSmokingStatusLatest.value.coding.where(system='http://snomed.info/sct').first()"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsSmokingStatusDateString",
        "language": "text/fhirpath",
        "expression": "%ObsSmokingStatusLatest.effective.toString().substring(0,10)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsSmokingStatusDateFormatted",
        "language": "text/fhirpath",
        "expression": "%ObsSmokingStatusDateString.substring(8,2).toInteger().toString() + ' ' + %ObsSmokingStatusDateString.substring(5,2).replace('01','Jan').replace('02','Feb').replace('03','Mar').replace('04','Apr').replace('05','May').replace('06','Jun').replace('07','Jul').replace('08','Aug').replace('09','Sep').replace('10','Oct').replace('11','Nov').replace('12','Dec') + ' ' + %ObsSmokingStatusDateString.substring(0,4)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsAlcoholStatusValue",
        "language": "text/fhirpath",
        "expression": "%ObsAlcoholStatusLatest.value.coding.where(system='http://snomed.info/sct').first()"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsAlcoholStatusDateString",
        "language": "text/fhirpath",
        "expression": "%ObsAlcoholStatusLatest.effective.toString().substring(0,10)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsAlcoholStatusDateFormatted",
        "language": "text/fhirpath",
        "expression": "%ObsAlcoholStatusDateString.substring(8,2).toInteger().toString() + ' ' + %ObsAlcoholStatusDateString.substring(5,2).replace('01','Jan').replace('02','Feb').replace('03','Mar').replace('04','Apr').replace('05','May').replace('06','Jun').replace('07','Jul').replace('08','Aug').replace('09','Sep').replace('10','Oct').replace('11','Nov').replace('12','Dec') + ' ' + %ObsAlcoholStatusDateString.substring(0,4)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBloodPressureValue",
        "language": "text/fhirpath",
        "expression": "%ObsBloodPressureLatest.component.where(code.coding.exists(code='8480-6')).value.value.round(0).toString() + ' / ' + %ObsBloodPressureLatest.component.where(code.coding.exists(code='8462-4')).value.value.round(0).toString()"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBloodPressureDateString",
        "language": "text/fhirpath",
        "expression": "%ObsBloodPressureLatest.effective.toString().substring(0,10)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/variable",
      "valueExpression": {
        "name": "ObsBloodPressureDateFormatted",
        "language": "text/fhirpath",
        "expression": "%ObsBloodPressureDateString.substring(8,2).toInteger().toString() + ' ' + %ObsBloodPressureDateString.substring(5,2).replace('01','Jan').replace('02','Feb').replace('03','Mar').replace('04','Apr').replace('05','May').replace('06','Jun').replace('07','Jul').replace('08','Aug').replace('09','Sep').replace('10','Oct').replace('11','Nov').replace('12','Dec') + ' ' + %ObsBloodPressureDateString.substring(0,4)"
      }
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/artifact-versionAlgorithm",
      "valueCoding": {
        "system": "http://hl7.org/fhir/version-algorithm",
        "code": "semver"
      }
    }
  ],
  "url": "http://www.health.gov.au/assessments/GPChronicConditionManagementPlan",
  "version": "0.1.0",
  "name": "GPChronicConditionManagementPlan",
  "title": "GP Chronic Condition Management Plan",
  "status": "draft",
  "experimental": false,
  "subjectType": [
    "Patient"
  ],
  "date": "2026-02-13",
  "publisher": "AEHRC CSIRO",
  "contact": [
    {
      "name": "AEHRC CSIRO",
      "telecom": [
        {
          "system": "url",
          "value": "http://example.org/example-publisher"
        }
      ]
    }
  ],
  "description": "GP Chronic Condition Management Plan",
  "item": [
    {
      "extension": [
        {
          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://hl7.org/fhir/questionnaire-item-control",
                "code": "tab-container"
              }
            ]
          }
        }
      ],
      "linkId": "container",
      "type": "group",
      "repeats": false,
      "item": [
        {
          "linkId": "patient",
          "text": "Patient details",
          "type": "group",
          "repeats": false,
          "item": [
            {
              "linkId": "patient-instructions",
              "text": "This form has been prefilled with information that was available from the patient's health record. Upon saving, the form will be stored, but additional information entered will not be used to update the patient's health record. Changes to patient demographic information should be made in the source system.",
              "_text": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/rendering-xhtml",
                    "valueString": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n    <p><em>This form has been prefilled with information that was available from the patient's health record. Upon saving, the form will be stored, but additional information entered will not be used to update the patient's health record. Changes to patient demographic information should be made in the source system.</em></p></div>"
                  }
                ]
              },
              "type": "display"
            },
            {
              "linkId": "patient-consent",
              "text": "Consent",
              "type": "group",
              "repeats": false,
              "item": [
                {
                  "linkId": "patient-consent-consentforplan",
                  "text": "Consent given to proceed with plan after discussion of the purpose, benefits, process and costs",
                  "type": "boolean",
                  "repeats": false
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "(%patient.name.where(use='official').select((given.join(' ') | family).join(' ') | text) | %patient.name.select((given.join(' ') | family).join(' ') | text)).first()"
                  }
                }
              ],
              "linkId": "patient-name",
              "text": "Name",
              "type": "string",
              "repeats": false,
              "readOnly": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "(%patient.name.where(use='usual').select((given.join(' ') | family).join(' ') | text)).first()"
                  }
                }
              ],
              "linkId": "patient-preferredname",
              "text": "Preferred name",
              "type": "string",
              "repeats": false,
              "readOnly": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "%patient.extension.where(exists(url='http://hl7.org/fhir/StructureDefinition/individual-pronouns') and extension.where(url='period').value.end.empty()).extension.where(url='value').value.coding"
                  }
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "drop-down"
                      }
                    ]
                  }
                }
              ],
              "linkId": "patient-preferredpronouns",
              "text": "Preferred pronouns",
              "type": "choice",
              "repeats": false,
              "readOnly": true,
              "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/australian-pronouns-1"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "%patient.birthDate"
                  }
                }
              ],
              "linkId": "patient-dob",
              "text": "Date of birth",
              "type": "date",
              "repeats": false,
              "readOnly": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "iif(today().toString().select(substring(5,2) & substring(8,2)).toInteger() > %patient.birthDate.toString().select(substring(5,2) & substring(8,2)).toInteger(), today().toString().substring(0,4).toInteger() - %patient.birthDate.toString().substring(0,4).toInteger(), today().toString().substring(0,4).toInteger() - %patient.birthDate.toString().substring(0,4).toInteger() - 1)"
                  }
                }
              ],
              "linkId": "patient-age",
              "text": "Age",
              "type": "integer",
              "repeats": false,
              "readOnly": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "%patient.extension.where(exists(url='http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender' and extension.where(exists(url='type' and value.coding.code='1515311000168102')) and extension.where(url='effectivePeriod').value.end.empty())).extension.where(url='value').value.coding"
                  }
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "drop-down"
                      }
                    ]
                  }
                }
              ],
              "linkId": "patient-sexatbirth",
              "text": "Sex assigned at birth",
              "type": "choice",
              "repeats": false,
              "readOnly": true,
              "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/biological-sex-1"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "%patient.extension.where(exists(url='http://hl7.org/fhir/StructureDefinition/individual-genderIdentity') and extension.where(url='period').value.end.empty()).extension.where(url='value').value.coding"
                  }
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "drop-down"
                      }
                    ]
                  }
                }
              ],
              "linkId": "patient-genderidentity",
              "text": "Gender identity",
              "type": "choice",
              "repeats": false,
              "readOnly": true,
              "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/gender-identity-response-1"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "%patient.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/indigenous-status').value"
                  }
                },
                {
                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                  "valueCodeableConcept": {
                    "coding": [
                      {
                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                        "code": "drop-down"
                      }
                    ]
                  }
                }
              ],
              "linkId": "patient-firstnationsstatus",
              "text": "Aboriginal and/or Torres Strait Islander status",
              "type": "choice",
              "repeats": false,
              "readOnly": true,
              "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/australian-indigenous-status-1"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "%patient.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/closing-the-gap-registration').value"
                  }
                }
              ],
              "linkId": "patient-ctg",
              "text": "Registered for Closing the Gap PBS Co-payment Measure (CTG)",
              "type": "boolean",
              "repeats": false,
              "readOnly": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "%age >= 50"
                  }
                }
              ],
              "linkId": "patient-myagedcare",
              "text": "My Aged Care",
              "type": "group",
              "repeats": false,
              "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",
                      "valueCode": "horizontal"
                    }
                  ],
                  "linkId": "patient-myagedcare-registered",
                  "text": "Registered for My Aged Care",
                  "type": "choice",
                  "repeats": false,
                  "answerValueSet": "#YesNoPending"
                },
                {
                  "linkId": "patient-myagedcare-number",
                  "text": "My Aged Care Number",
                  "type": "string",
                  "enableWhen": [
                    {
                      "question": "patient-myagedcare-registered",
                      "operator": "=",
                      "answerCoding": {
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0136",
                        "code": "Y"
                      }
                    }
                  ],
                  "repeats": false
                },
                {
                  "linkId": "patient-myagedcare-comment",
                  "text": "Comment",
                  "type": "string",
                  "repeats": false
                }
              ]
            },
            {
              "linkId": "patient-ndis",
              "text": "National Disability Insurance Scheme",
              "type": "group",
              "repeats": false,
              "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",
                      "valueCode": "horizontal"
                    }
                  ],
                  "linkId": "patient-ndis-registered",
                  "text": "Registered for NDIS",
                  "type": "choice",
                  "repeats": false,
                  "answerValueSet": "#YesNoPending"
                },
                {
                  "linkId": "patient-ndis-number",
                  "text": "NDIS Number",
                  "type": "string",
                  "enableWhen": [
                    {
                      "question": "patient-ndis-registered",
                      "operator": "=",
                      "answerCoding": {
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0136",
                        "code": "Y"
                      }
                    }
                  ],
                  "repeats": false
                },
                {
                  "linkId": "patient-ndis-comment",
                  "text": "Comment",
                  "type": "string",
                  "repeats": false
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext",
                  "valueExpression": {
                    "name": "MedicareNumberArray",
                    "language": "text/fhirpath",
                    "expression": "%patient.identifier.where(type.coding.exists(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='MC'))"
                  }
                }
              ],
              "linkId": "patient-medicare",
              "text": "Medicare card number",
              "type": "group",
              "repeats": true,
              "readOnly": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%MedicareNumberArray.value.substring(0,10)"
                      }
                    },
                    {
                      "extension": [
                        {
                          "url": "key",
                          "valueId": "constraint-regex-medicarecardnumber-1"
                        },
                        {
                          "url": "severity",
                          "valueCode": "warning"
                        },
                        {
                          "url": "expression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "matches('^[0-9]{10}[%content%]#39;)"
                          }
                        },
                        {
                          "url": "human",
                          "valueString": "Medicare card number must be 10 digits"
                        }
                      ],
                      "url": "http://hl7.org/fhir/StructureDefinition/targetConstraint"
                    }
                  ],
                  "linkId": "patient-medicare-number",
                  "text": "Number",
                  "type": "string",
                  "repeats": false
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%MedicareNumberArray.value.substring(10,1)"
                      }
                    },
                    {
                      "extension": [
                        {
                          "url": "key",
                          "valueId": "constraint-regex-medicarecardnumber-2"
                        },
                        {
                          "url": "severity",
                          "valueCode": "warning"
                        },
                        {
                          "url": "expression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "matches('^[0-9]{1}[%content%]#39;)"
                          }
                        },
                        {
                          "url": "human",
                          "valueString": "Medicare card reference number must be 1 digit"
                        }
                      ],
                      "url": "http://hl7.org/fhir/StructureDefinition/targetConstraint"
                    }
                  ],
                  "linkId": "patient-medicare-referencenumber",
                  "text": "Reference number",
                  "type": "string",
                  "repeats": false
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%MedicareNumberArray.period.end.toString()"
                      }
                    }
                  ],
                  "linkId": "patient-medicare-expiry",
                  "text": "Expiry",
                  "type": "string",
                  "repeats": false
                }
              ]
            },
            {
              "linkId": "patient-contact",
              "text": "Contact information",
              "type": "group",
              "repeats": false,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%patient.telecom.where(system = 'phone' and use = 'home').value"
                      }
                    }
                  ],
                  "linkId": "patient-contact-homephone",
                  "text": "Home phone",
                  "type": "string",
                  "repeats": true,
                  "readOnly": true
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%patient.telecom.where(system = 'phone' and use = 'mobile').value"
                      }
                    }
                  ],
                  "linkId": "patient-contact-mobilephone",
                  "text": "Mobile phone",
                  "type": "string",
                  "repeats": true,
                  "readOnly": true
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%patient.telecom.where(all(system = 'email' and (use.empty() or use = 'home'))).value"
                      }
                    }
                  ],
                  "linkId": "patient-contact-email",
                  "text": "Email",
                  "type": "string",
                  "repeats": true,
                  "readOnly": true
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext",
                      "valueExpression": {
                        "name": "HomeAddressArray",
                        "language": "text/fhirpath",
                        "expression": "%patient.address.where(all(use='home' and (type.empty() or type!='postal')))"
                      }
                    }
                  ],
                  "linkId": "patient-contact-homeaddress",
                  "text": "Home address",
                  "type": "group",
                  "repeats": false,
                  "readOnly": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%HomeAddressArray.extension('http://hl7.org.au/fhir/StructureDefinition/no-fixed-address').value"
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "check-box"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "patient-contact-homeaddress-nofixedaddress",
                      "text": "No fixed address",
                      "type": "boolean",
                      "repeats": false
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%HomeAddressNoFixedAddress.empty() or %HomeAddressNoFixedAddress = false"
                          }
                        }
                      ],
                      "linkId": "patient-contact-homeaddress-details",
                      "text": "Home address",
                      "_text": {
                        "extension": [
                          {
                            "url": "https://smartforms.csiro.au/ig/StructureDefinition/QuestionnaireItemTextHidden",
                            "valueBoolean": true
                          }
                        ]
                      },
                      "type": "group",
                      "repeats": true,
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%HomeAddressArray.select(line.join(', '))"
                              }
                            }
                          ],
                          "linkId": "patient-contact-homeaddress-details-streetaddress",
                          "text": "Street address",
                          "type": "string",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%HomeAddressArray.city"
                              }
                            }
                          ],
                          "linkId": "patient-contact-homeaddress-details-city",
                          "text": "City",
                          "type": "string",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%HomeAddressArray.state"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                              "valueCodeableConcept": {
                                "coding": [
                                  {
                                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                                    "code": "drop-down"
                                  }
                                ]
                              }
                            }
                          ],
                          "linkId": "patient-contact-homeaddress-details-state",
                          "text": "State",
                          "type": "choice",
                          "repeats": false,
                          "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/australian-states-territories-2"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%HomeAddressArray.postalCode"
                              }
                            },
                            {
                              "extension": [
                                {
                                  "url": "key",
                                  "valueId": "constraint-regex-postcode"
                                },
                                {
                                  "url": "severity",
                                  "valueCode": "warning"
                                },
                                {
                                  "url": "expression",
                                  "valueExpression": {
                                    "language": "text/fhirpath",
                                    "expression": "matches('^[0-9]{4}[%content%]#39;)"
                                  }
                                },
                                {
                                  "url": "human",
                                  "valueString": "Postcode must be 4 digits"
                                }
                              ],
                              "url": "http://hl7.org/fhir/StructureDefinition/targetConstraint"
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
                              "valueString": "####"
                            }
                          ],
                          "linkId": "patient-contact-homeaddress-details-postcode",
                          "text": "Postcode",
                          "type": "string",
                          "repeats": false
                        }
                      ]
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext",
                      "valueExpression": {
                        "name": "PostalAddressArray",
                        "language": "text/fhirpath",
                        "expression": "%patient.address.where(type='postal')"
                      }
                    },
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%PostalAddressArray.exists()"
                      }
                    }
                  ],
                  "linkId": "patient-contact-postaladdress",
                  "text": "Postal address",
                  "type": "group",
                  "repeats": true,
                  "readOnly": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%PostalAddressArray.use"
                          }
                        }
                      ],
                      "linkId": "patient-contact-postaladdress-purpose",
                      "text": "Purpose of use",
                      "type": "string",
                      "repeats": false
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%PostalAddressArray.select(line.join(', '))"
                          }
                        }
                      ],
                      "linkId": "patient-contact-postaladdress-streetaddress",
                      "text": "Street address",
                      "type": "string",
                      "repeats": false
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%PostalAddressArray.city"
                          }
                        }
                      ],
                      "linkId": "patient-contact-postaladdress-city",
                      "text": "City",
                      "type": "string",
                      "repeats": false
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%PostalAddressArray.state"
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "drop-down"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "patient-contact-postaladdress-state",
                      "text": "State",
                      "type": "choice",
                      "repeats": false,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/australian-states-territories-2"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%PostalAddressArray.postalCode"
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/regex",
                          "valueString": "matches('^[0-9]{4}[%content%]#39;)"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
                          "valueString": "####"
                        }
                      ],
                      "linkId": "patient-contact-postaladdress-postcode",
                      "text": "Postcode",
                      "type": "string",
                      "repeats": false
                    }
                  ]
                }
              ]
            },
            {
              "linkId": "patient-carerdetails",
              "text": "Carer information",
              "type": "group",
              "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",
                      "valueCode": "horizontal"
                    }
                  ],
                  "linkId": "patient-carerinformation-hascarer",
                  "text": "Do you have a carer?",
                  "type": "choice",
                  "repeats": false,
                  "answerValueSet": "#YesNo"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext",
                      "valueExpression": {
                        "name": "CarerContactArray",
                        "language": "text/fhirpath",
                        "expression": "%patient.contact.where(relationship.coding.exists(code = '133932002' and system = 'http://snomed.info/sct'))"
                      }
                    }
                  ],
                  "linkId": "patient-carerinformation-contact",
                  "text": "Carer contact",
                  "type": "group",
                  "enableWhen": [
                    {
                      "question": "patient-carerinformation-hascarer",
                      "operator": "=",
                      "answerCoding": {
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0136",
                        "code": "Y"
                      }
                    }
                  ],
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%CarerContactArray.name.select((given.join(' ') | family).join(' ') | text)"
                          }
                        }
                      ],
                      "linkId": "patient-carerinformation-contact-name",
                      "text": "Name",
                      "type": "string",
                      "repeats": false
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%CarerContactArray.telecom.where(system = 'phone').value"
                          }
                        }
                      ],
                      "linkId": "patient-carerinformation-contact-phone",
                      "text": "Phone",
                      "type": "string",
                      "repeats": true
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%CarerContactArray.telecom.where(system = 'email').value"
                          }
                        }
                      ],
                      "linkId": "patient-carerinformation-contact-email",
                      "text": "Email",
                      "type": "string",
                      "repeats": true
                    }
                  ]
                },
                {
                  "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",
                      "valueCode": "horizontal"
                    }
                  ],
                  "linkId": "patient-carerinformation-present",
                  "text": "Carer present at appointment",
                  "type": "choice",
                  "enableWhen": [
                    {
                      "question": "patient-carerinformation-hascarer",
                      "operator": "=",
                      "answerCoding": {
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0136",
                        "code": "Y"
                      }
                    }
                  ],
                  "repeats": false,
                  "answerValueSet": "#YesNo"
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext",
                  "valueExpression": {
                    "name": "AdditionalContactsArray",
                    "language": "text/fhirpath",
                    "expression": "%patient.contact.where(relationship.coding.exists(code = 'C' or code = '394619001' or code = '1620171000168100' or code = 'CP' or code = 'N'))"
                  }
                }
              ],
              "linkId": "patient-additionalcontacts",
              "text": "Additional contacts",
              "type": "group",
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%AdditionalContactsArray.relationship.coding"
                      }
                    }
                  ],
                  "linkId": "patient-additionalcontacts-type",
                  "text": "Type",
                  "type": "open-choice",
                  "repeats": false,
                  "answerOption": [
                    {
                      "valueCoding": {
                        "system": "http://snomed.info/sct",
                        "code": "394619001"
                      }
                    },
                    {
                      "valueCoding": {
                        "system": "http://snomed.info/sct",
                        "code": "1620171000168100"
                      }
                    },
                    {
                      "valueCoding": {
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0131",
                        "code": "C"
                      }
                    },
                    {
                      "valueCoding": {
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0131",
                        "code": "CP"
                      }
                    },
                    {
                      "valueCoding": {
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0131",
                        "code": "N"
                      }
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%AdditionalContactsArray.name.select((given.join(' ') | family).join(' ') | text)"
                      }
                    }
                  ],
                  "linkId": "patient-additionalcontacts-name",
                  "text": "Name",
                  "type": "string",
                  "repeats": false
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%AdditionalContactsArray.telecom.where(system = 'phone').value"
                      }
                    }
                  ],
                  "linkId": "patient-additionalcontacts-phone",
                  "text": "Phone",
                  "type": "string",
                  "repeats": true
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%AdditionalContactsArray.telecom.where(system = 'email').value"
                      }
                    }
                  ],
                  "linkId": "patient-additionalcontacts-email",
                  "text": "Email",
                  "type": "string",
                  "repeats": true
                },
                {
                  "linkId": "patient-additionalcontacts-relationship",
                  "text": "Relationship to patient",
                  "type": "string",
                  "repeats": false
                }
              ]
            },
            {
              "linkId": "patient-additionalinformation",
              "text": "Additional information",
              "type": "text",
              "repeats": false
            }
          ]
        },
        {
          "linkId": "practitioner",
          "text": "Practitioner details",
          "type": "group",
          "repeats": false,
          "item": [
            {
              "linkId": "practitioner-instructions",
              "text": "This form has been prefilled with information that was available from the patient's health record. Upon saving, the form will be stored, but additional information entered will not be used to update the patient's health record. Changes to practitioner information should be made in the source system.",
              "_text": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/rendering-xhtml",
                    "valueString": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n    <p><em>This form has been prefilled with information that was available from the patient's health record. Upon saving, the form will be stored, but additional information entered will not be used to update the patient's health record. Changes to practitioner information should be made in the source system.</em></p></div>"
                  }
                ]
              },
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "(%user.name.where(use='official').select((given.join(' ') | family).join(' ') | text) | %user.name.select((given.join(' ') | family).join(' ') | text)).first()"
                  }
                }
              ],
              "linkId": "practitioner-name",
              "text": "Name",
              "type": "string",
              "repeats": false,
              "readOnly": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "%gpccmppractitionerrole.telecom.where(system = 'phone').value"
                  }
                }
              ],
              "linkId": "practitioner-phone",
              "text": "Phone",
              "type": "string",
              "repeats": true,
              "readOnly": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "%gpccmppractitionerrole.telecom.where(system = 'email').value"
                  }
                }
              ],
              "linkId": "practitioner-email",
              "text": "Email",
              "type": "string",
              "repeats": true,
              "readOnly": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "%gpccmppractitionerrole.identifier.where(system = 'http://ns.electronichealth.net.au/id/medicare-provider-number').value"
                  }
                }
              ],
              "linkId": "practitioner-medicareprovidernumber",
              "text": "Medicare provider number",
              "type": "string",
              "repeats": true,
              "readOnly": true
            },
            {
              "linkId": "practitioner-clinicdetails",
              "text": "Clinic details",
              "type": "group",
              "repeats": false,
              "readOnly": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%ClinicLocation.name"
                      }
                    }
                  ],
                  "linkId": "practitioner-clinicdetails-name",
                  "text": "Name",
                  "type": "string",
                  "repeats": false,
                  "readOnly": true
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%ClinicLocation.address.text.empty()"
                      }
                    }
                  ],
                  "linkId": "practitioner-clinicdetails-address",
                  "text": "Address",
                  "type": "group",
                  "repeats": false,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%ClinicLocation.address.select(line.join(', '))"
                          }
                        }
                      ],
                      "linkId": "practitioner-clinicdetails-address-streetaddress",
                      "text": "Street address",
                      "type": "string",
                      "repeats": false
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%ClinicLocation.address.city"
                          }
                        }
                      ],
                      "linkId": "practitioner-clinicdetails-address-city",
                      "text": "City",
                      "type": "string",
                      "repeats": false
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%ClinicLocation.address.state"
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "drop-down"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "practitioner-clinicdetails-address-state",
                      "text": "State",
                      "type": "choice",
                      "repeats": false,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/australian-states-territories-2"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%ClinicLocation.address.postalCode"
                          }
                        },
                        {
                          "extension": [
                            {
                              "url": "key",
                              "valueId": "constraint-regex-postcode"
                            },
                            {
                              "url": "severity",
                              "valueCode": "warning"
                            },
                            {
                              "url": "expression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "matches('^[0-9]{4}[%content%]#39;)"
                              }
                            },
                            {
                              "url": "human",
                              "valueString": "Postcode must be 4 digits"
                            }
                          ],
                          "url": "http://hl7.org/fhir/StructureDefinition/targetConstraint"
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/entryFormat",
                          "valueString": "####"
                        }
                      ],
                      "linkId": "practitioner-clinicdetails-address-postcode",
                      "text": "Postcode",
                      "type": "string",
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%ClinicLocation.address.line.empty() and %ClinicLocation.address.text.exists()"
                      }
                    },
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                      "valueExpression": {
                        "language": "text/fhirpath",
                        "expression": "%ClinicLocation.address.text"
                      }
                    }
                  ],
                  "linkId": "practitioner-clinicdetails-addresstext",
                  "text": "Address",
                  "type": "string",
                  "repeats": false
                }
              ]
            }
          ]
        },
        {
          "linkId": "clinicaldetails",
          "text": "Clinical details",
          "type": "group",
          "repeats": false,
          "item": [
            {
              "linkId": "clinicaldetails-instructions",
              "text": "This form has been prefilled with information that was available from the patient's health record. Upon saving, the form will be stored, but additional information entered will not be used to update the patient's health record.",
              "_text": {
                "extension": [
                  {
                    "url": "http://hl7.org/fhir/StructureDefinition/rendering-xhtml",
                    "valueString": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n    <p><em>This form has been prefilled with information that was available from the patient's health record. Upon saving, the form will be stored, but additional information entered will not be used to update the patient's health record.</em></p></div>"
                  }
                ]
              },
              "type": "display"
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-collapsible",
                  "valueCode": "default-open"
                }
              ],
              "linkId": "clinicaldetails-problemsdiagnoses",
              "text": "Problems/Diagnoses",
              "type": "group",
              "repeats": false,
              "item": [
                {
                  "extension": [
                    {
                      "url": "https://smartforms.csiro.au/ig/StructureDefinition/GroupHideAddItemButton",
                      "valueBoolean": true
                    },
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "gtable"
                          }
                        ]
                      }
                    },
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext",
                      "valueExpression": {
                        "name": "ConditionArray",
                        "language": "text/fhirpath",
                        "expression": "%Condition.entry.resource.where(verificationStatus.coding.all(code.empty() or code='confirmed'))"
                      }
                    }
                  ],
                  "linkId": "clinicaldetails-problemsdiagnoses-recordedproblems",
                  "text": "Recorded problems/diagnoses",
                  "type": "group",
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "autocomplete"
                              }
                            ]
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-width",
                          "valueQuantity": {
                            "value": 30,
                            "system": "http://unitsofmeasure.org",
                            "code": "%"
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%ConditionArray.code.select((coding.where(system='http://snomed.info/sct') | coding.where(system!='http://snomed.info/sct').first() | text ).first())"
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-problemsdiagnoses-recordedproblems-condition",
                      "text": "Condition",
                      "type": "open-choice",
                      "repeats": false,
                      "readOnly": true,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/clinical-condition-1"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "drop-down"
                              }
                            ]
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%ConditionArray.clinicalStatus.coding"
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-problemsdiagnoses-recordedproblems-clinicalstatus",
                      "text": "Clinical status",
                      "type": "choice",
                      "repeats": false,
                      "readOnly": false,
                      "answerValueSet": "http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%ConditionArray.onset.ofType(dateTime).toString().substring(0,10).toDate()"
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-problemsdiagnoses-recordedproblems-onsetdate",
                      "text": "Onset date",
                      "type": "date",
                      "repeats": false,
                      "readOnly": true
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%ConditionArray.abatement.ofType(dateTime).toString().substring(0,10).toDate()"
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-problemsdiagnoses-recordedproblems-abatementdate",
                      "text": "Abatement date",
                      "type": "date",
                      "repeats": false,
                      "readOnly": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "gtable"
                          }
                        ]
                      }
                    }
                  ],
                  "linkId": "clinicaldetails-problemsdiagnoses-newproblems",
                  "text": "New problems/diagnoses",
                  "type": "group",
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "autocomplete"
                              }
                            ]
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-width",
                          "valueQuantity": {
                            "value": 35,
                            "system": "http://unitsofmeasure.org",
                            "code": "%"
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-problemsdiagnoses-newproblems-condition",
                      "text": "Condition",
                      "type": "open-choice",
                      "repeats": false,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/clinical-condition-1"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-width",
                          "valueQuantity": {
                            "value": 25,
                            "system": "http://unitsofmeasure.org",
                            "code": "%"
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-problemsdiagnoses-newproblems-onsetdate",
                      "text": "Onset date",
                      "type": "date",
                      "repeats": false
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-width",
                          "valueQuantity": {
                            "value": 40,
                            "system": "http://unitsofmeasure.org",
                            "code": "%"
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-problemsdiagnoses-newproblems-comment",
                      "text": "Comment",
                      "type": "string",
                      "repeats": false
                    }
                  ]
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-collapsible",
                  "valueCode": "default-open"
                }
              ],
              "linkId": "clinicaldetails-allergies",
              "text": "Adverse reaction risks",
              "type": "group",
              "repeats": false,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext",
                      "valueExpression": {
                        "name": "AllergyIntoleranceArray",
                        "language": "text/fhirpath",
                        "expression": "%AllergyIntolerance.entry.resource.where(clinicalStatus.coding.exists(code='active')).where(verificationStatus.coding.all(code.empty() or code='confirmed'))"
                      }
                    },
                    {
                      "url": "https://smartforms.csiro.au/ig/StructureDefinition/GroupHideAddItemButton",
                      "valueBoolean": true
                    }
                  ],
                  "linkId": "clinicaldetails-allergies-recordedallergies",
                  "text": "Recorded adverse reaction risks",
                  "type": "group",
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%AllergyIntoleranceArray.code.select((coding.where(system='http://snomed.info/sct') | coding.where(system!='http://snomed.info/sct').first() | text ).first())"
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "autocomplete"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-allergies-recordedallergies-substance",
                      "text": "Substance",
                      "type": "open-choice",
                      "repeats": false,
                      "readOnly": true,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/adverse-reaction-agent-1"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%AllergyIntoleranceArray.clinicalStatus.coding"
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "drop-down"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-allergies-recordedallergies-status",
                      "text": "Status",
                      "type": "choice",
                      "repeats": false,
                      "answerValueSet": "http://hl7.org/fhir/ValueSet/allergyintolerance-clinical|4.0.1"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%AllergyIntoleranceArray.reaction.manifestation.select((coding.where(system='http://snomed.info/sct') | coding.where(system!='http://snomed.info/sct').first() | text ).first())"
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "autocomplete"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-allergies-recordedallergies-manifestation",
                      "text": "Manifestation",
                      "type": "open-choice",
                      "repeats": true,
                      "readOnly": true,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/clinical-finding-1"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%AllergyIntoleranceArray.note[0].text"
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-allergies-recordedallergies-comment",
                      "text": "Comment",
                      "type": "text",
                      "repeats": false
                    }
                  ]
                },
                {
                  "linkId": "clinicaldetails-allergies-newallergies",
                  "text": "New adverse reaction risks",
                  "type": "group",
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "autocomplete"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-allergies-newallergies-substance",
                      "text": "Substance",
                      "type": "open-choice",
                      "repeats": false,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/adverse-reaction-agent-1"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "autocomplete"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-allergies-newallergies-manifestation",
                      "text": "Manifestation",
                      "type": "open-choice",
                      "repeats": true,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/clinical-finding-1"
                    },
                    {
                      "linkId": "clinicaldetails-allergies-newallergies-comment",
                      "text": "Comment",
                      "type": "text",
                      "repeats": false
                    }
                  ]
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-collapsible",
                  "valueCode": "default-open"
                }
              ],
              "linkId": "clinicaldetails-medications",
              "text": "Medications (current)",
              "type": "group",
              "repeats": false,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext",
                      "valueExpression": {
                        "name": "MedicationStatementArray",
                        "language": "text/fhirpath",
                        "expression": "%MedicationStatement.entry.resource.ofType(MedicationStatement)"
                      }
                    },
                    {
                      "url": "https://smartforms.csiro.au/ig/StructureDefinition/GroupHideAddItemButton",
                      "valueBoolean": true
                    }
                  ],
                  "linkId": "clinicaldetails-medications-recordedmedications",
                  "text": "Recorded medications",
                  "type": "group",
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "autocomplete"
                              }
                            ]
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "iif(%MedicationStatementArray.medication.reference.replace('#', '') in %medicationsFromContained.id, %medicationsFromContained.where(id = %MedicationStatementArray.medication.reference.replace('#', '')).code.select((coding.where(system='http://snomed.info/sct') | coding.where(system!='http://snomed.info/sct').first() | text ).first()), iif(%MedicationStatementArray.medication.reference.replace('Medication/', '') in %medicationsFromRef.id , %medicationsFromRef.where(id = %MedicationStatementArray.medication.reference.replace('Medication/', '')).code.select((coding.where(system='http://snomed.info/sct') | coding.where(system!='http://snomed.info/sct').first() | text ).first()), %MedicationStatementArray.medication.select((coding.where(system='http://snomed.info/sct') | coding.where(system!='http://snomed.info/sct').first() | text ).first())))"
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-medications-recordedmedications-medication",
                      "text": "Medication",
                      "type": "open-choice",
                      "repeats": false,
                      "readOnly": true,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/australian-medication-1"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%MedicationStatementArray.status"
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-medications-recordedmedications-status",
                      "text": "Status",
                      "type": "choice",
                      "repeats": false,
                      "answerValueSet": "#MedicationStatementStatusLimited"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%MedicationStatementArray.dosage.text"
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-medications-recordedmedications-dosage",
                      "text": "Dosage",
                      "type": "text",
                      "repeats": false,
                      "readOnly": false
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "autocomplete"
                              }
                            ]
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%MedicationStatementArray.reasonCode.select((coding.where(system='http://snomed.info/sct') | coding.where(system!='http://snomed.info/sct').first() | text ).first())"
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-medications-recordedmedications-indication",
                      "text": "Indication",
                      "type": "open-choice",
                      "repeats": true,
                      "readOnly": true,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/medication-reason-taken-1"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                          "valueExpression": {
                            "language": "text/fhirpath",
                            "expression": "%MedicationStatementArray.note.text"
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-medications-recordedmedications-comment",
                      "text": "Comment",
                      "type": "text",
                      "repeats": false,
                      "readOnly": false
                    }
                  ]
                },
                {
                  "linkId": "clinicaldetails-medications-newmedications",
                  "text": "New medications",
                  "type": "group",
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "autocomplete"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-medications-newmedications-medication",
                      "text": "Medication",
                      "type": "open-choice",
                      "repeats": false,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/australian-medication-1"
                    },
                    {
                      "linkId": "clinicaldetails-medications-newmedications-dosage",
                      "text": "Dosage",
                      "type": "text",
                      "repeats": false
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "autocomplete"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "clinicaldetails-medications-newmedications-indication",
                      "text": "Indication",
                      "type": "open-choice",
                      "repeats": true,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/medication-reason-taken-1"
                    },
                    {
                      "linkId": "clinicaldetails-medications-newmedications-comment",
                      "text": "Comment",
                      "type": "text",
                      "repeats": false
                    }
                  ]
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-collapsible",
                  "valueCode": "default-open"
                }
              ],
              "linkId": "clinicaldetails-observations",
              "text": "Observations",
              "type": "group",
              "repeats": false,
              "item": [
                {
                  "linkId": "clinicaldetails-observations-instructions",
                  "text": "The tabled observations will display the most recent results available from the patient record. New observations may be added.",
                  "_text": {
                    "extension": [
                      {
                        "url": "http://hl7.org/fhir/StructureDefinition/rendering-xhtml",
                        "valueString": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p style=\"font-size:0.9em; font-weight:normal\"><em>The tabled observations will display the most recent results available from the patient record. New observations may be added.</em></p></div>"
                      }
                    ]
                  },
                  "type": "display"
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "grid"
                          }
                        ]
                      }
                    }
                  ],
                  "linkId": "clinicaldetails-observations-maingrid",
                  "text": "Observations",
                  "_text": {
                    "extension": [
                      {
                        "url": "https://smartforms.csiro.au/ig/StructureDefinition/QuestionnaireItemTextHidden",
                        "valueBoolean": true
                      }
                    ]
                  },
                  "type": "group",
                  "repeats": false,
                  "item": [
                    {
                      "linkId": "clinicaldetails-observations-maingrid-height",
                      "text": "Height",
                      "type": "group",
                      "repeats": false,
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/rendering-style",
                              "valueString": "text-align: left;"
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-height-lastresult",
                          "text": "Last result",
                          "_text": {
                            "extension": [
                              {
                                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
                                "valueExpression": {
                                  "language": "text/fhirpath",
                                  "expression": "iif(%ObsBodyHeightValue.exists() and %ObsBodyHeightDateFormatted.exists(), %ObsBodyHeightValue.round(0).toString() + ' cm ( ' + %ObsBodyHeightDateFormatted + ' )', 'Not available')"
                                }
                              }
                            ]
                          },
                          "type": "display"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsBodyHeightValue.round(0)"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "cm"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-height-lastresultvalue",
                          "type": "decimal",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsBodyHeightLatest.effective.toString().substring(0,10).toDate()"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-height-lastresultdate",
                          "type": "date",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "cm"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-height-newresultvalue",
                          "text": "New result",
                          "type": "decimal",
                          "repeats": false,
                          "item": [
                            {
                              "extension": [
                                {
                                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                                  "valueCodeableConcept": {
                                    "coding": [
                                      {
                                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                                        "code": "unit"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "linkId": "clinicaldetails-observations-maingrid-height-newresultvalue-unit",
                              "text": "cm",
                              "type": "display"
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "iif(%resource.repeat(item).where(linkId='clinicaldetails-observations-maingrid-height-newresultvalue').answer.value.exists(), today())"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-height-newresultdate",
                          "text": "New result date",
                          "type": "date",
                          "repeats": false
                        }
                      ]
                    },
                    {
                      "linkId": "clinicaldetails-observations-maingrid-weight",
                      "text": "Weight",
                      "type": "group",
                      "repeats": false,
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/rendering-style",
                              "valueString": "text-align: left;"
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-weight-lastresult",
                          "text": "Last result",
                          "_text": {
                            "extension": [
                              {
                                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
                                "valueExpression": {
                                  "language": "text/fhirpath",
                                  "expression": "iif(%ObsBodyWeightValue.exists() and %ObsBodyWeightDateFormatted.exists(), %ObsBodyWeightValue.round(1).toString() + ' kg ( ' + %ObsBodyWeightDateFormatted + ' )', 'Not available')"
                                }
                              }
                            ]
                          },
                          "type": "display"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsBodyWeightValue.round(1)"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "kg"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-weight-lastresultvalue",
                          "type": "decimal",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsBodyWeightLatest.effective.toString().substring(0,10).toDate()"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-weight-lastresultdate",
                          "type": "date",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "kg"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-weight-newresultvalue",
                          "text": "New result",
                          "type": "decimal",
                          "repeats": false,
                          "item": [
                            {
                              "extension": [
                                {
                                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                                  "valueCodeableConcept": {
                                    "coding": [
                                      {
                                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                                        "code": "unit"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "linkId": "clinicaldetails-observations-maingrid-weight-newresultvalue-unit",
                              "text": "kg",
                              "type": "display"
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "iif(%resource.repeat(item).where(linkId='clinicaldetails-observations-maingrid-weight-newresultvalue').answer.value.exists(), today())"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-weight-newresultdate",
                          "text": "New result date",
                          "type": "date",
                          "repeats": false
                        }
                      ]
                    },
                    {
                      "linkId": "clinicaldetails-observations-maingrid-bmi",
                      "text": "BMI (calculated)",
                      "type": "group",
                      "repeats": false,
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/rendering-style",
                              "valueString": "text-align: left;"
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-bmi-lastresult",
                          "text": "Last result",
                          "_text": {
                            "extension": [
                              {
                                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
                                "valueExpression": {
                                  "language": "text/fhirpath",
                                  "expression": "iif(%ObsBodyWeightValue.exists() and %ObsBodyHeightValue.exists() and %ObsBodyHeightValue > 0, (%ObsBodyWeightValue/((%ObsBodyHeightValue/100).power(2))).round(1).toString() + ' kg/m2', 'Not available')"
                                }
                              }
                            ]
                          },
                          "type": "display"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "iif(%ObsBodyWeightValue.exists() and %ObsBodyHeightValue.exists() and %ObsBodyHeightValue > 0, (%ObsBodyWeightValue/((%ObsBodyHeightValue/100).power(2))).round(1), {})"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "kg/m2"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-bmi-lastresultvalue",
                          "type": "decimal",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                              "valueExpression": {
                                "description": "BMI calculation",
                                "language": "text/fhirpath",
                                "expression": "iif(%weight.exists() and %height.exists() and %height > 0, (%weight/((%height/100).power(2))).round(1), {})"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "kg/m2"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-bmi-newresultvalue",
                          "text": "New result",
                          "type": "decimal",
                          "repeats": false,
                          "readOnly": true,
                          "item": [
                            {
                              "extension": [
                                {
                                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                                  "valueCodeableConcept": {
                                    "coding": [
                                      {
                                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                                        "code": "unit"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "linkId": "clinicaldetails-observations-maingrid-bmi-newresult-unit",
                              "text": "kg/m2",
                              "type": "display"
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "linkId": "clinicaldetails-observations-maingrid-waistcircumference",
                      "text": "Waist circumference",
                      "type": "group",
                      "repeats": false,
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/rendering-style",
                              "valueString": "text-align: left;"
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-waistcircumference-lastresult",
                          "text": "Last result",
                          "_text": {
                            "extension": [
                              {
                                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
                                "valueExpression": {
                                  "language": "text/fhirpath",
                                  "expression": "iif(%ObsWaistCircumferenceValue.exists() and %ObsWaistCircumferenceDateFormatted.exists(), %ObsWaistCircumferenceValue.round(0).toString() + ' cm ( ' + %ObsWaistCircumferenceDateFormatted + ' )', 'Not available')"
                                }
                              }
                            ]
                          },
                          "type": "display"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsWaistCircumferenceValue.round(0)"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "cm"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-waistcircumference-lastresultvalue",
                          "type": "decimal",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsWaistCircumferenceLatest.effective.toString().substring(0,10).toDate()"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-waistcircumference-lastresultdate",
                          "type": "date",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "cm"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-waistcircumference-newresultvalue",
                          "text": "New result",
                          "type": "decimal",
                          "repeats": false,
                          "item": [
                            {
                              "extension": [
                                {
                                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                                  "valueCodeableConcept": {
                                    "coding": [
                                      {
                                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                                        "code": "unit"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "linkId": "clinicaldetails-observations-maingrid-waistcircumference-newresultvalue-unit",
                              "text": "cm",
                              "type": "display"
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "iif(%resource.repeat(item).where(linkId='clinicaldetails-observations-maingrid-waistcircumference-newresultvalue').answer.value.exists(), today())"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-waistcircumference-newdate",
                          "text": "New result date",
                          "type": "date",
                          "repeats": false
                        }
                      ]
                    },
                    {
                      "linkId": "clinicaldetails-observations-maingrid-pulserate",
                      "text": "Pulse rate",
                      "type": "group",
                      "repeats": false,
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/rendering-style",
                              "valueString": "text-align: left;"
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-pulserate-lastresult",
                          "text": "Last result",
                          "_text": {
                            "extension": [
                              {
                                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
                                "valueExpression": {
                                  "language": "text/fhirpath",
                                  "expression": "iif(%ObsPulseRateValue.exists() and %ObsPulseRateDateFormatted.exists(), %ObsPulseRateValue.round(0).toString() + ' /min ( ' + %ObsPulseRateDateFormatted + ' )', 'Not available')"
                                }
                              }
                            ]
                          },
                          "type": "display"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsPulseRateValue.round(0)"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "/min"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-pulserate-lastresultvalue",
                          "type": "decimal",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsPulseRateLatest.effective.toString().substring(0,10).toDate()"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-pulserate-lastresultdate",
                          "type": "date",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "/min"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-pulserate-newresultvalue",
                          "text": "New result",
                          "type": "integer",
                          "repeats": false,
                          "item": [
                            {
                              "extension": [
                                {
                                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                                  "valueCodeableConcept": {
                                    "coding": [
                                      {
                                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                                        "code": "unit"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "linkId": "clinicaldetails-observations-maingrid-pulserate-newresultvalue-unit",
                              "text": "/min",
                              "type": "display"
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "iif(%resource.repeat(item).where(linkId='clinicaldetails-observations-maingrid-pulserate-newresultvalue').answer.value.exists(), today())"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-pulserate-newresultdate",
                          "text": "New result date",
                          "type": "date",
                          "repeats": false
                        }
                      ]
                    },
                    {
                      "linkId": "clinicaldetails-observations-maingrid-pulserhythm",
                      "text": "Pulse rhythm",
                      "type": "group",
                      "repeats": false,
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/rendering-style",
                              "valueString": "text-align: left;"
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-pulserhythm-lastresult",
                          "text": "Last result",
                          "_text": {
                            "extension": [
                              {
                                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
                                "valueExpression": {
                                  "language": "text/fhirpath",
                                  "expression": "iif(%ObsPulseRhythmValue.exists() and %ObsPulseRhythmDateFormatted.exists(), %ObsPulseRhythmValue.display + ' ( ' + %ObsPulseRhythmDateFormatted + ' )', 'Not available')"
                                }
                              }
                            ]
                          },
                          "type": "display"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsPulseRhythmValue"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-pulserhythm-lastresultvalue",
                          "type": "choice",
                          "repeats": false,
                          "answerValueSet": "#pulse-rhythm-1"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsPulseRhythmLatest.effective.toString().substring(0,10).toDate()"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-pulserhythm-lastresultdate",
                          "type": "date",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                              "valueCodeableConcept": {
                                "coding": [
                                  {
                                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                                    "code": "drop-down"
                                  }
                                ]
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-pulserhythm-newresultvalue",
                          "text": "New result",
                          "type": "choice",
                          "repeats": false,
                          "answerValueSet": "#pulse-rhythm-1"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "iif(%resource.repeat(item).where(linkId='clinicaldetails-observations-maingrid-pulserhythm-newresultvalue').answer.value.exists(), today())"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-pulserhythm-newresultdate",
                          "text": "New result date",
                          "type": "date",
                          "repeats": false
                        }
                      ]
                    },
                    {
                      "linkId": "clinicaldetails-observations-maingrid-oxygensaturation",
                      "text": "Oxygen saturation",
                      "type": "group",
                      "repeats": false,
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/rendering-style",
                              "valueString": "text-align: left;"
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-oxygensaturation-lastresult",
                          "text": "Last result",
                          "_text": {
                            "extension": [
                              {
                                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
                                "valueExpression": {
                                  "language": "text/fhirpath",
                                  "expression": "iif(%ObsOxygenSaturationValue.exists() and %ObsOxygenSaturationDateFormatted.exists(), %ObsOxygenSaturationValue.round(0).toString() + ' % ( ' + %ObsOxygenSaturationDateFormatted + ' )', 'Not available')"
                                }
                              }
                            ]
                          },
                          "type": "display"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsOxygenSaturationValue.round(0)"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "%"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-oxygensaturation-lastresultvalue",
                          "type": "decimal",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsOxygenSaturationLatest.effective.toString().substring(0,10).toDate()"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-oxygensaturation-lastresultdate",
                          "type": "date",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "%"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-oxygensaturation-newresultvalue",
                          "text": "New result",
                          "type": "integer",
                          "repeats": false,
                          "item": [
                            {
                              "extension": [
                                {
                                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                                  "valueCodeableConcept": {
                                    "coding": [
                                      {
                                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                                        "code": "unit"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "linkId": "clinicaldetails-observations-maingrid-oxygensaturation-newresultvalue-unit",
                              "text": "%",
                              "type": "display"
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "iif(%resource.repeat(item).where(linkId='clinicaldetails-observations-maingrid-oxygensaturation-newresultvalue').answer.value.exists(), today())"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-maingrid-oxygensaturation-newresultdate",
                          "text": "New result date",
                          "type": "date",
                          "repeats": false
                        }
                      ]
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "grid"
                          }
                        ]
                      }
                    }
                  ],
                  "linkId": "clinicaldetails-observations-bpgrid",
                  "text": "Blood pressure",
                  "_text": {
                    "extension": [
                      {
                        "url": "https://smartforms.csiro.au/ig/StructureDefinition/QuestionnaireItemTextHidden",
                        "valueBoolean": true
                      }
                    ]
                  },
                  "type": "group",
                  "repeats": false,
                  "item": [
                    {
                      "linkId": "clinicaldetails-observations-bpgrid-bp",
                      "text": "Blood pressure",
                      "type": "group",
                      "repeats": false,
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/rendering-style",
                              "valueString": "text-align: left;"
                            }
                          ],
                          "linkId": "clinicaldetails-observations-bpgrid-bp-lastresult",
                          "text": "Last result",
                          "_text": {
                            "extension": [
                              {
                                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
                                "valueExpression": {
                                  "language": "text/fhirpath",
                                  "expression": "iif(%ObsBloodPressureValue.exists() and %ObsBloodPressureDateFormatted.exists(), %ObsBloodPressureValue + ' mm Hg ( ' + %ObsBloodPressureDateFormatted + ' )', 'Not available')"
                                }
                              }
                            ]
                          },
                          "type": "display"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsBloodPressureLatest.component.where(code.coding.exists(code='8480-6')).value.value.round(0)"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "mm[Hg]"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-bpgrid-bp-lastresultvaluesystolic",
                          "type": "decimal",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsBloodPressureLatest.component.where(code.coding.exists(code='8462-4')).value.value.round(0)"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "mm[Hg]"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-bpgrid-bp-lastresultvaluediastolic",
                          "type": "decimal",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsBloodPressureLatest.effective.toString().substring(0,10).toDate()"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            }
                          ],
                          "linkId": "clinicaldetails-observations-bpgrid-bp-lastresultdate",
                          "type": "date",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "mm[Hg]"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-bpgrid-bp-newresultsystolic",
                          "text": "Systolic",
                          "type": "integer",
                          "repeats": false,
                          "item": [
                            {
                              "extension": [
                                {
                                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                                  "valueCodeableConcept": {
                                    "coding": [
                                      {
                                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                                        "code": "unit"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "linkId": "clinicaldetails-observations-bpgrid-bp-newresultsystolic-unit",
                              "text": "mm Hg",
                              "type": "display"
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit",
                              "valueCoding": {
                                "system": "http://unitsofmeasure.org",
                                "code": "mm[Hg]"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-bpgrid-bp-newresultdiastolic",
                          "text": "Diastolic",
                          "type": "integer",
                          "repeats": false,
                          "item": [
                            {
                              "extension": [
                                {
                                  "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                                  "valueCodeableConcept": {
                                    "coding": [
                                      {
                                        "system": "http://hl7.org/fhir/questionnaire-item-control",
                                        "code": "unit"
                                      }
                                    ]
                                  }
                                }
                              ],
                              "linkId": "clinicaldetails-observations-bpgrid-bp-newresultdiastolic-unit",
                              "text": "mm Hg",
                              "type": "display"
                            }
                          ]
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "iif(%resource.repeat(item).where(linkId='clinicaldetails-observations-bpgrid-bp-newresultsystolic').answer.value.exists() or %resource.repeat(item).where(linkId='clinicaldetails-observations-bpgrid-bp-newresultdiastolic').answer.value.exists(), today())"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-bpgrid-bp-newresultdate",
                          "text": "Date performed",
                          "type": "date",
                          "repeats": false
                        }
                      ]
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "grid"
                          }
                        ]
                      }
                    }
                  ],
                  "linkId": "clinicaldetails-observations-substanceusegrid",
                  "text": "Substance use",
                  "_text": {
                    "extension": [
                      {
                        "url": "https://smartforms.csiro.au/ig/StructureDefinition/QuestionnaireItemTextHidden",
                        "valueBoolean": true
                      }
                    ]
                  },
                  "type": "group",
                  "repeats": false,
                  "item": [
                    {
                      "linkId": "clinicaldetails-observations-substanceusegrid-smokingstatus",
                      "text": "Smoking status",
                      "type": "group",
                      "repeats": false,
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/rendering-style",
                              "valueString": "text-align: left;"
                            }
                          ],
                          "linkId": "clinicaldetails-observations-substanceusegrid-smokingstatus-laststatus",
                          "text": "Last status",
                          "_text": {
                            "extension": [
                              {
                                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
                                "valueExpression": {
                                  "language": "text/fhirpath",
                                  "expression": "iif(%ObsSmokingStatusValue.exists() and %ObsSmokingStatusDateFormatted.exists(), %ObsSmokingStatusValue.display + ' ( ' + %ObsSmokingStatusDateFormatted + ' )', 'Not available')"
                                }
                              }
                            ]
                          },
                          "type": "display"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsSmokingStatusValue"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            }
                          ],
                          "linkId": "clinicaldetails-observations-substanceusegrid-smokingstatus-lastresultvalue",
                          "type": "choice",
                          "repeats": false,
                          "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/smoking-status-1"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsSmokingStatusLatest.effective.toString().substring(0,10).toDate()"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            }
                          ],
                          "linkId": "clinicaldetails-observations-substanceusegrid-smokingstatus-lastresultdate",
                          "type": "date",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                              "valueCodeableConcept": {
                                "coding": [
                                  {
                                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                                    "code": "drop-down"
                                  }
                                ]
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-substanceusegrid-smokingstatus-newresultvalue",
                          "text": "New status",
                          "type": "choice",
                          "repeats": false,
                          "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/smoking-status-1"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "iif(%resource.repeat(item).where(linkId='clinicaldetails-observations-substanceusegrid-smokingstatus-newresultvalue').answer.value.exists(), today())"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-substanceusegrid-smokingstatus-newresultdate",
                          "text": "New status date",
                          "type": "date",
                          "repeats": false
                        },
                        {
                          "linkId": "clinicaldetails-observations-smokingstatusgrid-smokingstatus-newresultcomment",
                          "text": "Comment",
                          "type": "string",
                          "repeats": false
                        }
                      ]
                    },
                    {
                      "linkId": "clinicaldetails-observations-substanceusegrid-alcoholstatus",
                      "text": "Alcohol consumption status",
                      "type": "group",
                      "repeats": false,
                      "item": [
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/rendering-style",
                              "valueString": "text-align: left;"
                            }
                          ],
                          "linkId": "clinicaldetails-observations-substanceusegrid-alcoholstatus-laststatus",
                          "text": "Last status",
                          "_text": {
                            "extension": [
                              {
                                "url": "http://hl7.org/fhir/StructureDefinition/cqf-expression",
                                "valueExpression": {
                                  "language": "text/fhirpath",
                                  "expression": "iif(%ObsAlcoholStatusValue.exists() and %ObsAlcoholStatusDateFormatted.exists(), %ObsAlcoholStatusValue.display + ' ( ' + %ObsAlcoholStatusDateFormatted + ' )', 'Not available')"
                                }
                              }
                            ]
                          },
                          "type": "display"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsAlcoholStatusValue"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            }
                          ],
                          "linkId": "clinicaldetails-observations-substanceusegrid-alcoholstatus-lastresultvalue",
                          "type": "choice",
                          "repeats": false,
                          "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/alcohol-intake-status-1"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "%ObsAlcoholStatusLatest.effective.toString().substring(0,10).toDate()"
                              }
                            },
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden",
                              "valueBoolean": true
                            }
                          ],
                          "linkId": "clinicaldetails-observations-substanceusegrid-alcoholstatus-lastresultdate",
                          "type": "date",
                          "repeats": false
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                              "valueCodeableConcept": {
                                "coding": [
                                  {
                                    "system": "http://hl7.org/fhir/questionnaire-item-control",
                                    "code": "drop-down"
                                  }
                                ]
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-substanceusegrid-alcoholstatus-newresultvalue",
                          "text": "New status",
                          "type": "choice",
                          "repeats": false,
                          "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/alcohol-intake-status-1"
                        },
                        {
                          "extension": [
                            {
                              "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression",
                              "valueExpression": {
                                "language": "text/fhirpath",
                                "expression": "iif(%resource.repeat(item).where(linkId='clinicaldetails-observations-substanceusegrid-alcoholstatus-newresultvalue').answer.value.exists(), today())"
                              }
                            }
                          ],
                          "linkId": "clinicaldetails-observations-substanceusegrid-alcoholstatus-newresultdate",
                          "text": "New status date",
                          "type": "date",
                          "repeats": false
                        },
                        {
                          "linkId": "clinicaldetails-observations-substanceusegrid-alcoholstatus-newresultcomment",
                          "text": "Comment",
                          "type": "string",
                          "repeats": false
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "linkId": "clinicaldetails-observations-additionalinformation",
              "text": "Additional information",
              "type": "text",
              "repeats": false
            }
          ]
        },
        {
          "linkId": "plan",
          "text": "Plan",
          "type": "group",
          "repeats": false,
          "item": [
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "%GPCCMPLatest.entry.resource.where(status='in-progress').exists()"
                  }
                }
              ],
              "linkId": "plandetails-inprogress",
              "text": "Incomplete draft plan already exists?",
              "type": "boolean",
              "repeats": false,
              "readOnly": true
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression": {
                    "language": "text/fhirpath",
                    "expression": "%GPCCMPLatestCompletedAmended.entry.resource.authored.toString().substring(0,10).toDate()"
                  }
                }
              ],
              "linkId": "plandetails-lastcompleteddate",
              "text": "Date of most recent plan",
              "type": "date",
              "repeats": false,
              "readOnly": true
            },
            {
              "linkId": "plan-conditions",
              "text": "Conditions addressed",
              "type": "group",
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "autocomplete"
                          }
                        ]
                      }
                    }
                  ],
                  "linkId": "plan-conditions-condition",
                  "text": "Condition",
                  "type": "open-choice",
                  "repeats": false,
                  "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/clinical-condition-1"
                },
                {
                  "linkId": "plan-conditions-onsetdate",
                  "text": "Onset date",
                  "type": "date",
                  "repeats": false
                },
                {
                  "linkId": "plan-conditions-comments",
                  "text": "Comments",
                  "type": "text",
                  "repeats": false
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-collapsible",
                  "valueCode": "default-open"
                }
              ],
              "linkId": "plan-goalstasks",
              "text": "Goals and tasks",
              "type": "group",
              "repeats": true,
              "item": [
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "autocomplete"
                          }
                        ]
                      }
                    }
                  ],
                  "linkId": "plan-goalstasks-problemneed",
                  "text": "Problems/Needs",
                  "type": "open-choice",
                  "repeats": true,
                  "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/clinical-condition-1"
                },
                {
                  "linkId": "plan-goalstasks-details-goalsetting",
                  "text": "Goal setting",
                  "type": "group",
                  "repeats": true,
                  "item": [
                    {
                      "linkId": "plan-goalstasks-details-goalsetting-goals",
                      "text": "Goals",
                      "type": "text",
                      "repeats": false
                    },
                    {
                      "linkId": "plan-goalstasks-details-goalsetting-initiator",
                      "text": "Initiator",
                      "type": "string",
                      "repeats": false
                    },
                    {
                      "linkId": "plan-goalstasks-details-goalsetting-targetdate",
                      "text": "Target date",
                      "type": "date",
                      "repeats": false
                    },
                    {
                      "linkId": "plan-goalstasks-details-goalsetting-status",
                      "text": "Status",
                      "type": "choice",
                      "repeats": false,
                      "answerValueSet": "#GoalStatusLimited"
                    },
                    {
                      "linkId": "plan-goalstasks-details-goalsetting-comment",
                      "text": "Comment",
                      "type": "string",
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "gtable"
                          }
                        ]
                      }
                    }
                  ],
                  "linkId": "plan-goalstasks-details-interventionsactions",
                  "text": "Interventions and actions",
                  "_text": {
                    "extension": [
                      {
                        "url": "https://smartforms.csiro.au/ig/StructureDefinition/QuestionnaireItemTextHidden",
                        "valueBoolean": true
                      }
                    ]
                  },
                  "type": "group",
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-width",
                          "valueQuantity": {
                            "value": 28,
                            "system": "http://unitsofmeasure.org",
                            "code": "%"
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "autocomplete"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "plan-goalstasks-details-interventionsactions-interventionsactions",
                      "text": "Interventions/Actions",
                      "type": "open-choice",
                      "repeats": false,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/procedure-1"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-width",
                          "valueQuantity": {
                            "value": 24,
                            "system": "http://unitsofmeasure.org",
                            "code": "%"
                          }
                        }
                      ],
                      "linkId": "plan-goalstasks-details-interventionsactions-owner",
                      "text": "Owner",
                      "type": "string",
                      "repeats": false
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-width",
                          "valueQuantity": {
                            "value": 17,
                            "system": "http://unitsofmeasure.org",
                            "code": "%"
                          }
                        }
                      ],
                      "linkId": "plan-goalstasks-details-interventionsactions-duedate",
                      "text": "Due date",
                      "type": "date",
                      "repeats": false
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-width",
                          "valueQuantity": {
                            "value": 31,
                            "system": "http://unitsofmeasure.org",
                            "code": "%"
                          }
                        }
                      ],
                      "linkId": "plan-goalstasks-details-interventionsactions-comment",
                      "text": "Comment",
                      "type": "string",
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "gtable"
                          }
                        ]
                      }
                    }
                  ],
                  "linkId": "plan-goalstasks-details-servicestreatments",
                  "text": "Services and treatments",
                  "_text": {
                    "extension": [
                      {
                        "url": "https://smartforms.csiro.au/ig/StructureDefinition/QuestionnaireItemTextHidden",
                        "valueBoolean": true
                      }
                    ]
                  },
                  "type": "group",
                  "repeats": true,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-width",
                          "valueQuantity": {
                            "value": 23,
                            "system": "http://unitsofmeasure.org",
                            "code": "%"
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "autocomplete"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "plan-goalstasks-details-servicestreatments-servicestreatments",
                      "text": "Required services and treatments",
                      "type": "open-choice",
                      "repeats": false,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/service-type-1"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-width",
                          "valueQuantity": {
                            "value": 23,
                            "system": "http://unitsofmeasure.org",
                            "code": "%"
                          }
                        },
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "autocomplete"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "plan-goalstasks-details-servicestreatments-activity",
                      "text": "Activity",
                      "type": "open-choice",
                      "repeats": false,
                      "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/procedure-1"
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-width",
                          "valueQuantity": {
                            "value": 23,
                            "system": "http://unitsofmeasure.org",
                            "code": "%"
                          }
                        }
                      ],
                      "linkId": "plan-goalstasks-details-servicestreatments-provider",
                      "text": "Provider",
                      "type": "string",
                      "repeats": false
                    },
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-width",
                          "valueQuantity": {
                            "value": 31,
                            "system": "http://unitsofmeasure.org",
                            "code": "%"
                          }
                        }
                      ],
                      "linkId": "plan-goalstasks-details-servicestreatments-comment",
                      "text": "Comment",
                      "type": "string",
                      "repeats": false
                    }
                  ]
                }
              ]
            },
            {
              "linkId": "notes",
              "text": "Notes",
              "type": "group",
              "item": [
                {
                  "linkId": "notes-additionalcomments",
                  "text": "Additional notes or comments",
                  "type": "text",
                  "repeats": true
                }
              ]
            },
            {
              "extension": [
                {
                  "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-collapsible",
                  "valueCode": "default-open"
                }
              ],
              "linkId": "completion",
              "text": "Completion",
              "type": "group",
              "repeats": false,
              "item": [
                {
                  "linkId": "completion-consentforsharing",
                  "text": "Consent given for sharing of information with relevant healthcare providers",
                  "type": "boolean",
                  "repeats": false
                },
                {
                  "linkId": "completion-review",
                  "text": "Review",
                  "type": "group",
                  "repeats": false,
                  "item": [
                    {
                      "extension": [
                        {
                          "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                          "valueCodeableConcept": {
                            "coding": [
                              {
                                "system": "http://hl7.org/fhir/questionnaire-item-control",
                                "code": "radio-button"
                              }
                            ]
                          }
                        }
                      ],
                      "linkId": "completion-review-appointmentstatus",
                      "text": "Appointment status",
                      "type": "choice",
                      "repeats": false,
                      "answerOption": [
                        {
                          "valueCoding": {
                            "system": "http://hl7.org/fhir/appointmentstatus",
                            "code": "booked",
                            "display": "Booked"
                          }
                        },
                        {
                          "valueCoding": {
                            "system": "http://hl7.org/fhir/appointmentstatus",
                            "code": "proposed",
                            "display": "Proposed"
                          }
                        }
                      ]
                    },
                    {
                      "linkId": "completion-review-date",
                      "text": "Date",
                      "type": "date",
                      "repeats": false
                    },
                    {
                      "linkId": "completion-review-comment",
                      "text": "Comment",
                      "type": "string",
                      "repeats": false
                    }
                  ]
                },
                {
                  "extension": [
                    {
                      "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl",
                      "valueCodeableConcept": {
                        "coding": [
                          {
                            "system": "http://hl7.org/fhir/questionnaire-item-control",
                            "code": "radio-button"
                          }
                        ]
                      }
                    }
                  ],
                  "linkId": "completion-copyoffered",
                  "text": "Patient has been offered a copy of this plan",
                  "type": "choice",
                  "repeats": false,
                  "answerOption": [
                    {
                      "valueString": "Yes, copy provided"
                    },
                    {
                      "valueString": "Yes, copy to be provided at a later date"
                    },
                    {
                      "valueString": "Yes, but declined"
                    }
                  ]
                },
                {
                  "linkId": "completion-comment",
                  "text": "Comment",
                  "type": "string",
                  "repeats": false
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}