This page is part of the Structured Data Capture FHIR IG (v3.0.0: STU 3) based on FHIR R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
a fhir:Parameters;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "sdc-modular-root-assembled"];
fhir:Parameters.parameter [
fhir:index 0;
fhir:Parameters.parameter.name [ fhir:value "return" ];
fhir:Parameters.parameter.resource [
a fhir:Questionnaire;
fhir:DomainResource.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom" ];
fhir:Extension.valueCanonical [
fhir:value "http://hl7.org/fhir/uv/sdc/Questionnaire/sdc-modular-contact|3.0";
fhir:link <http://hl7.org/fhir/uv/sdc/Questionnaire/sdc-modular-contact|3.0> ] ], [
fhir:index 1;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom" ];
fhir:Extension.valueCanonical [
fhir:value "http://hl7.org/fhir/uv/sdc/Questionnaire/sdc-modular-name|3.0";
fhir:link <http://hl7.org/fhir/uv/sdc/Questionnaire/sdc-modular-name|3.0> ] ], [
fhir:index 2;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "name" ];
fhir:Extension.valueCoding [
fhir:Coding.system [ fhir:value "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext" ];
fhir:Coding.code [ fhir:value "patient" ] ] ], [
fhir:index 1;
fhir:Extension.url [ fhir:value "type" ];
fhir:Extension.valueCode [ fhir:value "Patient" ] ] ], [
fhir:index 3;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/variable" ];
fhir:Extension.valueExpression [
fhir:Expression.name [ fhir:value "person" ];
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%patient" ] ] ];
fhir:Questionnaire.url [ fhir:value "http://hl7.org/fhir/uv/sdc/Questionnaire/sdc-modular-root" ];
fhir:Questionnaire.name [ fhir:value "QuestionnaireSDCModularRoot" ];
fhir:Questionnaire.title [ fhir:value "Example modular Questionnaire" ];
fhir:Questionnaire.status [ fhir:value "draft" ];
fhir:Questionnaire.experimental [ fhir:value "true"^^xsd:boolean ];
fhir:Questionnaire.item [
fhir:index 0;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/variable" ];
fhir:Extension.valueExpression [
fhir:Expression.name [ fhir:value "linkIdPrefix" ];
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "'patientname.'" ] ] ], [
fhir:index 1;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "key" ];
fhir:Extension.valueString [ fhir:value "qcontact-1" ] ], [
fhir:index 1;
fhir:Extension.url [ fhir:value "severity" ];
fhir:Extension.valueCode [ fhir:value "error" ] ], [
fhir:index 2;
fhir:Extension.url [ fhir:value "human" ];
fhir:Extension.valueString [ fhir:value "Must have either first or last name" ] ], [
fhir:index 3;
fhir:Extension.url [ fhir:value "expression" ];
fhir:Extension.valueString [ fhir:value "item.where(linkId=%linkIdPrefix+'1').exists() or item.where(linkId=%linkIdPrefix+'2').exists()" ] ] ], [
fhir:index 2;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/variable" ];
fhir:Extension.valueExpression [
fhir:Expression.name [ fhir:value "name" ];
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "iif(%person.name.where(use='official').exists(),%person.name.where(use='official')[0],%person.name[0])" ] ] ];
fhir:Questionnaire.item.linkId [ fhir:value "1" ];
fhir:Questionnaire.item.definition [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.name" ];
fhir:Questionnaire.item.text [ fhir:value "What is the person's official name?" ];
fhir:Questionnaire.item.type [ fhir:value "group" ];
fhir:Questionnaire.item.item [
fhir:index 0;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" ];
fhir:Extension.valueExpression [
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%name.prefix.where($this in ('Mr.'|'Miss'|'Mrs'|'Ms.'))[0]" ] ] ];
fhir:Questionnaire.item.linkId [ fhir:value "patientname.1" ];
fhir:Questionnaire.item.text [ fhir:value "Title" ];
fhir:Questionnaire.item.type [ fhir:value "string" ];
fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
fhir:Questionnaire.item.answerOption [
fhir:index 0;
fhir:Questionnaire.item.answerOption.valueString [ fhir:value "Mr." ] ], [
fhir:index 1;
fhir:Questionnaire.item.answerOption.valueString [ fhir:value "Miss" ] ], [
fhir:index 2;
fhir:Questionnaire.item.answerOption.valueString [ fhir:value "Mrs." ] ], [
fhir:index 3;
fhir:Questionnaire.item.answerOption.valueString [ fhir:value "Ms." ] ] ], [
fhir:index 1;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" ];
fhir:Extension.valueExpression [
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%name.given[0]" ] ] ];
fhir:Questionnaire.item.linkId [ fhir:value "patientname.2" ];
fhir:Questionnaire.item.definition [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.name.first" ];
fhir:Questionnaire.item.text [ fhir:value "First" ];
fhir:Questionnaire.item.type [ fhir:value "string" ];
fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
fhir:Questionnaire.item.maxLength [ fhir:value "100"^^xsd:integer ] ], [
fhir:index 2;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" ];
fhir:Extension.valueExpression [
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%name.last" ] ] ];
fhir:Questionnaire.item.linkId [ fhir:value "patientname.3" ];
fhir:Questionnaire.item.definition [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.name.last" ];
fhir:Questionnaire.item.text [ fhir:value "Last" ];
fhir:Questionnaire.item.type [ fhir:value "string" ];
fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
fhir:Questionnaire.item.maxLength [ fhir:value "100"^^xsd:integer ] ] ], [
fhir:index 1;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/minValue" ];
fhir:Extension.valueDate [ fhir:value "1900-01-01"^^xsd:date ] ], [
fhir:index 1;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/maxValue" ];
fhir:Extension.valueDate [
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-expression" ];
fhir:Extension.valueExpression [
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "now() as date + 1 day" ] ] ] ] ];
fhir:Questionnaire.item.linkId [ fhir:value "2" ];
fhir:Questionnaire.item.definition [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.dob" ];
fhir:Questionnaire.item.text [ fhir:value "What is this person's date of birth?" ];
fhir:Questionnaire.item.type [ fhir:value "date" ];
fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ] ], [
fhir:index 2;
fhir:Questionnaire.item.linkId [ fhir:value "3" ];
fhir:Questionnaire.item.definition [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.sex" ];
fhir:Questionnaire.item.text [ fhir:value "What is this person's gender?" ];
fhir:Questionnaire.item.type [ fhir:value "choice" ];
fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
fhir:Questionnaire.item.answerValueSet [
fhir:value "http://hl7.org/fhir/ValueSet/administrative-gender";
fhir:link <http://hl7.org/fhir/ValueSet/administrative-gender> ] ], [
fhir:index 3;
fhir:Questionnaire.item.linkId [ fhir:value "4" ];
fhir:Questionnaire.item.definition [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.address" ];
fhir:Questionnaire.item.text [ fhir:value "What is this person's current mailing address?" ];
fhir:Questionnaire.item.type [ fhir:value "group" ];
fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
fhir:Questionnaire.item.item [
fhir:index 0;
fhir:Questionnaire.item.linkId [ fhir:value "4.1" ];
fhir:Questionnaire.item.type [ fhir:value "display" ] ], [
fhir:index 1;
fhir:Questionnaire.item.linkId [ fhir:value "4Demographics.address.street" ];
fhir:Questionnaire.item.definition [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.address.street" ];
fhir:Questionnaire.item.text [ fhir:value "Street address" ];
fhir:Questionnaire.item.type [ fhir:value "string" ] ], [
fhir:index 2;
fhir:Questionnaire.item.linkId [ fhir:value "4Demographics.address.city" ];
fhir:Questionnaire.item.definition [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.address.city" ];
fhir:Questionnaire.item.text [ fhir:value "City/Town" ];
fhir:Questionnaire.item.type [ fhir:value "string" ] ], [
fhir:index 3;
fhir:Questionnaire.item.linkId [ fhir:value "4Demographics.address.state" ];
fhir:Questionnaire.item.definition [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.address.state" ];
fhir:Questionnaire.item.text [ fhir:value "State" ];
fhir:Questionnaire.item.type [ fhir:value "choice" ];
fhir:Questionnaire.item.answerValueSet [
fhir:value "http://hl7.org/fhir/uv/sdc/ValueSet/sdc-question-library-states";
fhir:link <http://hl7.org/fhir/uv/sdc/ValueSet/sdc-question-library-states> ] ], [
fhir:index 4;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/entryFormat" ];
fhir:Extension.valueString [ fhir:value "9999" ] ], [
fhir:index 1;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/regex" ];
fhir:Extension.valueString [ fhir:value "[\\d]{4}" ] ];
fhir:Questionnaire.item.linkId [ fhir:value "4Demographics.address.postalCode" ];
fhir:Questionnaire.item.definition [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.address.postalCode" ];
fhir:Questionnaire.item.text [ fhir:value "Postal Code" ];
fhir:Questionnaire.item.type [ fhir:value "string" ];
fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ] ] ], [
fhir:index 4;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext" ];
fhir:Extension.valueExpression [
fhir:Expression.name [ fhir:value "person" ];
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%patient.contact" ] ] ], [
fhir:index 1;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/variable" ];
fhir:Extension.valueExpression [
fhir:Expression.name [ fhir:value "linkIdPrefix" ];
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "'patientcontact.'" ] ] ];
fhir:Questionnaire.item.linkId [ fhir:value "5" ];
fhir:Questionnaire.item.type [ fhir:value "group" ];
fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
fhir:Questionnaire.item.item [
fhir:index 0;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/variable" ];
fhir:Extension.valueExpression [
fhir:Expression.name [ fhir:value "linkIdPrefix" ];
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%linkIdPrefix + 'name.'" ] ] ], [
fhir:index 1;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint" ];
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "key" ];
fhir:Extension.valueString [ fhir:value "qcontact-1" ] ], [
fhir:index 1;
fhir:Extension.url [ fhir:value "severity" ];
fhir:Extension.valueCode [ fhir:value "error" ] ], [
fhir:index 2;
fhir:Extension.url [ fhir:value "human" ];
fhir:Extension.valueString [ fhir:value "Must have either first or last name" ] ], [
fhir:index 3;
fhir:Extension.url [ fhir:value "expression" ];
fhir:Extension.valueString [ fhir:value "item.where(linkId=%linkIdPrefix+'1').exists() or item.where(linkId=%linkIdPrefix+'2').exists()" ] ] ], [
fhir:index 2;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/variable" ];
fhir:Extension.valueExpression [
fhir:Expression.name [ fhir:value "name" ];
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "iif(%person.name.where(use='official').exists(),%person.name.where(use='official')[0],%person.name[0])" ] ] ];
fhir:Questionnaire.item.linkId [ fhir:value "patientcontact.1" ];
fhir:Questionnaire.item.definition [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.name" ];
fhir:Questionnaire.item.text [ fhir:value "What is the person's official name?" ];
fhir:Questionnaire.item.type [ fhir:value "group" ];
fhir:Questionnaire.item.item [
fhir:index 0;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" ];
fhir:Extension.valueExpression [
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%name.prefix.where($this in ('Mr.'|'Miss'|'Mrs'|'Ms.'))[0]" ] ] ];
fhir:Questionnaire.item.linkId [ fhir:value "patientcontact.name.1" ];
fhir:Questionnaire.item.type [ fhir:value "string" ];
fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
fhir:Questionnaire.item.answerOption [
fhir:index 0;
fhir:Questionnaire.item.answerOption.valueString [ fhir:value "Mr." ] ], [
fhir:index 1;
fhir:Questionnaire.item.answerOption.valueString [ fhir:value "Miss" ] ], [
fhir:index 2;
fhir:Questionnaire.item.answerOption.valueString [ fhir:value "Mrs." ] ], [
fhir:index 3;
fhir:Questionnaire.item.answerOption.valueString [ fhir:value "Ms." ] ] ], [
fhir:index 1;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" ];
fhir:Extension.valueExpression [
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%name.given[0]" ] ] ];
fhir:Questionnaire.item.linkId [ fhir:value "patientcontact.name.2" ];
fhir:Questionnaire.item.definition [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.name.first" ];
fhir:Questionnaire.item.text [ fhir:value "First" ];
fhir:Questionnaire.item.type [ fhir:value "string" ];
fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
fhir:Questionnaire.item.maxLength [ fhir:value "100"^^xsd:integer ] ], [
fhir:index 2;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" ];
fhir:Extension.valueExpression [
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%name.family" ] ] ];
fhir:Questionnaire.item.linkId [ fhir:value "patientcontact.name.3" ];
fhir:Questionnaire.item.definition [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.name.last" ];
fhir:Questionnaire.item.text [ fhir:value "Last" ];
fhir:Questionnaire.item.type [ fhir:value "string" ];
fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ];
fhir:Questionnaire.item.maxLength [ fhir:value "100"^^xsd:integer ] ] ], [
fhir:index 1;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" ];
fhir:Extension.valueExpression [
fhir:Expression.language [ fhir:value "text/fhirpath" ];
fhir:Expression.expression [ fhir:value "%person.telecom[use='phone'][0]" ] ] ];
fhir:Questionnaire.item.linkId [ fhir:value "patientcontact.2" ];
fhir:Questionnaire.item.definition [ fhir:value "http://example.org/StructureDefinition/non-existent-library#Stuff.phone" ];
fhir:Questionnaire.item.text [ fhir:value "Phone number" ];
fhir:Questionnaire.item.type [ fhir:value "string" ];
fhir:Questionnaire.item.required [ fhir:value "true"^^xsd:boolean ] ] ] ]
], [
fhir:index 1;
fhir:Parameters.parameter.name [ fhir:value "outcome" ];
fhir:Parameters.parameter.resource [
a fhir:OperationOutcome;
fhir:OperationOutcome.issue [
fhir:index 0;
fhir:OperationOutcome.issue.severity [ fhir:value "warning" ];
fhir:OperationOutcome.issue.code [ fhir:value "informational" ];
fhir:OperationOutcome.issue.details [
fhir:CodeableConcept.text [ fhir:value "Unable to resolve element definition http://example.org/StructureDefinition/non-existent-library#Stuff.phone when assembling Questionnaire/sdc-modular-contact. Some constraints and behavior may not be represented" ] ];
fhir:OperationOutcome.issue.expression [
fhir:value "Questionnaire.item[1].definition";
fhir:index 0 ] ], [
fhir:index 1;
fhir:OperationOutcome.issue.severity [ fhir:value "warning" ];
fhir:OperationOutcome.issue.code [ fhir:value "informational" ];
fhir:OperationOutcome.issue.details [
fhir:CodeableConcept.text [ fhir:value "Unable to resolve element definition http://example.org/StructureDefinition/non-existent-library#Stuff.phone when assembling Questionnaire/sdc-modular-contact. Some constraints and behavior may not be represented" ] ];
fhir:OperationOutcome.issue.expression [
fhir:value "Questionnaire.item[1].definition";
fhir:index 0 ] ] ]
].
# - ontology header ------------------------------------------------------------
a owl:Ontology;
owl:imports fhir:fhir.ttl.