PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.sdc@3.0.0-preview
    http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-test-fhirpath-prepop-initialexpression
{
  "description": "FhirPath based prepopulation simple example",
  "_filename": "example/Questionnaire-questionnaire-sdc-test-fhirpath-prepop-initialexpression.json",
  "package_name": "hl7.fhir.uv.sdc",
  "subjectType": [ "Patient" ],
  "date": "2022-02-16T19:40:22+11:00",
  "publisher": "HL7 International - FHIR Infrastructure Work Group",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm"
    } ]
  } ],
  "name": "FhirPathPrepopSimple",
  "item": [ {
    "item": [ {
      "item": [ {
        "text": "Participant ID number",
        "type": "string",
        "linkId": "participant-id"
      }, {
        "text": "Medicare number",
        "type": "string",
        "linkId": "medicare-number",
        "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/medicare-number').value.first()"
          }
        } ]
      }, {
        "text": "DVA number",
        "type": "string",
        "linkId": "dva-number",
        "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()"
          }
        } ]
      }, {
        "text": "Family name",
        "type": "string",
        "linkId": "family-name",
        "extension": [ {
          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
          "valueExpression": {
            "language": "text/fhirpath",
            "expression": "%patient.name.first().family.first()"
          }
        } ]
      }, {
        "text": "Given name(s)",
        "type": "string",
        "linkId": "given-names",
        "extension": [ {
          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
          "valueExpression": {
            "language": "text/fhirpath",
            "expression": "%patient.name.first().given.first()"
          }
        } ]
      }, {
        "text": "Date of birth",
        "type": "date",
        "linkId": "dob",
        "extension": [ {
          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
          "valueExpression": {
            "language": "text/fhirpath",
            "expression": "%patient.birthDate"
          }
        } ]
      }, {
        "item": [ {
          "text": "(mobile or land line including area code)",
          "type": "text",
          "linkId": "contact-number-tooltip"
        } ],
        "text": "Contact telephone number",
        "type": "string",
        "linkId": "contact-number",
        "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)"
          }
        } ]
      } ],
      "text": "Participant details",
      "type": "group",
      "linkId": "part-details",
      "repeats": false
    }, {
      "item": [ {
        "text": "Provider number for payment",
        "type": "string",
        "linkId": "provider-number",
        "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"
          }
        } ]
      }, {
        "text": "Date of consultation",
        "type": "date",
        "linkId": "date-consult",
        "extension": [ {
          "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
          "valueExpression": {
            "language": "text/fhirpath",
            "expression": "today()"
          }
        } ]
      }, {
        "text": "Name",
        "type": "string",
        "linkId": "provider-name",
        "readOnly": true,
        "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())"
          }
        } ]
      } ],
      "text": "Provider details",
      "type": "group",
      "linkId": "provider-details",
      "repeats": false,
      "readOnly": true
    } ],
    "type": "group",
    "linkId": "grp"
  } ],
  "type": null,
  "experimental": "true",
  "resourceType": "Questionnaire",
  "title": "Questionnaire Pre-Population",
  "package_version": "3.0.0-preview",
  "extension": [ {
    "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext",
    "extension": [ {
      "url": "name",
      "valueCoding": {
        "code": "patient",
        "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
        "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": {
        "code": "user",
        "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext",
        "display": "User"
      }
    }, {
      "url": "type",
      "valueCode": "Practitioner"
    }, {
      "url": "description",
      "valueString": "The practitioner that is to be used to pre-populate the form"
    } ]
  } ],
  "status": "active",
  "id": "8a062cf1-2b9d-4f22-a85f-8565ec51f138",
  "kind": null,
  "url": "http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-test-fhirpath-prepop-initialexpression",
  "version": "3.0.0-preview",
  "contact": [ {
    "telecom": [ {
      "value": "http://hl7.org/Special/committees/fiwg",
      "system": "url"
    } ]
  } ]
}