PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.sdc@4.0.0-ballot
    http://hl7.org/fhir/uv/sdc/Questionnaire/sdc-modular-name
{
  "description": "Example questionnaire module - Used to represent a patient or other human name as an example of a Questionnaire that can be referenced by other Questionnaires.  It is itself modular in that it relies on external element definitions",
  "_filename": "example/Questionnaire-sdc-modular-name.json",
  "package_name": "hl7.fhir.uv.sdc",
  "date": "2024-12-17T01:55:34+00:00",
  "meta": {
    "profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-modular" ]
  },
  "publisher": "HL7 International / FHIR Infrastructure",
  "jurisdiction": [ {
    "coding": [ {
      "code": "001",
      "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "display": "World"
    } ]
  } ],
  "name": "QuestionnaireSDCModularName",
  "item": [ {
    "text": "Title",
    "type": "string",
    "linkId": "1",
    "required": true,
    "extension": [ {
      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
      "valueExpression": {
        "language": "text/fhirpath",
        "expression": "%name.prefix.where($this in ('Mr.'|'Miss'|'Mrs'|'Ms.'))[0]"
      }
    } ],
    "answerOption": [ {
      "valueString": "Mr."
    }, {
      "valueString": "Miss"
    }, {
      "valueString": "Mrs."
    }, {
      "valueString": "Ms."
    } ]
  }, {
    "type": "string",
    "linkId": "2",
    "required": true,
    "extension": [ {
      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
      "valueExpression": {
        "language": "text/fhirpath",
        "expression": "%name.given.first()"
      }
    } ],
    "definition": "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.name.first"
  }, {
    "type": "string",
    "linkId": "3",
    "required": true,
    "extension": [ {
      "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression",
      "valueExpression": {
        "language": "text/fhirpath",
        "expression": "%name.family"
      }
    } ],
    "definition": "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.name.last"
  } ],
  "type": null,
  "experimental": "true",
  "resourceType": "Questionnaire",
  "title": "Example sub-module Questionnaire for name",
  "package_version": "4.0.0-ballot",
  "extension": [ {
    "url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm[x]",
    "valueCoding": {
      "code": "semver",
      "system": "http://hl7.org/fhir/version-algorithm"
    }
  }, {
    "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation",
    "valueCode": "assemble-child"
  }, {
    "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembleContext",
    "valueString": "linkIdPrefix"
  }, {
    "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembleContext",
    "valueString": "person"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/targetConstraint",
    "extension": [ {
      "url": "key",
      "valueId": "qcontact-1"
    }, {
      "url": "severity",
      "valueCode": "error"
    }, {
      "url": "human",
      "valueString": "Must have either first or last name"
    }, {
      "url": "expression",
      "valueExpression": {
        "language": "text/fhirpath",
        "expression": "item.where(linkId=%linkIdPrefix+'1').exists() or item.where(linkId=%linkIdPrefix+'2').exists()"
      }
    } ]
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/variable",
    "valueExpression": {
      "name": "name",
      "language": "text/fhirpath",
      "expression": "iif(%person.name.where(use='official').exists(),%person.name.where(use='official')[0],%person.name[0])"
    }
  } ],
  "status": "active",
  "id": "3baa0b29-2630-43e9-a3db-04289a9edae0",
  "kind": null,
  "url": "http://hl7.org/fhir/uv/sdc/Questionnaire/sdc-modular-name",
  "identifier": [ {
    "value": "urn:oid:2.16.840.1.113883.4.642.40.17.35.29",
    "system": "urn:ietf:rfc:3986"
  } ],
  "version": "4.0.0-ballot",
  "contact": [ {
    "name": "HL7 International / FHIR Infrastructure",
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/fiwg",
      "system": "url"
    } ]
  }, {
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/fiwg",
      "system": "url"
    } ]
  } ]
}