Structured Data Capture, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 3.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/sdc/ and changes regularly. 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/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 "draft" ] ;
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 [ fhir:v "item.where(linkId=%linkIdPrefix+'1').exists() or item.where(linkId=%linkIdPrefix+'2').exists()" ] ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint"^^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')[0],%person.name[0])" ] ] ] ) ;
fhir:linkId [ fhir:v "1" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.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.'))[0]" ] ] ] ) ;
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[0]" ] ] ] ) ;
fhir:linkId [ fhir:v "patientname.2" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.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.last" ] ] ] ) ;
fhir:linkId [ fhir:v "patientname.3" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.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/sdc-question-library#Demographics.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/sdc-question-library#Demographics.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/sdc-question-library#Demographics.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/sdc-question-library#Demographics.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/sdc-question-library#Demographics.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/sdc-question-library#Demographics.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/sdc-question-library#Demographics.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 [ fhir:v "item.where(linkId=%linkIdPrefix+'1').exists() or item.where(linkId=%linkIdPrefix+'2').exists()" ] ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/questionnaire-constraint"^^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')[0],%person.name[0])" ] ] ] ) ;
fhir:linkId [ fhir:v "patientcontact.1" ] ;
fhir:definition [ fhir:v "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-question-library#Demographics.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.'))[0]" ] ] ] ) ;
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/sdc-question-library#Demographics.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/sdc-question-library#Demographics.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: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#3.0.0 based on FHIR 4.0.1. Generated 2023-12-07
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change