Structured Data Capture
3.0.0 - STU 3 International flag

Structured Data Capture, published by HL7 International - FHIR Infrastructure Work Group. This is not an authorized publication; it is the continuous build for version 3.0.0). This version is based on the current content of https://github.com/HL7/sdc/ and changes regularly. See the Directory of published versions

: SDC Test Form - Initial Expression - JSON Representation

Page standards status: Informative

Raw json | Download


{
  "resourceType" : "Questionnaire",
  "id" : "questionnaire-sdc-test-fhirpath-prepop-initialexpression",
  "meta" : {
    "profile" : [
      "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-pop-exp"
    ]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">Placeholder</div>"
  },
  "extension" : [
    {
      "extension" : [
        {
          "url" : "name",
          "valueCoding" : {
            "system" : "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
            "code" : "patient",
            "display" : "Patient"
          }
        },
        {
          "url" : "type",
          "valueCode" : "Patient"
        },
        {
          "url" : "description",
          "valueString" : "The patient that is to be used to pre-populate 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",
            "display" : "User"
          }
        },
        {
          "url" : "type",
          "valueCode" : "Practitioner"
        },
        {
          "url" : "description",
          "valueString" : "The practitioner that is to be used to pre-populate the form"
        }
      ],
      "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext"
    }
  ],
  "url" : "http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-test-fhirpath-prepop-initialexpression",
  "version" : "3.0.0",
  "name" : "FhirPathPrepopSimple",
  "title" : "Questionnaire Pre-Population",
  "status" : "active",
  "experimental" : true,
  "subjectType" : [
    "Patient"
  ],
  "date" : "2023-09-21T07:17:21+00:00",
  "publisher" : "HL7 International - FHIR Infrastructure Work Group",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description" : "FhirPath based prepopulation simple example",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001",
          "display" : "World"
        }
      ]
    }
  ],
  "item" : [
    {
      "linkId" : "grp",
      "type" : "group",
      "item" : [
        {
          "linkId" : "part-details",
          "text" : "Participant details",
          "type" : "group",
          "repeats" : false,
          "item" : [
            {
              "linkId" : "participant-id",
              "text" : "Participant ID number",
              "type" : "string"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression" : {
                    "language" : "text/fhirpath",
                    "expression" : "%patient.identifier.where(system='http://ns.electronichealth.net.au/id/medicare-number').value.first()"
                  }
                }
              ],
              "linkId" : "medicare-number",
              "text" : "Medicare number",
              "type" : "string",
              "required" : true
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression" : {
                    "language" : "text/fhirpath",
                    "expression" : "%patient.identifier.where(system='http://ns.electronichealth.net.au/id/dva').value.first()"
                  }
                }
              ],
              "linkId" : "dva-number",
              "text" : "DVA number",
              "type" : "string"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression" : {
                    "language" : "text/fhirpath",
                    "expression" : "%patient.name.first().family.first()"
                  }
                }
              ],
              "linkId" : "family-name",
              "text" : "Family name",
              "type" : "string"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression" : {
                    "language" : "text/fhirpath",
                    "expression" : "%patient.name.first().given.first()"
                  }
                }
              ],
              "linkId" : "given-names",
              "text" : "Given name(s)",
              "type" : "string"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression" : {
                    "language" : "text/fhirpath",
                    "expression" : "%patient.birthDate"
                  }
                }
              ],
              "linkId" : "dob",
              "text" : "Date of birth",
              "type" : "date"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression" : {
                    "language" : "text/fhirpath",
                    "expression" : "%patient.telecom.where(system='phone').select(($this.where(use='mobile') | $this.where(use='home')).first().value)"
                  }
                }
              ],
              "linkId" : "contact-number",
              "text" : "Contact telephone number",
              "type" : "string",
              "item" : [
                {
                  "linkId" : "contact-number-tooltip",
                  "text" : "(mobile or land line including area code)",
                  "type" : "text"
                }
              ]
            }
          ]
        },
        {
          "linkId" : "provider-details",
          "text" : "Provider details",
          "type" : "group",
          "repeats" : false,
          "readOnly" : true,
          "item" : [
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression" : {
                    "language" : "text/fhirpath",
                    "expression" : "%user.identifier.where(system='http://ns.electronichealth.net.au/id/hi/prn').first().value"
                  }
                }
              ],
              "linkId" : "provider-number",
              "text" : "Provider number for payment",
              "type" : "string"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression" : {
                    "language" : "text/fhirpath",
                    "expression" : "today()"
                  }
                }
              ],
              "linkId" : "date-consult",
              "text" : "Date of consultation",
              "type" : "date"
            },
            {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
                  "valueExpression" : {
                    "language" : "text/fhirpath",
                    "expression" : "%user.name.first().select(given.first() + ' ' + family.first())"
                  }
                }
              ],
              "linkId" : "provider-name",
              "text" : "Name",
              "type" : "string",
              "readOnly" : true
            }
          ]
        }
      ]
    }
  ]
}