This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions
Structured Documents Work Group | Maturity Level: N/A | Standards Status: Informative | Compartments: Device, Encounter, Patient, Practitioner, RelatedPerson |
Raw Turtle (+ also see Turtle/RDF Format Specification)
StructureDefinition for composition
@prefix fhir: <http://hl7.org/fhir/> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . # - resource ------------------------------------------------------------------- [] a fhir:StructureDefinition ; fhir:id [ fhir:v "Composition"] ; fhir:meta [ fhir:lastUpdated [ fhir:v "2024-11-22T02:15:14.282+00:00" ] ] ; fhir:text [ fhir:status [ fhir:v "generated" ] ] ; fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ] ; fhir:value [ fhir:v "trial-use" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ] ; fhir:value [ fhir:v "sd" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ] ; fhir:value [ fhir:v "4" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category" ] ; fhir:value [ fhir:v "not-classified" ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/Composition"], [ fhir:v "http://hl7.org/fhir/StructureDefinition/Composition"] ; fhir:version [ fhir:v "6.0.0-ballot2"], [ fhir:v "6.0.0-ballot2"] ; fhir:name [ fhir:v "Composition"], [ fhir:v "Composition"] ; fhir:status [ fhir:v "draft"], [ fhir:v "draft"] ; fhir:experimental [ fhir:v "false"], [ fhir:v "false"] ; fhir:date [ fhir:v "2024-11-22T02:15:14+00:00"], [ fhir:v "2024-11-22T02:15:14+00:00"] ; fhir:publisher [ fhir:v "HL7 International / Structured Documents"], [ fhir:v "HL7 International / Structured Documents"] ; fhir:contact ( [ fhir:telecom ( [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ] ] ) ] [ fhir:telecom ( [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://www.hl7.org/Special/committees/structure" ] ] ) ] [ fhir:telecom ( [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ] ] ) ] [ fhir:telecom ( [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://www.hl7.org/Special/committees/structure" ] ] ) ] ) ; fhir:description [ fhir:v "A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.)."], [ fhir:v "A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.)."] ; fhir:jurisdiction ( [ fhir:coding ( [ fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ; fhir:code [ fhir:v "001" ] ; fhir:display [ fhir:v "World" ] ] ) ] [ fhir:coding ( [ fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ; fhir:code [ fhir:v "001" ] ; fhir:display [ fhir:v "World" ] ] ) ] ) ; fhir:purpose [ fhir:v "To support documents, and also to capture the EN13606 notion of an attested commit to the patient EHR, and to allow a set of disparate resources at the information/engineering level to be gathered into a clinical statement."], [ fhir:v "To support documents, and also to capture the EN13606 notion of an attested commit to the patient EHR, and to allow a set of disparate resources at the information/engineering level to be gathered into a clinical statement."] ; fhir:fhirVersion [ fhir:v "6.0.0-ballot2"] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:uri [ fhir:v "http://hl7.org/fhir/workflow" ] ; fhir:name [ fhir:v "Workflow Pattern" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:uri [ fhir:v "http://hl7.org/fhir/fivews" ] ; fhir:name [ fhir:v "FiveWs Pattern Mapping" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:uri [ fhir:v "http://hl7.org/v3" ] ; fhir:name [ fhir:v "RIM Mapping" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:uri [ fhir:v "http://hl7.org/v3/cda" ] ; fhir:name [ fhir:v "CDA (R2)" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:uri [ fhir:v "http://hl7.org/fhir/documentreference" ] ; fhir:name [ fhir:v "FHIR DocumentReference" ] ] ) ; fhir:kind [ fhir:v "resource"] ; fhir:abstract [ fhir:v "false"] ; fhir:type [ fhir:v "Composition"] ; fhir:baseDefinition [ fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource"] ; fhir:derivation [ fhir:v "specialization"] ; fhir:snapshot [ fhir:element ( [ fhir:id [ fhir:v "Composition" ] ; fhir:path [ fhir:v "Composition" ] ; fhir:short [ fhir:v "A set of resources composed into a single coherent clinical statement with clinical attestation" ] ; fhir:definition [ fhir:v "A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.)." ] ; fhir:comment [ fhir:v "While the focus of this specification is on patient-specific clinical statements, this resource can also apply to other healthcare-related statements such as study protocol designs, healthcare invoices and other activities that are not necessarily patient-specific or clinical." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:constraint ( [ fhir:key [ fhir:v "dom-2" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ] ; fhir:expression [ fhir:v "contained.contained.empty()" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource" ] ] [ fhir:key [ fhir:v "dom-3" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource" ] ; fhir:expression [ fhir:v "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource" ] ] [ fhir:key [ fhir:v "dom-4" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ] ; fhir:expression [ fhir:v "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource" ] ] [ fhir:key [ fhir:v "dom-5" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "If a resource is contained in another resource, it SHALL NOT have a security label" ] ; fhir:expression [ fhir:v "contained.meta.security.empty()" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource" ] ] [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice" ] ; fhir:value [ fhir:v "true" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation" ] ; fhir:value [ fhir:v "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." ] ] ) ; fhir:key [ fhir:v "dom-6" ] ; fhir:severity [ fhir:v "warning" ] ; fhir:human [ fhir:v "A resource should have narrative for robust management" ] ; fhir:expression [ fhir:v "text.`div`.exists()" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/DomainResource" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "Entity, Role, or Act,Document[classCode=\"DOC\" and moodCode=\"EVN\" and isNormalAct()]" ] ] [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "infrastructure.documents" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "ClinicalDocument" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "when described by DocumentReference" ] ] ) ] [ fhir:id [ fhir:v "Composition.id" ] ; fhir:path [ fhir:v "Composition.id" ] ; fhir:short [ fhir:v "Logical id of this artifact" ] ; fhir:definition [ fhir:v "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ] ; fhir:comment [ fhir:v "Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Resource.id" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ; fhir:value [ fhir:v "id" ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ] [ fhir:id [ fhir:v "Composition.meta" ] ; fhir:path [ fhir:v "Composition.meta" ] ; fhir:short [ fhir:v "Metadata about the resource" ] ; fhir:definition [ fhir:v "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Resource.meta" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Meta" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ] [ fhir:id [ fhir:v "Composition.implicitRules" ] ; fhir:path [ fhir:v "Composition.implicitRules" ] ; fhir:short [ fhir:v "A set of rules under which this content was created" ] ; fhir:definition [ fhir:v "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc." ] ; fhir:comment [ fhir:v "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of its narrative along with other profiles, value sets, etc." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Resource.implicitRules" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "uri" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "true" ] ; fhir:isModifierReason [ fhir:v "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation" ] ; fhir:isSummary [ fhir:v "true" ] ] [ fhir:id [ fhir:v "Composition.language" ] ; fhir:path [ fhir:v "Composition.language" ] ; fhir:short [ fhir:v "Language of the resource content" ] ; fhir:definition [ fhir:v "The base language in which the resource is written." ] ; fhir:comment [ fhir:v "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Resource.language" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "code" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "Language" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding" ] ; fhir:value [ fhir:v "true" ] ] ) ; fhir:strength [ fhir:v "required" ] ; fhir:description [ fhir:v "IETF language tag for a human language" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/all-languages|6.0.0-ballot2" ] ; fhir:additional ( [ fhir:purpose [ fhir:v "starter" ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/languages" ] ] ) ] ] [ fhir:id [ fhir:v "Composition.text" ] ; fhir:path [ fhir:v "Composition.text" ] ; fhir:short [ fhir:v "Text summary of the resource, for human interpretation" ] ; fhir:definition [ fhir:v "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." ] ; fhir:comment [ fhir:v "Contained resources do not have a narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later." ] ; fhir:alias ( [ fhir:v "narrative" ] [ fhir:v "html" ] [ fhir:v "xhtml" ] [ fhir:v "display" ] ) ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "DomainResource.text" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Narrative" ] ] ) ; fhir:condition ( [ fhir:v "dom-6" ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "Act.text?" ] ] ) ] [ fhir:id [ fhir:v "Composition.contained" ] ; fhir:path [ fhir:v "Composition.contained" ] ; fhir:short [ fhir:v "Contained, inline Resources" ] ; fhir:definition [ fhir:v "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning." ] ; fhir:comment [ fhir:v "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels." ] ; fhir:alias ( [ fhir:v "inline resources" ] [ fhir:v "anonymous resources" ] [ fhir:v "contained resources" ] ) ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "DomainResource.contained" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Resource" ] ] ) ; fhir:condition ( [ fhir:v "dom-2" ] [ fhir:v "dom-4" ] [ fhir:v "dom-3" ] [ fhir:v "dom-5" ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] ) ] [ fhir:id [ fhir:v "Composition.extension" ] ; fhir:path [ fhir:v "Composition.extension" ] ; fhir:short [ fhir:v "Additional content defined by implementations" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "DomainResource.extension" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Extension" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] ) ] [ fhir:id [ fhir:v "Composition.modifierExtension" ] ; fhir:path [ fhir:v "Composition.modifierExtension" ] ; fhir:short [ fhir:v "Extensions that cannot be ignored" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:requirements [ fhir:v "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ] ; fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "DomainResource.modifierExtension" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Extension" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "true" ] ; fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] ) ] [ fhir:id [ fhir:v "Composition.url" ] ; fhir:path [ fhir:v "Composition.url" ] ; fhir:short [ fhir:v "Canonical identifier for this Composition, represented as a URI (globally unique)" ] ; fhir:definition [ fhir:v "An absolute URI that is used to identify this Composition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this Composition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the Composition is stored on different servers." ] ; fhir:comment [ fhir:v "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred. Multiple instances may share the same URL if they have a distinct version." ] ; fhir:requirements [ fhir:v "Allows the Composition to be referenced by a single globally unique identifier." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.url" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "uri" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.identifier" ] ] ) ] [ fhir:id [ fhir:v "Composition.identifier" ] ; fhir:path [ fhir:v "Composition.identifier" ] ; fhir:short [ fhir:v "Version-independent identifier for the Composition" ] ; fhir:definition [ fhir:v "A version-independent identifier for the Composition. This identifier stays constant as the composition is changed over time." ] ; fhir:comment [ fhir:v "Similar to ClinicalDocument/setId in CDA. See discussion in resource definition for how these relate." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.identifier" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Identifier" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.identifier" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.identifier" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "Document.id / Document.setId" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".setId" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.identifier" ] ] ) ] [ fhir:id [ fhir:v "Composition.version" ] ; fhir:path [ fhir:v "Composition.version" ] ; fhir:short [ fhir:v "An explicitly assigned identifier of a variation of the content in the Composition" ] ; fhir:definition [ fhir:v "An explicitly assigned identifier of a variation of the content in the Composition." ] ; fhir:comment [ fhir:v "While each resource, including the composition itself, has its own version identifier, this is a formal identifier for the logical version of the Composition as a whole. It would remain constant if the resources were moved to a new server, and all got new individual resource versions, for example." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.version" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "string" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.version" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".versionNumber" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.version" ] ] ) ] [ fhir:id [ fhir:v "Composition.status" ] ; fhir:path [ fhir:v "Composition.status" ] ; fhir:short [ fhir:v "registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown" ] ; fhir:definition [ fhir:v "The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document." ] ; fhir:comment [ fhir:v "If a composition is marked as withdrawn, the compositions/documents in the series, or data from the composition or document series, should never be displayed to a user without being clearly marked as untrustworthy. The flag \"entered-in-error\" is why this element is labeled as a modifier of other elements. \n\nSome reporting work flows require that the original narrative of a final document never be altered; instead, only new narrative can be added. The composition resource has no explicit status for explicitly noting whether this business rule is in effect. This would be handled by an extension if required." ] ; fhir:requirements [ fhir:v "Need to be able to mark interim, amended, or withdrawn compositions or documents." ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.status" ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "code" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "true" ] ; fhir:isModifierReason [ fhir:v "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "CompositionStatus" ] ] ) ; fhir:strength [ fhir:v "required" ] ; fhir:description [ fhir:v "The workflow/clinical status of the composition." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/composition-status|6.0.0-ballot2" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.status" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.status" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "interim: .completionCode=\"IN\" & ./statusCode[isNormalDatatype()]=\"active\"; final: .completionCode=\"AU\" && ./statusCode[isNormalDatatype()]=\"complete\" and not(./inboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()]/source[subsumesCode(\"ActClass#CACT\") and moodCode=\"EVN\" and domainMember(\"ReviseComposition\", code) and isNormalAct()]); amended: .completionCode=\"AU\" && ./statusCode[isNormalDatatype()]=\"complete\" and ./inboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()]/source[subsumesCode(\"ActClass#CACT\") and moodCode=\"EVN\" and domainMember(\"ReviseComposition\", code) and isNormalAct() and statusCode=\"completed\"]; withdrawn : .completionCode=NI && ./statusCode[isNormalDatatype()]=\"obsolete\"" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "n/a" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.docStatus" ] ] ) ] [ fhir:id [ fhir:v "Composition.type" ] ; fhir:path [ fhir:v "Composition.type" ] ; fhir:short [ fhir:v "Kind of composition (LOINC if possible)" ] ; fhir:definition [ fhir:v "Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition." ] ; fhir:comment [ fhir:v "For Composition type, LOINC is ubiquitous and strongly endorsed by HL7. Most implementation guides will require a specific LOINC code, or use LOINC as an extensible binding." ] ; fhir:requirements [ fhir:v "Key metadata element describing the composition, used in searching/filtering." ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.type" ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableConcept" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "DocumentType" ] ] ) ; fhir:strength [ fhir:v "preferred" ] ; fhir:description [ fhir:v "Type of a composition." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/doc-typecodes" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.code" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.class" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./code" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".code" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.type" ] ] ) ] [ fhir:id [ fhir:v "Composition.category" ] ; fhir:path [ fhir:v "Composition.category" ] ; fhir:short [ fhir:v "Categorization of Composition" ] ; fhir:definition [ fhir:v "A categorization for the type of the composition - helps for indexing and searching. This may be implied by or derived from the code specified in the Composition Type." ] ; fhir:requirements [ fhir:v "Helps humans to assess whether the composition is of interest when viewing an index of compositions or documents." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.category" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableConcept" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "DocumentCategory" ] ] ) ; fhir:strength [ fhir:v "example" ] ; fhir:description [ fhir:v "High-level kind of a clinical document at a macro level." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/referenced-item-category" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.class" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "n/a" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumenttReference.category" ] ] ) ] [ fhir:id [ fhir:v "Composition.subject" ] ; fhir:path [ fhir:v "Composition.subject" ] ; fhir:short [ fhir:v "Who and/or what the composition is about" ] ; fhir:definition [ fhir:v "Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure)." ] ; fhir:comment [ fhir:v "For clinical documents, this is usually the patient." ] ; fhir:requirements [ fhir:v "Essential metadata for searching for the composition. Identifies who and/or what the composition/document is about." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.subject" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Resource" ] ) ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.subject" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.subject[x]" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".recordTarget" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.subject" ] ] ) ] [ fhir:id [ fhir:v "Composition.encounter" ] ; fhir:path [ fhir:v "Composition.encounter" ] ; fhir:short [ fhir:v "Context of the Composition" ] ; fhir:definition [ fhir:v "Describes the clinical encounter or type of care this documentation is associated with." ] ; fhir:requirements [ fhir:v "Provides context for the composition and supports searching." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.encounter" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter" ] ) ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.encounter" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.context" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "unique(highest(./outboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()], priorityNumber)/target[moodCode=\"EVN\" and classCode=(\"ENC\", \"PCPR\") and isNormalAct])" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".componentOf.encompassingEncounter" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.context" ] ] ) ] [ fhir:id [ fhir:v "Composition.date" ] ; fhir:path [ fhir:v "Composition.date" ] ; fhir:short [ fhir:v "Composition editing time" ] ; fhir:definition [ fhir:v "The composition editing time, when the composition was last logically changed by the author." ] ; fhir:comment [ fhir:v "The Last Modified Date on the composition may be after the date of the document was attested without being changed. This means that the date on an amended document is the date of the amendment, not the date of original authorship." ] ; fhir:requirements [ fhir:v "dateTime is used for tracking, organizing versions and searching. Note that this is the time of authoring this version of the Composition. When packaged in a document, [Bundle.timestamp](bundle-definitions.html#Bundle.timestamp) is the date of packaging." ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.date" ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "dateTime" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.occurrence[x]" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.done[x]" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".effectiveTime[type=\"TS\"]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".effectiveTime" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.content.attachment.date, DocumentReference.date" ] ] ) ] [ fhir:id [ fhir:v "Composition.useContext" ] ; fhir:path [ fhir:v "Composition.useContext" ] ; fhir:short [ fhir:v "The context that the content is intended to support" ] ; fhir:definition [ fhir:v "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate Composition instances." ] ; fhir:comment [ fhir:v "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply." ] ; fhir:requirements [ fhir:v "Assist in searching for appropriate content." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.useContext" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "UsageContext" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ] [ fhir:id [ fhir:v "Composition.author" ] ; fhir:path [ fhir:v "Composition.author" ] ; fhir:short [ fhir:v "Who and/or what authored the composition" ] ; fhir:definition [ fhir:v "Identifies who is responsible for the information in the composition, not necessarily who typed it in." ] ; fhir:requirements [ fhir:v "Identifies who is responsible for the content." ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.author" ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Device" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Patient" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Organization" ] ) ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.performer" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.author" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".author.assignedAuthor" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.author" ] ] ) ] [ fhir:id [ fhir:v "Composition.name" ] ; fhir:path [ fhir:v "Composition.name" ] ; fhir:short [ fhir:v "Name for this Composition (computer friendly)" ] ; fhir:definition [ fhir:v "A natural language name identifying the {{title}}. This name should be usable as an identifier for the module by machine processing applications such as code generation." ] ; fhir:comment [ fhir:v "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly." ] ; fhir:requirements [ fhir:v "Support human navigation and code generation." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.name" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "string" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ] [ fhir:id [ fhir:v "Composition.title" ] ; fhir:path [ fhir:v "Composition.title" ] ; fhir:short [ fhir:v "Human Readable name/title" ] ; fhir:definition [ fhir:v "Official human-readable label for the composition." ] ; fhir:comment [ fhir:v "For many compositions, the title is the same as the text or a display name of Composition.type (e.g. a \"consultation\" or \"progress note\"). Note that CDA does not make title mandatory, but there are no known cases where it is useful for title to be omitted, so it is mandatory here. Feedback on this requirement is welcome during the trial use period." ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.title" ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "string" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./title" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".title" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.description, DocumentReference.content.attachment.title" ] ] ) ] [ fhir:id [ fhir:v "Composition.note" ] ; fhir:path [ fhir:v "Composition.note" ] ; fhir:short [ fhir:v "For any additional notes" ] ; fhir:definition [ fhir:v "For any additional notes." ] ; fhir:comment [ fhir:v "A comment, general note or annotation not coded elsewhere." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.note" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Annotation" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ] [ fhir:id [ fhir:v "Composition.attester" ] ; fhir:path [ fhir:v "Composition.attester" ] ; fhir:short [ fhir:v "Attests to accuracy of composition" ] ; fhir:definition [ fhir:v "A participant who has attested to the accuracy of the composition/document." ] ; fhir:comment [ fhir:v "Only list each attester once." ] ; fhir:requirements [ fhir:v "Identifies responsibility for the accuracy of the composition content." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.attester" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "BackboneElement" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".participation[typeCode=\"AUTHEN\"].role[classCode=\"ASSIGNED\"]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".authenticator/.legalAuthenticator" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.attester" ] ] ) ] [ fhir:id [ fhir:v "Composition.attester.id" ] ; fhir:path [ fhir:v "Composition.attester.id" ] ; fhir:representation ( [ fhir:v "xmlAttr" ] ) ; fhir:short [ fhir:v "Unique id for inter-element referencing" ] ; fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Element.id" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ; fhir:value [ fhir:v "string" ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String" ] ] ) ; fhir:condition ( [ fhir:v "ele-1" ] ) ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Composition.attester.extension" ] ; fhir:path [ fhir:v "Composition.attester.extension" ] ; fhir:short [ fhir:v "Additional content defined by implementations" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Element.extension" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Extension" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Composition.attester.modifierExtension" ] ; fhir:path [ fhir:v "Composition.attester.modifierExtension" ] ; fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:requirements [ fhir:v "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ] ; fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Extension" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:isModifier [ fhir:v "true" ] ; fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] ) ] [ fhir:id [ fhir:v "Composition.attester.mode" ] ; fhir:path [ fhir:v "Composition.attester.mode" ] ; fhir:short [ fhir:v "personal | professional | legal | official" ] ; fhir:definition [ fhir:v "The type of attestation the authenticator offers." ] ; fhir:requirements [ fhir:v "Indicates the level of authority of the attestation." ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.attester.mode" ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableConcept" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "CompositionAttestationMode" ] ] ) ; fhir:strength [ fhir:v "preferred" ] ; fhir:description [ fhir:v "The way in which a person authenticated a composition." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/composition-attestation-mode" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "unique(./modeCode)" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "implied by .authenticator/.legalAuthenticator" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.attester.mode" ] ] ) ] [ fhir:id [ fhir:v "Composition.attester.time" ] ; fhir:path [ fhir:v "Composition.attester.time" ] ; fhir:short [ fhir:v "When the composition was attested" ] ; fhir:definition [ fhir:v "When the composition was attested by the party." ] ; fhir:requirements [ fhir:v "Identifies when the information in the composition was deemed accurate. (Things may have changed since then.)." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.attester.time" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "dateTime" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./time[type=\"TS\" and isNormalDatatype()]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".authenticator.time" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.attester.time" ] ] ) ] [ fhir:id [ fhir:v "Composition.attester.party" ] ; fhir:path [ fhir:v "Composition.attester.party" ] ; fhir:short [ fhir:v "Who attested the composition" ] ; fhir:definition [ fhir:v "Who attested the composition in the specified way." ] ; fhir:requirements [ fhir:v "Identifies who has taken on the responsibility for accuracy of the composition content." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.attester.party" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Patient" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Organization" ] ) ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.witness" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./role[classCode=\"ASSIGNED\" and isNormalRole]/player[determinerCode=\"INST\" and classCode=(\"DEV\", \"PSN\") and isNormalEntity()] or ./role[classCode=\"ASSIGNED\" and isNormalRole and not(player)]/scoper[determinerCode=\"INST\" and classCode=\"ORG\" and isNormalEntity()]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".authenticator.assignedEnttty" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.attester.party" ] ] ) ] [ fhir:id [ fhir:v "Composition.custodian" ] ; fhir:path [ fhir:v "Composition.custodian" ] ; fhir:short [ fhir:v "Organization which maintains the composition" ] ; fhir:definition [ fhir:v "Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information." ] ; fhir:comment [ fhir:v "This is useful when documents are derived from a composition - provides guidance for how to get the latest version of the document. This is optional because this is sometimes not known by the authoring system, and can be inferred by context. However, it is important that this information be known when working with a derived document, so providing a custodian is encouraged." ] ; fhir:requirements [ fhir:v "Identifies where to go to find the current version, where to report issues, etc." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.custodian" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Organization" ] ) ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".participation[typeCode=\"RCV\"].role[classCode=\"CUST\"].scoper[classCode=\"ORG\" and determinerCode=\"INST\"]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".custodian.assignedCustodian" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.custodian" ] ] ) ] [ fhir:id [ fhir:v "Composition.relatesTo" ] ; fhir:path [ fhir:v "Composition.relatesTo" ] ; fhir:short [ fhir:v "Relationships to other compositions/documents" ] ; fhir:definition [ fhir:v "Relationships that this composition has with other compositions or documents that already exist." ] ; fhir:comment [ fhir:v "To reference (using relatesTo) a Bundle of type \"document\" or another Composition where you only have the identifier, use a resourceReference with an identifier.\\\nWhen a Composition is an alternate representation of another type of document e.g. CDA, the other document could be referenced in a DocumentReference resource. \nHere is an example of using relatesTo to reference another Bundle of type \"document\" or Composition where you only have the identifier:\n```\n\"relatesTo\": [{\n \"type\": \"replaces\",\n \"resourceReference\": {\n \"identifier\": { \n \"system\": \"...\", \n \"value\": \"...\"\n }\n } \n}]\n```" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.relatesTo" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "RelatedArtifact" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".outboundRelationship" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".relatedDocument" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.relatesTo" ] ] ) ] [ fhir:id [ fhir:v "Composition.event" ] ; fhir:path [ fhir:v "Composition.event" ] ; fhir:short [ fhir:v "The clinical service(s) being documented" ] ; fhir:definition [ fhir:v "The clinical service, such as a colonoscopy or an appendectomy, being documented." ] ; fhir:comment [ fhir:v "The event needs to be consistent with the type element, though can provide further information if desired." ] ; fhir:requirements [ fhir:v "Provides context for the composition and creates a linkage between a resource describing an event and the composition created describing the event." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.event" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "BackboneElement" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "outboundRelationship[typeCode=\"SUBJ\"].target[classCode<'ACT']" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".documentationOf.serviceEvent" ] ] ) ] [ fhir:id [ fhir:v "Composition.event.id" ] ; fhir:path [ fhir:v "Composition.event.id" ] ; fhir:representation ( [ fhir:v "xmlAttr" ] ) ; fhir:short [ fhir:v "Unique id for inter-element referencing" ] ; fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Element.id" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ; fhir:value [ fhir:v "string" ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String" ] ] ) ; fhir:condition ( [ fhir:v "ele-1" ] ) ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Composition.event.extension" ] ; fhir:path [ fhir:v "Composition.event.extension" ] ; fhir:short [ fhir:v "Additional content defined by implementations" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Element.extension" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Extension" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Composition.event.modifierExtension" ] ; fhir:path [ fhir:v "Composition.event.modifierExtension" ] ; fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:requirements [ fhir:v "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ] ; fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Extension" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:isModifier [ fhir:v "true" ] ; fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] ) ] [ fhir:id [ fhir:v "Composition.event.period" ] ; fhir:path [ fhir:v "Composition.event.period" ] ; fhir:short [ fhir:v "The period covered by the documentation" ] ; fhir:definition [ fhir:v "The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.event.period" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Period" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".effectiveTime" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".effectiveTime" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.period" ] ] ) ] [ fhir:id [ fhir:v "Composition.event.detail" ] ; fhir:path [ fhir:v "Composition.event.detail" ] ; fhir:short [ fhir:v "The event(s) being documented, as code(s), reference(s), or both" ] ; fhir:definition [ fhir:v "Represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which case the procedure being documented is necessarily a \"History and Physical\" act. The events may be included as a code or as a reference to an other resource." ] ; fhir:comment [ fhir:v "An event can further specialize the act inherent in the typeCode, such as where it is simply \"Procedure Report\" and the procedure was a \"colonoscopy\". If one or more events are included, they SHALL NOT conflict with the values inherent in the classCode, practiceSettingCode or typeCode, as such a conflict would create an ambiguous situation. This short list of codes is provided to be used as key words for certain types of queries." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.event.detail" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableReference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Resource" ] ) ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "DocumentEventType" ] ] ) ; fhir:strength [ fhir:v "example" ] ; fhir:description [ fhir:v "This list of codes represents the main clinical acts being documented." ] ; fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/v3-ActCode" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".outboundRelationship[typeCode=\"SUBJ\"].target" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "n/a" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.event" ] ] ) ] [ fhir:id [ fhir:v "Composition.section" ] ; fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name" ] ; fhir:value [ fhir:v "Section" ] ] ) ; fhir:path [ fhir:v "Composition.section" ] ; fhir:short [ fhir:v "Composition is broken into sections" ] ; fhir:definition [ fhir:v "The root of the sections that make up the composition." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.section" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "BackboneElement" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "cmp-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "A section must contain at least one of text, entries, or sub-sections" ] ; fhir:expression [ fhir:v "text.exists() or entry.exists() or section.exists()" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Composition" ] ] [ fhir:key [ fhir:v "cmp-2" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "A section can only have an emptyReason if it is empty" ] ; fhir:expression [ fhir:v "emptyReason.empty() or entry.empty()" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Composition" ] ] [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".component.structuredBody.component.section" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.id" ] ; fhir:path [ fhir:v "Composition.section.id" ] ; fhir:representation ( [ fhir:v "xmlAttr" ] ) ; fhir:short [ fhir:v "Unique id for inter-element referencing" ] ; fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Element.id" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ; fhir:value [ fhir:v "string" ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String" ] ] ) ; fhir:condition ( [ fhir:v "ele-1" ] ) ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.extension" ] ; fhir:path [ fhir:v "Composition.section.extension" ] ; fhir:short [ fhir:v "Additional content defined by implementations" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Element.extension" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Extension" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.modifierExtension" ] ; fhir:path [ fhir:v "Composition.section.modifierExtension" ] ; fhir:short [ fhir:v "Extensions that cannot be ignored even if unrecognized" ] ; fhir:definition [ fhir:v "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ] ; fhir:comment [ fhir:v "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ] ; fhir:requirements [ fhir:v "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ] ; fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] [ fhir:v "modifiers" ] ) ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "BackboneElement.modifierExtension" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Extension" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:isModifier [ fhir:v "true" ] ; fhir:isModifierReason [ fhir:v "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "N/A" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.title" ] ; fhir:path [ fhir:v "Composition.section.title" ] ; fhir:short [ fhir:v "Label for section (e.g. for ToC)" ] ; fhir:definition [ fhir:v "The label for this particular section. This will be part of the rendered content for the document, and is often used to build a table of contents." ] ; fhir:comment [ fhir:v "The title identifies the section for a human reader. The title must be consistent with the narrative of the resource that is the target of the section.content reference. Generally, sections SHOULD have titles, but in some documents, it is unnecessary or inappropriate. Typically, this is where a section has subsections that have their own adequately distinguishing title, or documents that only have a single section. Most Implementation Guides will make section title to be a required element." ] ; fhir:requirements [ fhir:v "Section headings are often standardized for different types of documents. They give guidance to humans on how the document is organized." ] ; fhir:alias ( [ fhir:v "header" ] [ fhir:v "label" ] [ fhir:v "caption" ] ) ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.section.title" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "string" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./title" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".title" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.code" ] ; fhir:path [ fhir:v "Composition.section.code" ] ; fhir:short [ fhir:v "Classification of section (recommended)" ] ; fhir:definition [ fhir:v "A code identifying the kind of content contained within the section. This must be consistent with the section title." ] ; fhir:comment [ fhir:v "The code identifies the section for an automated processor of the document. This is particularly relevant when using profiles to control the structure of the document. \n\nIf the section has content (instead of sub-sections), the section.code does not change the meaning or interpretation of the resource that is the content of the section in the comments for the section.code." ] ; fhir:requirements [ fhir:v "Provides computable standardized labels to topics within the document." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.section.code" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableConcept" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "CompositionSectionType" ] ] ) ; fhir:strength [ fhir:v "example" ] ; fhir:description [ fhir:v "Classification of a section of a composition/document." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/doc-section-codes" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./code" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".code" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.author" ] ; fhir:path [ fhir:v "Composition.section.author" ] ; fhir:short [ fhir:v "Who and/or what authored the section" ] ; fhir:definition [ fhir:v "Identifies who is responsible for the information in this section, not necessarily who typed it in." ] ; fhir:requirements [ fhir:v "Identifies who is responsible for the content." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.section.author" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Device" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Patient" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Organization" ] ) ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.author" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".author.assignedAuthor" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.focus" ] ; fhir:path [ fhir:v "Composition.section.focus" ] ; fhir:short [ fhir:v "Who/what the section is about, when it is not about the subject of composition" ] ; fhir:definition [ fhir:v "The actual focus of the section when it is not the subject of the composition, but instead represents something or someone associated with the subject such as (for a patient subject) a spouse, parent, fetus, or donor. If not focus is specified, the focus is assumed to be focus of the parent section, or, for a section in the Composition itself, the subject of the composition. Sections with a focus SHALL only include resources where the logical subject (patient, subject, focus, etc.) matches the section focus, or the resources have no logical subject (few resources)." ] ; fhir:comment [ fhir:v "Typically, sections in a doument are about the subject of the document, whether that is a patient, or group of patients, location, or device, or whatever. For some kind of documents, some sections actually contain data about related entities. Typical examples are a section in a newborn discharge summary concerning the mother, or family history documents, with a section about each family member, though there are many other examples." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.section.focus" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Resource" ] ) ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".subject? (CDA did not differentiate between subject and focus)" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.text" ] ; fhir:path [ fhir:v "Composition.section.text" ] ; fhir:short [ fhir:v "Text summary of the section, for human interpretation" ] ; fhir:definition [ fhir:v "A human-readable narrative that contains the attested content of the section, used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative." ] ; fhir:comment [ fhir:v "Document profiles may define what content should be represented in the narrative to ensure clinical safety." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.section.text" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Narrative" ] ] ) ; fhir:condition ( [ fhir:v "cmp-1" ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".text" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".text" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.orderedBy" ] ; fhir:path [ fhir:v "Composition.section.orderedBy" ] ; fhir:short [ fhir:v "Order of section entries" ] ; fhir:definition [ fhir:v "Specifies the order applied to the items in the section entries." ] ; fhir:comment [ fhir:v "Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order." ] ; fhir:requirements [ fhir:v "Important for presentation and rendering. Lists may be sorted to place more important information first or to group related entries." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.section.orderedBy" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableConcept" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "SectionEntryOrder" ] ] ) ; fhir:strength [ fhir:v "preferred" ] ; fhir:description [ fhir:v "What order applies to the items in the entry." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/list-order" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".outboundRelationship[typeCode=COMP].sequenceNumber > 1" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.entry" ] ; fhir:path [ fhir:v "Composition.section.entry" ] ; fhir:short [ fhir:v "A reference to data that supports this section" ] ; fhir:definition [ fhir:v "A reference to the actual resource from which the narrative in the section is derived." ] ; fhir:comment [ fhir:v "If there are no entries in the list, an emptyReason SHOULD be provided." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.section.entry" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Resource" ] ) ] ) ; fhir:condition ( [ fhir:v "cmp-1" ] [ fhir:v "cmp-2" ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".entry" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.emptyReason" ] ; fhir:path [ fhir:v "Composition.section.emptyReason" ] ; fhir:short [ fhir:v "Why the section is empty" ] ; fhir:definition [ fhir:v "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason." ] ; fhir:comment [ fhir:v "The various reasons for an empty section make a significant interpretation to its interpretation. Note that this code is for use when the entire section content has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases." ] ; fhir:requirements [ fhir:v "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Composition.section.emptyReason" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableConcept" ] ] ) ; fhir:condition ( [ fhir:v "cmp-2" ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "SectionEmptyReason" ] ] ) ; fhir:strength [ fhir:v "preferred" ] ; fhir:description [ fhir:v "If a section is empty, why it is empty." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/list-empty-reason" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.section" ] ; fhir:path [ fhir:v "Composition.section.section" ] ; fhir:short [ fhir:v "Nested Section" ] ; fhir:definition [ fhir:v "A nested sub-section within this section." ] ; fhir:comment [ fhir:v "Nested sections are primarily used to help human readers navigate to particular portions of the document." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Composition.section.section" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:contentReference [ fhir:v "#Composition.section" ] ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".component.section" ] ] ) ] ) ] ; fhir:differential [ fhir:element ( [ fhir:id [ fhir:v "Composition" ] ; fhir:path [ fhir:v "Composition" ] ; fhir:short [ fhir:v "A set of resources composed into a single coherent clinical statement with clinical attestation" ] ; fhir:definition [ fhir:v "A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.)." ] ; fhir:comment [ fhir:v "While the focus of this specification is on patient-specific clinical statements, this resource can also apply to other healthcare-related statements such as study protocol designs, healthcare invoices and other activities that are not necessarily patient-specific or clinical." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "infrastructure.documents" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "Document[classCode=\"DOC\" and moodCode=\"EVN\" and isNormalAct()]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "ClinicalDocument" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "when described by DocumentReference" ] ] ) ] [ fhir:id [ fhir:v "Composition.url" ] ; fhir:path [ fhir:v "Composition.url" ] ; fhir:short [ fhir:v "Canonical identifier for this Composition, represented as a URI (globally unique)" ] ; fhir:definition [ fhir:v "An absolute URI that is used to identify this Composition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this Composition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the Composition is stored on different servers." ] ; fhir:comment [ fhir:v "Can be a urn:uuid: or a urn:oid: but real http: addresses are preferred. Multiple instances may share the same URL if they have a distinct version." ] ; fhir:requirements [ fhir:v "Allows the Composition to be referenced by a single globally unique identifier." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "uri" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.identifier" ] ] ) ] [ fhir:id [ fhir:v "Composition.identifier" ] ; fhir:path [ fhir:v "Composition.identifier" ] ; fhir:short [ fhir:v "Version-independent identifier for the Composition" ] ; fhir:definition [ fhir:v "A version-independent identifier for the Composition. This identifier stays constant as the composition is changed over time." ] ; fhir:comment [ fhir:v "Similar to ClinicalDocument/setId in CDA. See discussion in resource definition for how these relate." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:type ( [ fhir:code [ fhir:v "Identifier" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.identifier" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.identifier" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "Document.id / Document.setId" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".setId" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.identifier" ] ] ) ] [ fhir:id [ fhir:v "Composition.version" ] ; fhir:path [ fhir:v "Composition.version" ] ; fhir:short [ fhir:v "An explicitly assigned identifier of a variation of the content in the Composition" ] ; fhir:definition [ fhir:v "An explicitly assigned identifier of a variation of the content in the Composition." ] ; fhir:comment [ fhir:v "While each resource, including the composition itself, has its own version identifier, this is a formal identifier for the logical version of the Composition as a whole. It would remain constant if the resources were moved to a new server, and all got new individual resource versions, for example." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "string" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.version" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".versionNumber" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.version" ] ] ) ] [ fhir:id [ fhir:v "Composition.status" ] ; fhir:path [ fhir:v "Composition.status" ] ; fhir:short [ fhir:v "registered | partial | preliminary | final | amended | corrected | appended | cancelled | entered-in-error | deprecated | unknown" ] ; fhir:definition [ fhir:v "The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document." ] ; fhir:comment [ fhir:v "If a composition is marked as withdrawn, the compositions/documents in the series, or data from the composition or document series, should never be displayed to a user without being clearly marked as untrustworthy. The flag \"entered-in-error\" is why this element is labeled as a modifier of other elements. \n\nSome reporting work flows require that the original narrative of a final document never be altered; instead, only new narrative can be added. The composition resource has no explicit status for explicitly noting whether this business rule is in effect. This would be handled by an extension if required." ] ; fhir:requirements [ fhir:v "Need to be able to mark interim, amended, or withdrawn compositions or documents." ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "code" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "true" ] ; fhir:isModifierReason [ fhir:v "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "CompositionStatus" ] ] ) ; fhir:strength [ fhir:v "required" ] ; fhir:description [ fhir:v "The workflow/clinical status of the composition." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/composition-status|6.0.0-ballot2" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.status" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.status" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "interim: .completionCode=\"IN\" & ./statusCode[isNormalDatatype()]=\"active\"; final: .completionCode=\"AU\" && ./statusCode[isNormalDatatype()]=\"complete\" and not(./inboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()]/source[subsumesCode(\"ActClass#CACT\") and moodCode=\"EVN\" and domainMember(\"ReviseComposition\", code) and isNormalAct()]); amended: .completionCode=\"AU\" && ./statusCode[isNormalDatatype()]=\"complete\" and ./inboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()]/source[subsumesCode(\"ActClass#CACT\") and moodCode=\"EVN\" and domainMember(\"ReviseComposition\", code) and isNormalAct() and statusCode=\"completed\"]; withdrawn : .completionCode=NI && ./statusCode[isNormalDatatype()]=\"obsolete\"" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "n/a" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.docStatus" ] ] ) ] [ fhir:id [ fhir:v "Composition.type" ] ; fhir:path [ fhir:v "Composition.type" ] ; fhir:short [ fhir:v "Kind of composition (LOINC if possible)" ] ; fhir:definition [ fhir:v "Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition." ] ; fhir:comment [ fhir:v "For Composition type, LOINC is ubiquitous and strongly endorsed by HL7. Most implementation guides will require a specific LOINC code, or use LOINC as an extensible binding." ] ; fhir:requirements [ fhir:v "Key metadata element describing the composition, used in searching/filtering." ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableConcept" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "DocumentType" ] ] ) ; fhir:strength [ fhir:v "preferred" ] ; fhir:description [ fhir:v "Type of a composition." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/doc-typecodes" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.code" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.class" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./code" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".code" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.type" ] ] ) ] [ fhir:id [ fhir:v "Composition.category" ] ; fhir:path [ fhir:v "Composition.category" ] ; fhir:short [ fhir:v "Categorization of Composition" ] ; fhir:definition [ fhir:v "A categorization for the type of the composition - helps for indexing and searching. This may be implied by or derived from the code specified in the Composition Type." ] ; fhir:requirements [ fhir:v "Helps humans to assess whether the composition is of interest when viewing an index of compositions or documents." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableConcept" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "DocumentCategory" ] ] ) ; fhir:strength [ fhir:v "example" ] ; fhir:description [ fhir:v "High-level kind of a clinical document at a macro level." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/referenced-item-category" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.class" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "n/a" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumenttReference.category" ] ] ) ] [ fhir:id [ fhir:v "Composition.subject" ] ; fhir:path [ fhir:v "Composition.subject" ] ; fhir:short [ fhir:v "Who and/or what the composition is about" ] ; fhir:definition [ fhir:v "Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure)." ] ; fhir:comment [ fhir:v "For clinical documents, this is usually the patient." ] ; fhir:requirements [ fhir:v "Essential metadata for searching for the composition. Identifies who and/or what the composition/document is about." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Resource" ] ) ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.subject" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.subject[x]" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".recordTarget" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.subject" ] ] ) ] [ fhir:id [ fhir:v "Composition.encounter" ] ; fhir:path [ fhir:v "Composition.encounter" ] ; fhir:short [ fhir:v "Context of the Composition" ] ; fhir:definition [ fhir:v "Describes the clinical encounter or type of care this documentation is associated with." ] ; fhir:requirements [ fhir:v "Provides context for the composition and supports searching." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter" ] ) ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.encounter" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.context" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "unique(highest(./outboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()], priorityNumber)/target[moodCode=\"EVN\" and classCode=(\"ENC\", \"PCPR\") and isNormalAct])" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".componentOf.encompassingEncounter" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.context" ] ] ) ] [ fhir:id [ fhir:v "Composition.date" ] ; fhir:path [ fhir:v "Composition.date" ] ; fhir:short [ fhir:v "Composition editing time" ] ; fhir:definition [ fhir:v "The composition editing time, when the composition was last logically changed by the author." ] ; fhir:comment [ fhir:v "The Last Modified Date on the composition may be after the date of the document was attested without being changed. This means that the date on an amended document is the date of the amendment, not the date of original authorship." ] ; fhir:requirements [ fhir:v "dateTime is used for tracking, organizing versions and searching. Note that this is the time of authoring this version of the Composition. When packaged in a document, [Bundle.timestamp](bundle-definitions.html#Bundle.timestamp) is the date of packaging." ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "dateTime" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.occurrence[x]" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.done[x]" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".effectiveTime[type=\"TS\"]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".effectiveTime" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.content.attachment.date, DocumentReference.date" ] ] ) ] [ fhir:id [ fhir:v "Composition.useContext" ] ; fhir:path [ fhir:v "Composition.useContext" ] ; fhir:short [ fhir:v "The context that the content is intended to support" ] ; fhir:definition [ fhir:v "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate Composition instances." ] ; fhir:comment [ fhir:v "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply." ] ; fhir:requirements [ fhir:v "Assist in searching for appropriate content." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:type ( [ fhir:code [ fhir:v "UsageContext" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ] [ fhir:id [ fhir:v "Composition.author" ] ; fhir:path [ fhir:v "Composition.author" ] ; fhir:short [ fhir:v "Who and/or what authored the composition" ] ; fhir:definition [ fhir:v "Identifies who is responsible for the information in the composition, not necessarily who typed it in." ] ; fhir:requirements [ fhir:v "Identifies who is responsible for the content." ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "*" ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Device" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Patient" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Organization" ] ) ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "workflow" ] ; fhir:map [ fhir:v "Event.performer" ] ] [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.author" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".author.assignedAuthor" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.author" ] ] ) ] [ fhir:id [ fhir:v "Composition.name" ] ; fhir:path [ fhir:v "Composition.name" ] ; fhir:short [ fhir:v "Name for this Composition (computer friendly)" ] ; fhir:definition [ fhir:v "A natural language name identifying the {{title}}. This name should be usable as an identifier for the module by machine processing applications such as code generation." ] ; fhir:comment [ fhir:v "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly." ] ; fhir:requirements [ fhir:v "Support human navigation and code generation." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "string" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ] [ fhir:id [ fhir:v "Composition.title" ] ; fhir:path [ fhir:v "Composition.title" ] ; fhir:short [ fhir:v "Human Readable name/title" ] ; fhir:definition [ fhir:v "Official human-readable label for the composition." ] ; fhir:comment [ fhir:v "For many compositions, the title is the same as the text or a display name of Composition.type (e.g. a \"consultation\" or \"progress note\"). Note that CDA does not make title mandatory, but there are no known cases where it is useful for title to be omitted, so it is mandatory here. Feedback on this requirement is welcome during the trial use period." ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "string" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./title" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".title" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.description, DocumentReference.content.attachment.title" ] ] ) ] [ fhir:id [ fhir:v "Composition.note" ] ; fhir:path [ fhir:v "Composition.note" ] ; fhir:short [ fhir:v "For any additional notes" ] ; fhir:definition [ fhir:v "For any additional notes." ] ; fhir:comment [ fhir:v "A comment, general note or annotation not coded elsewhere." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:type ( [ fhir:code [ fhir:v "Annotation" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ] [ fhir:id [ fhir:v "Composition.attester" ] ; fhir:path [ fhir:v "Composition.attester" ] ; fhir:short [ fhir:v "Attests to accuracy of composition" ] ; fhir:definition [ fhir:v "A participant who has attested to the accuracy of the composition/document." ] ; fhir:comment [ fhir:v "Only list each attester once." ] ; fhir:requirements [ fhir:v "Identifies responsibility for the accuracy of the composition content." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:type ( [ fhir:code [ fhir:v "BackboneElement" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".participation[typeCode=\"AUTHEN\"].role[classCode=\"ASSIGNED\"]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".authenticator/.legalAuthenticator" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.attester" ] ] ) ] [ fhir:id [ fhir:v "Composition.attester.mode" ] ; fhir:path [ fhir:v "Composition.attester.mode" ] ; fhir:short [ fhir:v "personal | professional | legal | official" ] ; fhir:definition [ fhir:v "The type of attestation the authenticator offers." ] ; fhir:requirements [ fhir:v "Indicates the level of authority of the attestation." ] ; fhir:min [ fhir:v "1" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableConcept" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "CompositionAttestationMode" ] ] ) ; fhir:strength [ fhir:v "preferred" ] ; fhir:description [ fhir:v "The way in which a person authenticated a composition." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/composition-attestation-mode" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "unique(./modeCode)" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "implied by .authenticator/.legalAuthenticator" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.attester.mode" ] ] ) ] [ fhir:id [ fhir:v "Composition.attester.time" ] ; fhir:path [ fhir:v "Composition.attester.time" ] ; fhir:short [ fhir:v "When the composition was attested" ] ; fhir:definition [ fhir:v "When the composition was attested by the party." ] ; fhir:requirements [ fhir:v "Identifies when the information in the composition was deemed accurate. (Things may have changed since then.)." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "dateTime" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./time[type=\"TS\" and isNormalDatatype()]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".authenticator.time" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.attester.time" ] ] ) ] [ fhir:id [ fhir:v "Composition.attester.party" ] ; fhir:path [ fhir:v "Composition.attester.party" ] ; fhir:short [ fhir:v "Who attested the composition" ] ; fhir:definition [ fhir:v "Who attested the composition in the specified way." ] ; fhir:requirements [ fhir:v "Identifies who has taken on the responsibility for accuracy of the composition content." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Patient" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Organization" ] ) ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.witness" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./role[classCode=\"ASSIGNED\" and isNormalRole]/player[determinerCode=\"INST\" and classCode=(\"DEV\", \"PSN\") and isNormalEntity()] or ./role[classCode=\"ASSIGNED\" and isNormalRole and not(player)]/scoper[determinerCode=\"INST\" and classCode=\"ORG\" and isNormalEntity()]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".authenticator.assignedEnttty" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.attester.party" ] ] ) ] [ fhir:id [ fhir:v "Composition.custodian" ] ; fhir:path [ fhir:v "Composition.custodian" ] ; fhir:short [ fhir:v "Organization which maintains the composition" ] ; fhir:definition [ fhir:v "Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information." ] ; fhir:comment [ fhir:v "This is useful when documents are derived from a composition - provides guidance for how to get the latest version of the document. This is optional because this is sometimes not known by the authoring system, and can be inferred by context. However, it is important that this information be known when working with a derived document, so providing a custodian is encouraged." ] ; fhir:requirements [ fhir:v "Identifies where to go to find the current version, where to report issues, etc." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Organization" ] ) ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".participation[typeCode=\"RCV\"].role[classCode=\"CUST\"].scoper[classCode=\"ORG\" and determinerCode=\"INST\"]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".custodian.assignedCustodian" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.custodian" ] ] ) ] [ fhir:id [ fhir:v "Composition.relatesTo" ] ; fhir:path [ fhir:v "Composition.relatesTo" ] ; fhir:short [ fhir:v "Relationships to other compositions/documents" ] ; fhir:definition [ fhir:v "Relationships that this composition has with other compositions or documents that already exist." ] ; fhir:comment [ fhir:v "To reference (using relatesTo) a Bundle of type \"document\" or another Composition where you only have the identifier, use a resourceReference with an identifier.\\\nWhen a Composition is an alternate representation of another type of document e.g. CDA, the other document could be referenced in a DocumentReference resource. \nHere is an example of using relatesTo to reference another Bundle of type \"document\" or Composition where you only have the identifier:\n```\n\"relatesTo\": [{\n \"type\": \"replaces\",\n \"resourceReference\": {\n \"identifier\": { \n \"system\": \"...\", \n \"value\": \"...\"\n }\n } \n}]\n```" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:type ( [ fhir:code [ fhir:v "RelatedArtifact" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".outboundRelationship" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".relatedDocument" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.relatesTo" ] ] ) ] [ fhir:id [ fhir:v "Composition.event" ] ; fhir:path [ fhir:v "Composition.event" ] ; fhir:short [ fhir:v "The clinical service(s) being documented" ] ; fhir:definition [ fhir:v "The clinical service, such as a colonoscopy or an appendectomy, being documented." ] ; fhir:comment [ fhir:v "The event needs to be consistent with the type element, though can provide further information if desired." ] ; fhir:requirements [ fhir:v "Provides context for the composition and creates a linkage between a resource describing an event and the composition created describing the event." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:type ( [ fhir:code [ fhir:v "BackboneElement" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "outboundRelationship[typeCode=\"SUBJ\"].target[classCode<'ACT']" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".documentationOf.serviceEvent" ] ] ) ] [ fhir:id [ fhir:v "Composition.event.period" ] ; fhir:path [ fhir:v "Composition.event.period" ] ; fhir:short [ fhir:v "The period covered by the documentation" ] ; fhir:definition [ fhir:v "The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "Period" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".effectiveTime" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".effectiveTime" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.period" ] ] ) ] [ fhir:id [ fhir:v "Composition.event.detail" ] ; fhir:path [ fhir:v "Composition.event.detail" ] ; fhir:short [ fhir:v "The event(s) being documented, as code(s), reference(s), or both" ] ; fhir:definition [ fhir:v "Represents the main clinical acts, such as a colonoscopy or an appendectomy, being documented. In some cases, the event is inherent in the typeCode, such as a \"History and Physical Report\" in which case the procedure being documented is necessarily a \"History and Physical\" act. The events may be included as a code or as a reference to an other resource." ] ; fhir:comment [ fhir:v "An event can further specialize the act inherent in the typeCode, such as where it is simply \"Procedure Report\" and the procedure was a \"colonoscopy\". If one or more events are included, they SHALL NOT conflict with the values inherent in the classCode, practiceSettingCode or typeCode, as such a conflict would create an ambiguous situation. This short list of codes is provided to be used as key words for certain types of queries." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableReference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Resource" ] ) ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "true" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "DocumentEventType" ] ] ) ; fhir:strength [ fhir:v "example" ] ; fhir:description [ fhir:v "This list of codes represents the main clinical acts being documented." ] ; fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/v3-ActCode" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".outboundRelationship[typeCode=\"SUBJ\"].target" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "n/a" ] ] [ fhir:identity [ fhir:v "fhirdocumentreference" ] ; fhir:map [ fhir:v "DocumentReference.event" ] ] ) ] [ fhir:id [ fhir:v "Composition.section" ] ; fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name" ] ; fhir:value [ fhir:v "Section" ] ] ) ; fhir:path [ fhir:v "Composition.section" ] ; fhir:short [ fhir:v "Composition is broken into sections" ] ; fhir:definition [ fhir:v "The root of the sections that make up the composition." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:type ( [ fhir:code [ fhir:v "BackboneElement" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "cmp-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "A section must contain at least one of text, entries, or sub-sections" ] ; fhir:expression [ fhir:v "text.exists() or entry.exists() or section.exists()" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Composition" ] ] [ fhir:key [ fhir:v "cmp-2" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "A section can only have an emptyReason if it is empty" ] ; fhir:expression [ fhir:v "emptyReason.empty() or entry.empty()" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Composition" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".component.structuredBody.component.section" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.title" ] ; fhir:path [ fhir:v "Composition.section.title" ] ; fhir:short [ fhir:v "Label for section (e.g. for ToC)" ] ; fhir:definition [ fhir:v "The label for this particular section. This will be part of the rendered content for the document, and is often used to build a table of contents." ] ; fhir:comment [ fhir:v "The title identifies the section for a human reader. The title must be consistent with the narrative of the resource that is the target of the section.content reference. Generally, sections SHOULD have titles, but in some documents, it is unnecessary or inappropriate. Typically, this is where a section has subsections that have their own adequately distinguishing title, or documents that only have a single section. Most Implementation Guides will make section title to be a required element." ] ; fhir:requirements [ fhir:v "Section headings are often standardized for different types of documents. They give guidance to humans on how the document is organized." ] ; fhir:alias ( [ fhir:v "header" ] [ fhir:v "label" ] [ fhir:v "caption" ] ) ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "string" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./title" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".title" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.code" ] ; fhir:path [ fhir:v "Composition.section.code" ] ; fhir:short [ fhir:v "Classification of section (recommended)" ] ; fhir:definition [ fhir:v "A code identifying the kind of content contained within the section. This must be consistent with the section title." ] ; fhir:comment [ fhir:v "The code identifies the section for an automated processor of the document. This is particularly relevant when using profiles to control the structure of the document. \n\nIf the section has content (instead of sub-sections), the section.code does not change the meaning or interpretation of the resource that is the content of the section in the comments for the section.code." ] ; fhir:requirements [ fhir:v "Provides computable standardized labels to topics within the document." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableConcept" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "CompositionSectionType" ] ] ) ; fhir:strength [ fhir:v "example" ] ; fhir:description [ fhir:v "Classification of a section of a composition/document." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/doc-section-codes" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./code" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".code" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.author" ] ; fhir:path [ fhir:v "Composition.section.author" ] ; fhir:short [ fhir:v "Who and/or what authored the section" ] ; fhir:definition [ fhir:v "Identifies who is responsible for the information in this section, not necessarily who typed it in." ] ; fhir:requirements [ fhir:v "Identifies who is responsible for the content." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Practitioner" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/PractitionerRole" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Device" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Patient" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ] [ fhir:v "http://hl7.org/fhir/StructureDefinition/Organization" ] ) ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "w5" ] ; fhir:map [ fhir:v "FiveWs.author" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".author.assignedAuthor" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.focus" ] ; fhir:path [ fhir:v "Composition.section.focus" ] ; fhir:short [ fhir:v "Who/what the section is about, when it is not about the subject of composition" ] ; fhir:definition [ fhir:v "The actual focus of the section when it is not the subject of the composition, but instead represents something or someone associated with the subject such as (for a patient subject) a spouse, parent, fetus, or donor. If not focus is specified, the focus is assumed to be focus of the parent section, or, for a section in the Composition itself, the subject of the composition. Sections with a focus SHALL only include resources where the logical subject (patient, subject, focus, etc.) matches the section focus, or the resources have no logical subject (few resources)." ] ; fhir:comment [ fhir:v "Typically, sections in a doument are about the subject of the document, whether that is a patient, or group of patients, location, or device, or whatever. For some kind of documents, some sections actually contain data about related entities. Typical examples are a section in a newborn discharge summary concerning the mother, or family history documents, with a section about each family member, though there are many other examples." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Resource" ] ) ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".subject? (CDA did not differentiate between subject and focus)" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.text" ] ; fhir:path [ fhir:v "Composition.section.text" ] ; fhir:short [ fhir:v "Text summary of the section, for human interpretation" ] ; fhir:definition [ fhir:v "A human-readable narrative that contains the attested content of the section, used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative." ] ; fhir:comment [ fhir:v "Document profiles may define what content should be represented in the narrative to ensure clinical safety." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "Narrative" ] ] ) ; fhir:condition ( [ fhir:v "cmp-1" ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".text" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".text" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.orderedBy" ] ; fhir:path [ fhir:v "Composition.section.orderedBy" ] ; fhir:short [ fhir:v "Order of section entries" ] ; fhir:definition [ fhir:v "Specifies the order applied to the items in the section entries." ] ; fhir:comment [ fhir:v "Applications SHOULD render ordered lists in the order provided, but MAY allow users to re-order based on their own preferences as well. If there is no order specified, the order is unknown, though there may still be some order." ] ; fhir:requirements [ fhir:v "Important for presentation and rendering. Lists may be sorted to place more important information first or to group related entries." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableConcept" ] ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "SectionEntryOrder" ] ] ) ; fhir:strength [ fhir:v "preferred" ] ; fhir:description [ fhir:v "What order applies to the items in the entry." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/list-order" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".outboundRelationship[typeCode=COMP].sequenceNumber > 1" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.entry" ] ; fhir:path [ fhir:v "Composition.section.entry" ] ; fhir:short [ fhir:v "A reference to data that supports this section" ] ; fhir:definition [ fhir:v "A reference to the actual resource from which the narrative in the section is derived." ] ; fhir:comment [ fhir:v "If there are no entries in the list, an emptyReason SHOULD be provided." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:type ( [ fhir:code [ fhir:v "Reference" ] ; fhir:targetProfile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/Resource" ] ) ] ) ; fhir:condition ( [ fhir:v "cmp-1" ] [ fhir:v "cmp-2" ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".outboundRelationship[typeCode=COMP] or .participation[typeCode=SBJ]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".entry" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.emptyReason" ] ; fhir:path [ fhir:v "Composition.section.emptyReason" ] ; fhir:short [ fhir:v "Why the section is empty" ] ; fhir:definition [ fhir:v "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason." ] ; fhir:comment [ fhir:v "The various reasons for an empty section make a significant interpretation to its interpretation. Note that this code is for use when the entire section content has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases." ] ; fhir:requirements [ fhir:v "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "CodeableConcept" ] ] ) ; fhir:condition ( [ fhir:v "cmp-2" ] ) ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:binding [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ] ; fhir:value [ fhir:v "SectionEmptyReason" ] ] ) ; fhir:strength [ fhir:v "preferred" ] ; fhir:description [ fhir:v "If a section is empty, why it is empty." ] ; fhir:valueSet [ fhir:v "http://hl7.org/fhir/ValueSet/list-empty-reason" ] ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "Composition.section.section" ] ; fhir:path [ fhir:v "Composition.section.section" ] ; fhir:short [ fhir:v "Nested Section" ] ; fhir:definition [ fhir:v "A nested sub-section within this section." ] ; fhir:comment [ fhir:v "Nested sections are primarily used to help human readers navigate to particular portions of the document." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:contentReference [ fhir:v "#Composition.section" ] ; fhir:mustSupport [ fhir:v "false" ] ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]" ] ] [ fhir:identity [ fhir:v "cda" ] ; fhir:map [ fhir:v ".component.section" ] ] ) ] ) ] . # -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.
FHIR ®© HL7.org 2011+. FHIR R6 hl7.fhir.core#6.0.0-ballot2 generated on Fri, Nov 22, 2024 02:21+0000.
Links: Search |
Version History |
Contents |
Glossary |
QA |
Compare to R5 |
|
Propose a change