This page is part of the Structured Data Capture FHIR IG (v4.0.0-ballot: STU 4 Ballot 1) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 3.0.0. 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:id [ fhir:v "sdc-modular-root-assembled"] ; #
fhir:meta [
( fhir:profile [
fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/parameters-questionnaire-assemble-out"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/sdc/StructureDefinition/parameters-questionnaire-assemble-out> ] )
] ; #
fhir:parameter ( [
fhir:name [ fhir:v "return" ] ;
( fhir:Parameters.parameter.resource [
a fhir:Questionnaire ;
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm[x]"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding ;
fhir:system [ fhir:v "http://hl7.org/fhir/version-algorithm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "semver" ] ] ] [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom"^^xsd:anyURI ] ;
fhir:value [
fhir:v "http://hl7.org/fhir/uv/sdc/Questionnaire/sdc-modular-contact|3.0"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/sdc/Questionnaire/sdc-modular-contact|3.0> ] ] [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembledFrom"^^xsd:anyURI ] ;
fhir:value [
fhir:v "http://hl7.org/fhir/uv/sdc/Questionnaire/sdc-modular-name|3.0"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/sdc/Questionnaire/sdc-modular-name|3.0> ] ] [
( fhir:extension [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding ;
fhir:system [ fhir:v "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext"^^xsd:anyURI ] ;
fhir:code [ fhir:v "patient" ] ] ] [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Patient" ] ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext"^^xsd:anyURI ] ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/variable"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:name [ fhir:v "person" ] ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%patient" ] ] ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/Questionnaire/sdc-modular-root"^^xsd:anyURI ] ;
fhir:name [ fhir:v "QuestionnaireSDCModularRoot" ] ;
fhir:title [ fhir:v "Example modular Questionnaire" ] ;
fhir:status [ fhir:v "active" ] ;
fhir:experimental [ fhir:v "true"^^xsd:boolean ] ;
( fhir:item [
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/variable"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:name [ fhir:v "linkIdPrefix" ] ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "'patientname.'" ] ] ] [
( fhir:extension [
fhir:url [ fhir:v "key"^^xsd:anyURI ] ;
fhir:value [ fhir:v "qcontact-1" ] ] [
fhir:url [ fhir:v "severity"^^xsd:anyURI ] ;
fhir:value [ fhir:v "error" ] ] [
fhir:url [ fhir:v "human"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Must have either first or last name" ] ] [
fhir:url [ fhir:v "expression"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "item.where(linkId=%linkIdPrefix+'1').exists() or item.where(linkId=%linkIdPrefix+'2').exists()" ] ] ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/targetConstraint"^^xsd:anyURI ] ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/variable"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:name [ fhir:v "name" ] ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "iif(%person.name.where(use='official').exists(),%person.name.where(use='official').first(),%person.name.first())" ] ] ] ) ;
fhir:linkId [ fhir:v "1" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.name"^^xsd:anyURI ] ;
fhir:text [ fhir:v "What is the person's official name?" ] ;
fhir:type [ fhir:v "group" ] ;
( fhir:item [
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%name.prefix.where($this in ('Mr.'|'Miss'|'Mrs'|'Ms.'))first()" ] ] ] ) ;
fhir:linkId [ fhir:v "patientname.1" ] ;
fhir:text [ fhir:v "Title" ] ;
fhir:type [ fhir:v "string" ] ;
fhir:required [ fhir:v "true"^^xsd:boolean ] ;
( fhir:answerOption [
fhir:value [ fhir:v "Mr." ] ] [
fhir:value [ fhir:v "Miss" ] ] [
fhir:value [ fhir:v "Mrs." ] ] [
fhir:value [ fhir:v "Ms." ] ] ) ] [
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%name.given.first()" ] ] ] ) ;
fhir:linkId [ fhir:v "patientname.2" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.name.first"^^xsd:anyURI ] ;
fhir:text [ fhir:v "First" ] ;
fhir:type [ fhir:v "string" ] ;
fhir:required [ fhir:v "true"^^xsd:boolean ] ;
fhir:maxLength [ fhir:v "100"^^xsd:integer ] ] [
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%name.family" ] ] ] ) ;
fhir:linkId [ fhir:v "patientname.3" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.name.last"^^xsd:anyURI ] ;
fhir:text [ fhir:v "Last" ] ;
fhir:type [ fhir:v "string" ] ;
fhir:required [ fhir:v "true"^^xsd:boolean ] ;
fhir:maxLength [ fhir:v "100"^^xsd:integer ] ] ) ] [
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/minValue"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1900-01-01"^^xsd:date ] ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/maxValue"^^xsd:anyURI ] ;
fhir:value [
a fhir:date ;
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-expression"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "now() as date + 1 day" ] ] ] ) ] ] ) ;
fhir:linkId [ fhir:v "2" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.dob"^^xsd:anyURI ] ;
fhir:text [ fhir:v "What is this person's date of birth?" ] ;
fhir:type [ fhir:v "date" ] ;
fhir:required [ fhir:v "true"^^xsd:boolean ] ] [
fhir:linkId [ fhir:v "3" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.sex"^^xsd:anyURI ] ;
fhir:text [ fhir:v "What is this person's gender?" ] ;
fhir:type [ fhir:v "choice" ] ;
fhir:required [ fhir:v "true"^^xsd:boolean ] ;
fhir:answerValueSet [
fhir:v "http://hl7.org/fhir/ValueSet/administrative-gender"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/ValueSet/administrative-gender> ] ] [
fhir:linkId [ fhir:v "4" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.address"^^xsd:anyURI ] ;
fhir:text [ fhir:v "What is this person's current mailing address?" ] ;
fhir:type [ fhir:v "group" ] ;
fhir:required [ fhir:v "true"^^xsd:boolean ] ;
( fhir:item [
fhir:linkId [ fhir:v "4.1" ] ;
fhir:type [ fhir:v "display" ] ] [
fhir:linkId [ fhir:v "4Demographics.address.street" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.address.street"^^xsd:anyURI ] ;
fhir:text [ fhir:v "Street address" ] ;
fhir:type [ fhir:v "string" ] ] [
fhir:linkId [ fhir:v "4Demographics.address.city" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.address.city"^^xsd:anyURI ] ;
fhir:text [ fhir:v "City/Town" ] ;
fhir:type [ fhir:v "string" ] ] [
fhir:linkId [ fhir:v "4Demographics.address.state" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.address.state"^^xsd:anyURI ] ;
fhir:text [ fhir:v "State" ] ;
fhir:type [ fhir:v "choice" ] ;
fhir:answerValueSet [
fhir:v "http://hl7.org/fhir/uv/sdc/ValueSet/sdc-question-library-states"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/sdc/ValueSet/sdc-question-library-states> ] ] [
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/entryFormat"^^xsd:anyURI ] ;
fhir:value [ fhir:v "9999" ] ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/regex"^^xsd:anyURI ] ;
fhir:value [ fhir:v "[\\d]{4}" ] ] ) ;
fhir:linkId [ fhir:v "4Demographics.address.postalCode" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.address.postalCode"^^xsd:anyURI ] ;
fhir:text [ fhir:v "Postal Code" ] ;
fhir:type [ fhir:v "string" ] ;
fhir:required [ fhir:v "true"^^xsd:boolean ] ] ) ] [
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:name [ fhir:v "person" ] ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%patient.contact" ] ] ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/variable"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:name [ fhir:v "linkIdPrefix" ] ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "'patientcontact.'" ] ] ] ) ;
fhir:linkId [ fhir:v "5" ] ;
fhir:type [ fhir:v "group" ] ;
fhir:required [ fhir:v "true"^^xsd:boolean ] ;
( fhir:item [
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/variable"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:name [ fhir:v "linkIdPrefix" ] ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%linkIdPrefix + 'name.'" ] ] ] [
( fhir:extension [
fhir:url [ fhir:v "key"^^xsd:anyURI ] ;
fhir:value [ fhir:v "qcontact-1" ] ] [
fhir:url [ fhir:v "severity"^^xsd:anyURI ] ;
fhir:value [ fhir:v "error" ] ] [
fhir:url [ fhir:v "human"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Must have either first or last name" ] ] [
fhir:url [ fhir:v "expression"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "item.where(linkId=%linkIdPrefix+'1').exists() or item.where(linkId=%linkIdPrefix+'2').exists()" ] ] ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/targetConstraint"^^xsd:anyURI ] ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/variable"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:name [ fhir:v "name" ] ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "iif(%person.name.where(use='official').exists(),%person.name.where(use='official').first(),%person.name.first())" ] ] ] ) ;
fhir:linkId [ fhir:v "patientcontact.1" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.name"^^xsd:anyURI ] ;
fhir:text [ fhir:v "What is the person's official name?" ] ;
fhir:type [ fhir:v "group" ] ;
( fhir:item [
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%name.prefix.where($this in ('Mr.'|'Miss'|'Mrs'|'Ms.')).first()" ] ] ] ) ;
fhir:linkId [ fhir:v "patientcontact.name.1" ] ;
fhir:type [ fhir:v "string" ] ;
fhir:required [ fhir:v "true"^^xsd:boolean ] ;
( fhir:answerOption [
fhir:value [ fhir:v "Mr." ] ] [
fhir:value [ fhir:v "Miss" ] ] [
fhir:value [ fhir:v "Mrs." ] ] [
fhir:value [ fhir:v "Ms." ] ] ) ] [
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%name.given[0]" ] ] ] ) ;
fhir:linkId [ fhir:v "patientcontact.name.2" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.name.first"^^xsd:anyURI ] ;
fhir:text [ fhir:v "First" ] ;
fhir:type [ fhir:v "string" ] ;
fhir:required [ fhir:v "true"^^xsd:boolean ] ;
fhir:maxLength [ fhir:v "100"^^xsd:integer ] ] [
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%name.family" ] ] ] ) ;
fhir:linkId [ fhir:v "patientcontact.name.3" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/SdcQuestionLibrary#SdcQuestionLibrary.name.last"^^xsd:anyURI ] ;
fhir:text [ fhir:v "Last" ] ;
fhir:type [ fhir:v "string" ] ;
fhir:required [ fhir:v "true"^^xsd:boolean ] ;
fhir:maxLength [ fhir:v "100"^^xsd:integer ] ] ) ] [
( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:language [ fhir:v "text/fhirpath" ] ;
fhir:expression [ fhir:v "%person.telecom.where(use='phone').first()" ] ] ] ) ;
fhir:linkId [ fhir:v "patientcontact.2" ] ;
fhir:definition [ fhir:v "http://example.org/StructureDefinition/non-existent-library#Stuff.phone"^^xsd:anyURI ] ;
fhir:text [ fhir:v "Phone number" ] ;
fhir:type [ fhir:v "string" ] ;
fhir:required [ fhir:v "true"^^xsd:boolean ] ] ) ] ) ] )
] [
fhir:name [ fhir:v "outcome" ] ;
( fhir:Parameters.parameter.resource [
a fhir:OperationOutcome ;
fhir:text [
fhir:status [ fhir:v "empty" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><ul><li>Warning: 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</li><li>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</li></ul></div>" ] ;
( fhir:issue [
fhir:severity [ fhir:v "warning" ] ;
fhir:code [ fhir:v "informational" ] ;
fhir:details [
fhir:text [ fhir:v "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:expression [ fhir:v "Questionnaire.item[1].definition" ] ) ] [
fhir:severity [ fhir:v "warning" ] ;
fhir:code [ fhir:v "informational" ] ;
fhir:details [
fhir:text [ fhir:v "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:expression [ fhir:v "Questionnaire.item[1].definition" ] ) ] ) ] )
] ) . #
IG © 2022+ HL7 International / FHIR Infrastructure. Package hl7.fhir.uv.sdc#4.0.0-ballot based on FHIR 4.0.1. Generated 2024-12-17
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change