FHIR © HL7.org  |  Server Home  |  XIG Home  |  Server Source  |  FHIR  

FHIR IG Statistics: Questionnaire/questionnaire-sdc-test-fhirpath-prepop-initialexpression

Packagehl7.fhir.uv.sdc.r4b
TypeQuestionnaire
Idquestionnaire-sdc-test-fhirpath-prepop-initialexpression
FHIR VersionR4B
Sourcehttp://hl7.org/fhir/uv/sdc/http://hl7.org/fhir/uv/sdc/STU3/Questionnaire-questionnaire-sdc-test-fhirpath-prepop-initialexpression.html
URLhttp://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-test-fhirpath-prepop-initialexpression
Version3.0.0
Statusactive
Date2022-03-08T18:37:19+00:00
NameFhirPathPrepopSimple
TitleQuestionnaire Pre-Population
Realmuv
Authorityhl7
DescriptionFhirPath based prepopulation simple example

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

LinkIdTextCardinalityTypeFlagsDescription & Constraintsdoco
.. FhirPathPrepopSimpleFhirPath based prepopulation simple exampleQuestionnairehttp://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-test-fhirpath-prepop-initialexpression#3.0.0
... grpnull0..1group
.... part-detailsParticipant details0..1group
..... participant-idParticipant ID number0..1string
..... medicare-numberMedicare number1..1stringExpressions:
  • Initial Value: %patient.identifier.where(system='http://ns.electronichealth.net.au/id/medicare-number').value.first()
..... dva-numberDVA number0..1stringExpressions:
  • Initial Value: %patient.identifier.where(system='http://ns.electronichealth.net.au/id/dva').value.first()
..... family-nameFamily name0..1stringExpressions:
..... given-namesGiven name(s)0..1stringExpressions:
..... dobDate of birth0..1dateExpressions:
..... contact-numberContact telephone number0..1stringExpressions:
  • Initial Value: %patient.telecom.where(system='phone').select(($this.where(use='mobile') | $this.where(use='home')).first().value)
...... contact-number-tooltip(mobile or land line including area code)0..1text
.... provider-detailsProvider details0..1group
..... provider-numberProvider number for payment0..1stringExpressions:
  • Initial Value: %user.identifier.where(system='http://ns.electronichealth.net.au/id/hi/prn').first().value
..... date-consultDate of consultation0..1dateExpressions:
..... provider-nameName0..1stringExpressions:
  • Initial Value: %user.name.first().select(given.first() + ' ' + family.first())

doco Documentation for this format

Source

{
  "resourceType": "Questionnaire",
  "id": "questionnaire-sdc-test-fhirpath-prepop-initialexpression",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "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": "2022-03-08T18:37:19+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"
        }
      ]
    }
  ],
  "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
            }
          ]
        }
      ]
    }
  ]
}