PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.ecr@2.1.0
    http://hl7.org/fhir/us/ecr/StructureDefinition/rr-composition
{
  "description": "This Composition profile represents the Reportability Response that is created in response to an electronic Initial Case Report Composition.",
  "_filename": "StructureDefinition-rr-composition.json",
  "package_name": "hl7.fhir.us.ecr",
  "date": "2022-08-31T17:40:18+00:00",
  "derivation": "constraint",
  "meta": {
    "source": "#4h9Zd4c2pZUMMpTl",
    "versionId": "36",
    "lastUpdated": "2021-08-20T00:02:48.099+00:00"
  },
  "publisher": "HL7 Public Health Work Group (http://www.hl7.org/Special/committees/pher/index.cfm)",
  "fhirVersion": "4.0.1",
  "jurisdiction": [ {
    "text": "United States of America",
    "coding": [ {
      "code": "US",
      "system": "urn:iso:std:iso:3166",
      "display": "United States of America"
    } ]
  } ],
  "name": "RRComposition",
  "mapping": [ {
    "name": "eCR FHIR to CDA Mapping",
    "comment": "This table maps FHIR eCR profile elements to eICR/RR CDA template elements located in the CDA eICR IG (R2 STU2) and CDA RR IG (R2 STU1).",
    "identity": "eCR-CDA"
  }, {
    "uri": "http://hl7.org/fhir/workflow",
    "name": "Workflow Pattern",
    "identity": "workflow"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/v3/cda",
    "name": "CDA (R2)",
    "identity": "cda"
  }, {
    "uri": "http://hl7.org/fhir/documentreference",
    "name": "FHIR DocumentReference",
    "identity": "fhirdocumentreference"
  }, {
    "uri": "http://hl7.org/fhir/fivews",
    "name": "FiveWs Pattern Mapping",
    "identity": "w5"
  } ],
  "abstract": false,
  "type": "Composition",
  "experimental": "false",
  "resourceType": "StructureDefinition",
  "title": "RR Composition",
  "package_version": "2.1.0",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-3",
        "human": "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",
        "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-5",
        "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
        "xpath": "not(exists(f:contained/*/f:meta/f:security))",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "error",
        "expression": "contained.meta.security.empty()"
      }, {
        "key": "dom-6",
        "human": "A resource should have narrative for robust management",
        "xpath": "exists(f:text/h:div)",
        "source": "http://hl7.org/fhir/StructureDefinition/DomainResource",
        "severity": "warning",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
          "valueBoolean": true
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
          "valueMarkdown": "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."
        } ],
        "expression": "text.`div`.exists()"
      } ],
      "path": "Composition",
      "min": 0,
      "definition": "This Composition profile represents the Reportability Response that will be created in response to an electronic Initial Case Report Composition.",
      "isModifier": false,
      "short": "Reportability Response Composition",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "Event",
        "identity": "workflow"
      }, {
        "map": "Document[classCode=\"DOC\" and moodCode=\"EVN\" and isNormalAct()]",
        "identity": "rim"
      }, {
        "map": "ClinicalDocument",
        "identity": "cda"
      }, {
        "map": "when described by DocumentReference",
        "identity": "fhirdocumentreference"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Composition",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition"
      },
      "isSummary": false
    }, {
      "path": "Composition.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "isModifier": false,
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "max": "1",
      "id": "Composition.id",
      "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.meta",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "Composition.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.implicitRules",
      "min": 0,
      "definition": "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.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Composition.implicitRules",
      "comment": "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 it's narrative along with other profiles, value sets, etc.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "isModifier": false,
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/languages",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "A human language."
      },
      "max": "1",
      "id": "Composition.language",
      "comment": "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).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.text",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Text summary of the resource, for human interpretation",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "Composition.text",
      "comment": "Contained resources do not have 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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      },
      "isSummary": false
    }, {
      "path": "Composition.contained",
      "min": 0,
      "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
      "isModifier": false,
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "Composition.contained",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.extension",
      "min": 1,
      "definition": "Public Health Composition versionNumber. This is equivalent to ClinicalDocument.versionNumber in CDA. The identifier of the containing Bundle is equivalent to ClinicalDocument.id in CDA and Composition.identifier is equivalent to ClinicalDocument.setId in CDA. This is a version specific identifier for the composition, assigned when each version is created/updated.\n\nWhile 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.",
      "isModifier": false,
      "short": "Public Health Composition versionNumber",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/composition-clinicaldocument-versionNumber" ]
      } ],
      "mustSupport": true,
      "sliceName": "sliceExtensionVersionNumber",
      "max": "1",
      "id": "Composition.extension:sliceExtensionVersionNumber",
      "condition": [ "ele-1" ],
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.extension",
      "min": 1,
      "definition": "Reporting may be identified for multiple PHAs by the PHA system (or its intermediary) (because the patient's residence and the provider location are in separate jurisdictions) including other identified organization (such as an HIE) to which the eICR (if deemed reportable) and/or the Reportability Response will be routed.",
      "isModifier": false,
      "short": "Reportability Response recipient(s)",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-information-recipient-extension" ]
      } ],
      "mustSupport": true,
      "sliceName": "sliceExtensionInformationRecipient",
      "max": "*",
      "id": "Composition.extension:sliceExtensionInformationRecipient",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.modifierExtension",
      "requirements": "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "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 manageable, 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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.identifier",
      "min": 1,
      "definition": "Public Health Composition identifier. This is equivalent to ClinicalDocument.setId in CDA. The identifier of the containing Bundle is equivalent to ClinicalDocument.id in CDA and Composition.sliceExtensionVersionNumber is equivalent to ClinicalDocument.versionNumber in CDA.",
      "isModifier": false,
      "short": "Public Health Composition identifier",
      "mapping": [ {
        "map": "Event.identifier",
        "identity": "workflow"
      }, {
        "map": "FiveWs.identifier",
        "identity": "w5"
      }, {
        "map": "Document.id / Document.setId",
        "identity": "rim"
      }, {
        "map": ".setId",
        "identity": "cda"
      }, {
        "map": "DocumentReference.masterIdentifier",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.identifier",
      "comment": "Similar to ClinicalDocument/setId in CDA. See discussion in resource definition for how these relate.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.status",
      "requirements": "Need to be able to mark interim, amended, or withdrawn compositions or documents.",
      "min": 1,
      "definition": "The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document.",
      "isModifier": true,
      "short": "preliminary | final | amended | entered-in-error",
      "mapping": [ {
        "map": "Event.status",
        "identity": "workflow"
      }, {
        "map": "FiveWs.status",
        "identity": "w5"
      }, {
        "map": "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\"",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      }, {
        "map": "DocumentReference.status",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/composition-status|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CompositionStatus"
        } ],
        "description": "The workflow/clinical status of the composition."
      },
      "max": "1",
      "id": "Composition.status",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.status"
      },
      "isModifierReason": "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",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.type",
      "requirements": "Key metadata element describing the composition, used in searching/filtering.",
      "min": 1,
      "definition": "The type of this Composition is a Public Health Reportability Response Document",
      "isModifier": false,
      "short": "Public Health Reportability Response Document",
      "mapping": [ {
        "map": "Event.code",
        "identity": "workflow"
      }, {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": "./code",
        "identity": "rim"
      }, {
        "map": ".code",
        "identity": "cda"
      }, {
        "map": "DocumentReference.type",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/doc-typecodes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DocumentType"
        } ],
        "description": "Type of a composition."
      },
      "max": "1",
      "id": "Composition.type",
      "comment": "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.",
      "patternCodeableConcept": {
        "coding": [ {
          "code": "88085-6",
          "system": "http://loinc.org"
        } ]
      },
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.category",
      "requirements": "Helps humans to assess whether the composition is of interest when viewing an index of compositions or documents.",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Categorization of Composition",
      "mapping": [ {
        "map": "Event.subject",
        "identity": "workflow"
      }, {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      }, {
        "map": "DocumenttReference.category",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/document-classcodes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DocumentCategory"
        } ],
        "description": "High-level kind of a clinical document at a macro level."
      },
      "max": "*",
      "id": "Composition.category",
      "comment": "This is a metadata field from [XDS/MHD](http://wiki.ihe.net/index.php?title=Mobile_access_to_Health_Documents_(MHD)).",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.category"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.subject",
      "requirements": "Essential metadata for searching for the composition. Identifies who and/or what the composition/document is about.",
      "min": 1,
      "definition": "The subject of this Composition is the patient.",
      "isModifier": false,
      "short": "Patient",
      "mapping": [ {
        "map": "FiveWs.subject[x]",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]",
        "identity": "rim"
      }, {
        "map": ".recordTarget",
        "identity": "cda"
      }, {
        "map": "DocumentReference.subject",
        "identity": "fhirdocumentreference"
      }, {
        "map": "FiveWs.subject",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-patient" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.subject",
      "comment": "For clinical documents, this is usually the patient.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.subject"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.encounter",
      "requirements": "Provides context for the composition and supports searching.",
      "min": 1,
      "definition": "The encounter during which the eICR was triggered.",
      "isModifier": false,
      "short": "eICR Encounter",
      "mapping": [ {
        "map": "Event.context",
        "identity": "workflow"
      }, {
        "map": "FiveWs.context",
        "identity": "w5"
      }, {
        "map": "unique(highest(./outboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()], priorityNumber)/target[moodCode=\"EVN\" and classCode=(\"ENC\", \"PCPR\") and isNormalAct])",
        "identity": "rim"
      }, {
        "map": ".componentOf.encompassingEncounter",
        "identity": "cda"
      }, {
        "map": "DocumentReference.context.encounter",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-encounter" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.encounter",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.encounter"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.date",
      "requirements": "dateTime is used for tracking, organizing versions and searching. Note that this is the time of *authoring*. When packaged in a document, [Bundle.timestamp](http://hl7.org/fhir/R4/bundle-definitions.html#Bundle.timestamp) is the date of packaging.",
      "min": 1,
      "definition": "The composition editing time, when the composition was last logically changed by the author.",
      "isModifier": false,
      "short": "Composition editing time",
      "mapping": [ {
        "map": "Event.occurrence[x]",
        "identity": "workflow"
      }, {
        "map": "FiveWs.done[x]",
        "identity": "w5"
      }, {
        "map": ".effectiveTime[type=\"TS\"]",
        "identity": "rim"
      }, {
        "map": ".effectiveTime",
        "identity": "cda"
      }, {
        "map": "DocumentReference.content.attachment.date, DocumentReference.created",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.date",
      "comment": "The Last Modified Date on the composition may be after the date of the document was attested without being changed.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.date"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.author",
      "requirements": "Identifies who is responsible for the content.",
      "min": 1,
      "definition": "For the Reportability Response Composition, this will most likely be the software that is generating the response, though this will not always the be case.",
      "isModifier": false,
      "short": "Author",
      "mapping": [ {
        "map": "Event.performer",
        "identity": "workflow"
      }, {
        "map": "FiveWs.author",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]",
        "identity": "rim"
      }, {
        "map": ".author.assignedAuthor",
        "identity": "cda"
      }, {
        "map": "DocumentReference.agent",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-organization", "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner", "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-practitionerrole" ]
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Composition.author",
      "base": {
        "max": "*",
        "min": 1,
        "path": "Composition.author"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.title",
      "min": 1,
      "definition": "Official human-readable label for the composition.",
      "isModifier": false,
      "short": "Human Readable name/title",
      "mapping": [ {
        "map": "./title",
        "identity": "rim"
      }, {
        "map": ".title",
        "identity": "cda"
      }, {
        "map": "DocumentReference.description, DocumentReference.content.attachment.title",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.title",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.title"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.confidentiality",
      "min": 0,
      "definition": "The code specifying the level of confidentiality of the Composition.",
      "isModifier": false,
      "short": "As defined by affinity domain",
      "mapping": [ {
        "map": ".confidentialityCode",
        "identity": "rim"
      }, {
        "map": ".confidentialityCode",
        "identity": "cda"
      }, {
        "map": "DocumentReference.securityLabel",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DocumentConfidentiality"
        } ],
        "description": "Codes specifying the level of confidentiality of the composition."
      },
      "max": "1",
      "id": "Composition.confidentiality",
      "comment": "The exact use of this element, and enforcement and issues related to highly sensitive documents are out of scope for the base specification, and delegated to implementation profiles (see security section).  This element is labeled as a modifier because highly confidential documents must not be treated as if they are not.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.confidentiality"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.attester",
      "requirements": "Identifies responsibility for the accuracy of the composition content.",
      "min": 0,
      "definition": "A participant who has attested to the accuracy of the composition/document.",
      "isModifier": false,
      "short": "Attests to accuracy of composition",
      "mapping": [ {
        "map": ".participation[typeCode=\"AUTHEN\"].role[classCode=\"ASSIGNED\"]",
        "identity": "rim"
      }, {
        "map": ".authenticator/.legalAuthenticator",
        "identity": "cda"
      }, {
        "map": "DocumentReference.authenticator",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Composition.attester",
      "comment": "Only list each attester once.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.attester"
      },
      "isSummary": false
    }, {
      "path": "Composition.attester.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.attester.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.attester.extension",
      "min": 0,
      "definition": "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 manageable, 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.attester.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.attester.modifierExtension",
      "requirements": "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "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 manageable, 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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Composition.attester.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.attester.mode",
      "requirements": "Indicates the level of authority of the attestation.",
      "min": 1,
      "definition": "The type of attestation the authenticator offers.",
      "isModifier": false,
      "short": "personal | professional | legal | official",
      "mapping": [ {
        "map": "unique(./modeCode)",
        "identity": "rim"
      }, {
        "map": "implied by .authenticator/.legalAuthenticator",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CompositionAttestationMode"
        } ],
        "description": "The way in which a person authenticated a composition."
      },
      "max": "1",
      "id": "Composition.attester.mode",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.attester.mode"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.attester.time",
      "requirements": "Identifies when the information in the composition was deemed accurate.  (Things may have changed since then.).",
      "min": 0,
      "definition": "When the composition was attested by the party.",
      "isModifier": false,
      "short": "When the composition was attested",
      "mapping": [ {
        "map": "./time[type=\"TS\" and isNormalDatatype()]",
        "identity": "rim"
      }, {
        "map": ".authenticator.time",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "Composition.attester.time",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.attester.time"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.attester.party",
      "requirements": "Identifies who has taken on the responsibility for accuracy of the composition content.",
      "min": 0,
      "definition": "Who attested the composition in the specified way.",
      "isModifier": false,
      "short": "Who attested the composition",
      "mapping": [ {
        "map": "FiveWs.witness",
        "identity": "w5"
      }, {
        "map": "./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()]",
        "identity": "rim"
      }, {
        "map": ".authenticator.assignedEnttty",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/Organization" ]
      } ],
      "max": "1",
      "id": "Composition.attester.party",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.attester.party"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.custodian",
      "requirements": "Identifies where to go to find the current version, where to report issues, etc.",
      "min": 1,
      "definition": "Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information.",
      "isModifier": false,
      "short": "Organization which maintains the composition",
      "mapping": [ {
        "map": ".participation[typeCode=\"RCV\"].role[classCode=\"CUST\"].scoper[classCode=\"ORG\" and determinerCode=\"INST\"]",
        "identity": "rim"
      }, {
        "map": ".custodian.assignedCustodian",
        "identity": "cda"
      }, {
        "map": "DocumentReference.custodian",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-organization" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.custodian",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.custodian"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.relatesTo",
      "min": 0,
      "definition": "Relationships that this composition has with other compositions or documents that already exist.",
      "isModifier": false,
      "short": "Relationships to other compositions/documents",
      "mapping": [ {
        "map": ".outboundRelationship",
        "identity": "rim"
      }, {
        "map": ".relatedDocument",
        "identity": "cda"
      }, {
        "map": "DocumentReference.relatesTo",
        "identity": "fhirdocumentreference"
      } ],
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "code",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Composition.relatesTo",
      "comment": "A document is a version specific composition.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.relatesTo"
      },
      "isSummary": false
    }, {
      "path": "Composition.relatesTo.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.relatesTo.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.relatesTo.extension",
      "min": 0,
      "definition": "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 manageable, 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.relatesTo.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.relatesTo.modifierExtension",
      "requirements": "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "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 manageable, 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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Composition.relatesTo.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.relatesTo.code",
      "min": 1,
      "definition": "The type of relationship that this composition has with anther composition or document.",
      "isModifier": false,
      "short": "replaces | transforms | signs | appends",
      "mapping": [ {
        "map": ".outboundRelationship.typeCode",
        "identity": "rim"
      }, {
        "map": ".relatedDocument.typeCode",
        "identity": "cda"
      }, {
        "map": "DocumentReference.relatesTo.code",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DocumentRelationshipType"
        } ],
        "description": "The type of relationship between documents."
      },
      "max": "1",
      "id": "Composition.relatesTo.code",
      "comment": "If this document appends another document, then the document cannot be fully understood without also accessing the referenced document.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.relatesTo.code"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.relatesTo.target[x]",
      "min": 1,
      "definition": "The target composition/document of this relationship.",
      "isModifier": false,
      "short": "Target of the relationship",
      "mapping": [ {
        "map": ".target[classCode=\"DOC\", moodCode=\"EVN\"].id",
        "identity": "rim"
      }, {
        "map": ".relatedDocument.id",
        "identity": "cda"
      }, {
        "map": "DocumentReference.relatesTo.target",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Identifier"
      }, {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Composition" ]
      } ],
      "max": "1",
      "id": "Composition.relatesTo.target[x]",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.relatesTo.target[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.relatesTo",
      "min": 0,
      "definition": "Document of Composition that this Composition is transformed from",
      "isModifier": false,
      "short": "Document or Composition that this Composition is transformed from",
      "mapping": [ {
        "map": ".outboundRelationship",
        "identity": "rim"
      }, {
        "map": ".relatedDocument",
        "identity": "cda"
      }, {
        "map": "DocumentReference.relatesTo",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "sliceName": "sliceTransformed",
      "max": "1",
      "id": "Composition.relatesTo:sliceTransformed",
      "comment": "A document is a version specific composition.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.relatesTo"
      },
      "isSummary": false
    }, {
      "path": "Composition.relatesTo.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.relatesTo:sliceTransformed.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.relatesTo.extension",
      "min": 0,
      "definition": "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 manageable, 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.relatesTo:sliceTransformed.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.relatesTo.modifierExtension",
      "requirements": "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "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 manageable, 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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Composition.relatesTo:sliceTransformed.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.relatesTo.code",
      "fixedCode": "transforms",
      "min": 1,
      "definition": "The type of relationship that this composition has with anther composition or document.",
      "isModifier": false,
      "short": "replaces | transforms | signs | appends",
      "mapping": [ {
        "map": ".outboundRelationship.typeCode",
        "identity": "rim"
      }, {
        "map": ".relatedDocument.typeCode",
        "identity": "cda"
      }, {
        "map": "DocumentReference.relatesTo.code",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DocumentRelationshipType"
        } ],
        "description": "The type of relationship between documents."
      },
      "max": "1",
      "id": "Composition.relatesTo:sliceTransformed.code",
      "comment": "If this document appends another document, then the document cannot be fully understood without also accessing the referenced document.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.relatesTo.code"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.relatesTo.target[x]",
      "min": 1,
      "definition": "Identifier of the Document or Composition transformed",
      "isModifier": false,
      "short": "Identifier of the Document or Composition transformed",
      "mapping": [ {
        "map": ".target[classCode=\"DOC\", moodCode=\"EVN\"].id",
        "identity": "rim"
      }, {
        "map": ".relatedDocument.id",
        "identity": "cda"
      }, {
        "map": "DocumentReference.relatesTo.target",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.relatesTo:sliceTransformed.target[x]",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.relatesTo.target[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.relatesTo",
      "min": 0,
      "definition": "Document or Composition that this Composition replaces",
      "isModifier": false,
      "short": "Document or Composition that this Composition replaces",
      "mapping": [ {
        "map": ".outboundRelationship",
        "identity": "rim"
      }, {
        "map": ".relatedDocument",
        "identity": "cda"
      }, {
        "map": "DocumentReference.relatesTo",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "sliceName": "sliceReplaced",
      "max": "1",
      "id": "Composition.relatesTo:sliceReplaced",
      "comment": "A document is a version specific composition.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.relatesTo"
      },
      "isSummary": false
    }, {
      "path": "Composition.relatesTo.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.relatesTo:sliceReplaced.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.relatesTo.extension",
      "min": 0,
      "definition": "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 manageable, 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.relatesTo:sliceReplaced.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.relatesTo.modifierExtension",
      "requirements": "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "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 manageable, 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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Composition.relatesTo:sliceReplaced.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.relatesTo.code",
      "fixedCode": "replaces",
      "min": 1,
      "definition": "The type of relationship that this composition has with anther composition or document.",
      "isModifier": false,
      "short": "replaces | transforms | signs | appends",
      "mapping": [ {
        "map": ".outboundRelationship.typeCode",
        "identity": "rim"
      }, {
        "map": ".relatedDocument.typeCode",
        "identity": "cda"
      }, {
        "map": "DocumentReference.relatesTo.code",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DocumentRelationshipType"
        } ],
        "description": "The type of relationship between documents."
      },
      "max": "1",
      "id": "Composition.relatesTo:sliceReplaced.code",
      "comment": "If this document appends another document, then the document cannot be fully understood without also accessing the referenced document.",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.relatesTo.code"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.relatesTo.target[x]",
      "min": 1,
      "definition": "Identifier/Reference to the Document or Composition transformed",
      "isModifier": false,
      "short": "Identifier/Reference to the Document or Composition transformed",
      "mapping": [ {
        "map": ".target[classCode=\"DOC\", moodCode=\"EVN\"].id",
        "identity": "rim"
      }, {
        "map": ".relatedDocument.id",
        "identity": "cda"
      }, {
        "map": "DocumentReference.relatesTo.target",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Identifier"
      }, {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Composition" ]
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.relatesTo:sliceReplaced.target[x]",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Composition.relatesTo.target[x]"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.event",
      "requirements": "Provides context for the composition and creates a linkage between a resource describing an event and the composition created describing the event.",
      "min": 0,
      "definition": "The clinical service, such as a colonoscopy or an appendectomy, being documented.",
      "isModifier": false,
      "short": "The clinical service(s) being documented",
      "mapping": [ {
        "map": "outboundRelationship[typeCode=\"SUBJ\"].target[classCode<'ACT']",
        "identity": "rim"
      }, {
        "map": ".documentationOf.serviceEvent",
        "identity": "cda"
      }, {
        "map": "DocumentReference.event",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Composition.event",
      "comment": "The event needs to be consistent with the type element, though can provide further information if desired.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.event"
      },
      "isSummary": true
    }, {
      "path": "Composition.event.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.event.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.event.extension",
      "min": 0,
      "definition": "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 manageable, 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.event.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.event.modifierExtension",
      "requirements": "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "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 manageable, 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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Composition.event.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.event.code",
      "min": 0,
      "definition": "This list of codes 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 the procedure being documented is necessarily a \"History and Physical\" act.",
      "isModifier": false,
      "short": "Code(s) that apply to the event being documented",
      "mapping": [ {
        "map": ".code",
        "identity": "rim"
      }, {
        "map": ".code",
        "identity": "cda"
      }, {
        "map": "DocumentReference.event.code",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActCode",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "DocumentEventType"
        } ],
        "description": "This list of codes represents the main clinical acts being documented."
      },
      "max": "*",
      "id": "Composition.event.code",
      "comment": "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 eventCodes 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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.event.code"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.event.period",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "The period covered by the documentation",
      "mapping": [ {
        "map": ".effectiveTime",
        "identity": "rim"
      }, {
        "map": ".effectiveTime",
        "identity": "cda"
      }, {
        "map": "DocumentReference.event.period",
        "identity": "fhirdocumentreference"
      } ],
      "type": [ {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Composition.event.period",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.event.period"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.event.detail",
      "min": 0,
      "definition": "The description and/or reference of the event(s) being documented. For example, this could be used to document such a colonoscopy or an appendectomy.",
      "isModifier": false,
      "short": "The event(s) being documented",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=\"SUBJ\"].target",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "max": "*",
      "id": "Composition.event.detail",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.event.detail"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "cmp-1",
        "human": "A section must contain at least one of text, entries, or sub-sections",
        "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
        "source": "http://hl7.org/fhir/StructureDefinition/Composition",
        "severity": "error",
        "expression": "text.exists() or entry.exists() or section.exists()"
      }, {
        "key": "cmp-2",
        "human": "A section can only have an emptyReason if it is empty",
        "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
        "source": "http://hl7.org/fhir/StructureDefinition/Composition",
        "severity": "error",
        "expression": "emptyReason.empty() or entry.empty()"
      }, {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section",
      "min": 0,
      "definition": "The root of the sections that make up the composition.",
      "isModifier": false,
      "short": "Composition is broken into sections",
      "mapping": [ {
        "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]",
        "identity": "rim"
      }, {
        "map": ".component.structuredBody.component.section",
        "identity": "cda"
      } ],
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "code",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "BackboneElement"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString": "Section"
      } ],
      "max": "*",
      "id": "Composition.section",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section"
      },
      "isSummary": false
    }, {
      "path": "Composition.section.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.section.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.extension",
      "min": 0,
      "definition": "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 manageable, 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.section.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.modifierExtension",
      "requirements": "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "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 manageable, 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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Composition.section.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.title",
      "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Label for section (e.g. for ToC)",
      "mapping": [ {
        "map": "./title",
        "identity": "rim"
      }, {
        "map": ".title",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "header", "label", "caption" ],
      "max": "1",
      "id": "Composition.section.title",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.title"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.code",
      "requirements": "Provides computable standardized labels to topics within the document.",
      "min": 0,
      "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
      "isModifier": false,
      "short": "Classification of section (recommended)",
      "mapping": [ {
        "map": "./code",
        "identity": "rim"
      }, {
        "map": ".code",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CompositionSectionType"
        } ],
        "description": "Classification of a section of a composition/document."
      },
      "max": "1",
      "id": "Composition.section.code",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.code"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.author",
      "requirements": "Identifies who is responsible for the content.",
      "min": 0,
      "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
      "isModifier": false,
      "short": "Who and/or what authored the section",
      "mapping": [ {
        "map": "FiveWs.author",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]",
        "identity": "rim"
      }, {
        "map": ".author.assignedAuthor",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Organization" ]
      } ],
      "max": "*",
      "id": "Composition.section.author",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.author"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.focus",
      "min": 0,
      "definition": "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).",
      "isModifier": false,
      "short": "Who/what the section is about, when it is not about the subject of composition",
      "mapping": [ {
        "map": ".subject? (CDA did not differentiate between subject and focus)",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "max": "1",
      "id": "Composition.section.focus",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.focus"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.text",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Text summary of the section, for human interpretation",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      }, {
        "map": ".text",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "max": "1",
      "id": "Composition.section.text",
      "condition": [ "cmp-1" ],
      "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.text"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.mode",
      "requirements": "Sections are used in various ways, and it must be known in what way it is safe to use the entries in them.",
      "min": 0,
      "definition": "How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.",
      "isModifier": false,
      "short": "working | snapshot | changes",
      "mapping": [ {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionMode"
        } ],
        "description": "The processing mode that applies to this section."
      },
      "max": "1",
      "id": "Composition.section.mode",
      "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.mode"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.orderedBy",
      "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
      "min": 0,
      "definition": "Specifies the order applied to the items in the section entries.",
      "isModifier": false,
      "short": "Order of section entries",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-order",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionEntryOrder"
        } ],
        "description": "What order applies to the items in the entry."
      },
      "max": "1",
      "id": "Composition.section.orderedBy",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.orderedBy"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry",
      "min": 0,
      "definition": "A reference to the actual resource from which the narrative in the section is derived.",
      "isModifier": false,
      "short": "A reference to data that supports this section",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]",
        "identity": "rim"
      }, {
        "map": ".entry",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "max": "*",
      "id": "Composition.section.entry",
      "condition": [ "cmp-2" ],
      "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.entry"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.emptyReason",
      "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
      "min": 0,
      "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
      "isModifier": false,
      "short": "Why the section is empty",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=SUBJ,code,
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionEmptyReason"
        } ],
        "description": "If a section is empty, why it is empty."
      },
      "max": "1",
      "id": "Composition.section.emptyReason",
      "condition": [ "cmp-2" ],
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.emptyReason"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.section",
      "min": 0,
      "definition": "A nested sub-section within this section.",
      "isModifier": false,
      "short": "Nested Section",
      "mapping": [ {
        "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]",
        "identity": "rim"
      }, {
        "map": ".component.section",
        "identity": "cda"
      } ],
      "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
      "max": "*",
      "id": "Composition.section.section",
      "condition": [ "cmp-1" ],
      "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.section"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "cmp-1",
        "human": "A section must contain at least one of text, entries, or sub-sections",
        "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
        "source": "http://hl7.org/fhir/StructureDefinition/Composition",
        "severity": "error",
        "expression": "text.exists() or entry.exists() or section.exists()"
      }, {
        "key": "cmp-2",
        "human": "A section can only have an emptyReason if it is empty",
        "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
        "source": "http://hl7.org/fhir/StructureDefinition/Composition",
        "severity": "error",
        "expression": "emptyReason.empty() or entry.empty()"
      }, {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section",
      "min": 0,
      "definition": "This section contains the subject (short description) of the Reportability Response Document. This information can be used in a work queue or an email subject and gives a concise description of the determination of reportability. This section is present in the Reportability Response Document if the eICR Document was processed and is not present if the eICR Document was not processed. The narrative in this section is displayed first in the Reportability Response Document and consists of paragraphs containing the 'Subject:' heading and the subject text.",
      "isModifier": false,
      "short": "Reportability Response Subject Section",
      "mapping": [ {
        "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]",
        "identity": "rim"
      }, {
        "map": ".component.structuredBody.component.section",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "sliceName": "sliceRRSubjectSection",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString": "Section"
      } ],
      "max": "1",
      "id": "Composition.section:sliceRRSubjectSection",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section"
      },
      "isSummary": false
    }, {
      "path": "Composition.section.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.section:sliceRRSubjectSection.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.extension",
      "min": 0,
      "definition": "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 manageable, 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.section:sliceRRSubjectSection.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.modifierExtension",
      "requirements": "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "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 manageable, 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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Composition.section:sliceRRSubjectSection.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.title",
      "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Label for section (e.g. for ToC)",
      "mapping": [ {
        "map": "./title",
        "identity": "rim"
      }, {
        "map": ".title",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "header", "label", "caption" ],
      "max": "1",
      "id": "Composition.section:sliceRRSubjectSection.title",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.title"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.code",
      "requirements": "Provides computable standardized labels to topics within the document.",
      "min": 1,
      "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
      "isModifier": false,
      "short": "Reportable condition response information and summary Document",
      "mapping": [ {
        "map": "./code",
        "identity": "rim"
      }, {
        "map": ".code",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CompositionSectionType"
        } ],
        "description": "Classification of a section of a composition/document."
      },
      "max": "1",
      "id": "Composition.section:sliceRRSubjectSection.code",
      "comment": "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.",
      "patternCodeableConcept": {
        "coding": [ {
          "code": "88084-9",
          "system": "http://loinc.org"
        } ]
      },
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.code"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.author",
      "requirements": "Identifies who is responsible for the content.",
      "min": 0,
      "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
      "isModifier": false,
      "short": "Who and/or what authored the section",
      "mapping": [ {
        "map": "FiveWs.author",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]",
        "identity": "rim"
      }, {
        "map": ".author.assignedAuthor",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Organization" ]
      } ],
      "max": "*",
      "id": "Composition.section:sliceRRSubjectSection.author",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.author"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.focus",
      "min": 0,
      "definition": "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).",
      "isModifier": false,
      "short": "Who/what the section is about, when it is not about the subject of composition",
      "mapping": [ {
        "map": ".subject? (CDA did not differentiate between subject and focus)",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "max": "1",
      "id": "Composition.section:sliceRRSubjectSection.focus",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.focus"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.text",
      "min": 1,
      "definition": "Contains the subject (short description) of the Reportability Response Document. This information can be used in a work queue or an email subject and gives a concise description of the determination of reportability.",
      "isModifier": false,
      "short": "Reportability Response Subject Section",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      }, {
        "map": ".text",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.section:sliceRRSubjectSection.text",
      "condition": [ "cmp-1" ],
      "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
      "example": [ {
        "label": "General",
        "valueString": "Public Health Reporting Document: one or more conditions are reportable, or may be reportable to public health."
      } ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.text"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.mode",
      "requirements": "Sections are used in various ways, and it must be known in what way it is safe to use the entries in them.",
      "min": 0,
      "definition": "How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.",
      "isModifier": false,
      "short": "working | snapshot | changes",
      "mapping": [ {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionMode"
        } ],
        "description": "The processing mode that applies to this section."
      },
      "max": "1",
      "id": "Composition.section:sliceRRSubjectSection.mode",
      "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.mode"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.orderedBy",
      "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
      "min": 0,
      "definition": "Specifies the order applied to the items in the section entries.",
      "isModifier": false,
      "short": "Order of section entries",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-order",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionEntryOrder"
        } ],
        "description": "What order applies to the items in the entry."
      },
      "max": "1",
      "id": "Composition.section:sliceRRSubjectSection.orderedBy",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.orderedBy"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry",
      "min": 0,
      "definition": "A reference to the actual resource from which the narrative in the section is derived.",
      "isModifier": false,
      "short": "A reference to data that supports this section",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]",
        "identity": "rim"
      }, {
        "map": ".entry",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "max": "*",
      "id": "Composition.section:sliceRRSubjectSection.entry",
      "condition": [ "cmp-2" ],
      "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.entry"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.emptyReason",
      "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
      "min": 0,
      "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
      "isModifier": false,
      "short": "Why the section is empty",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=SUBJ,code,
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionEmptyReason"
        } ],
        "description": "If a section is empty, why it is empty."
      },
      "max": "1",
      "id": "Composition.section:sliceRRSubjectSection.emptyReason",
      "condition": [ "cmp-2" ],
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.emptyReason"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.section",
      "min": 0,
      "definition": "A nested sub-section within this section.",
      "isModifier": false,
      "short": "Nested Section",
      "mapping": [ {
        "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]",
        "identity": "rim"
      }, {
        "map": ".component.section",
        "identity": "cda"
      } ],
      "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
      "max": "*",
      "id": "Composition.section:sliceRRSubjectSection.section",
      "condition": [ "cmp-1" ],
      "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.section"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "cmp-1",
        "human": "A section must contain at least one of text, entries, or sub-sections",
        "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
        "source": "http://hl7.org/fhir/StructureDefinition/Composition",
        "severity": "error",
        "expression": "text.exists() or entry.exists() or section.exists()"
      }, {
        "key": "cmp-2",
        "human": "A section can only have an emptyReason if it is empty",
        "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
        "source": "http://hl7.org/fhir/StructureDefinition/Composition",
        "severity": "error",
        "expression": "emptyReason.empty() or entry.empty()"
      }, {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section",
      "min": 1,
      "definition": "This section contains information about the eICR Document to which this document is a response.",
      "isModifier": false,
      "short": "Electronic Initial Case Report Section",
      "mapping": [ {
        "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]",
        "identity": "rim"
      }, {
        "map": ".component.structuredBody.component.section",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "sliceName": "sliceEICRSection",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString": "Section"
      } ],
      "max": "1",
      "id": "Composition.section:sliceEICRSection",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section"
      },
      "isSummary": false
    }, {
      "path": "Composition.section.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.section:sliceEICRSection.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.section:sliceEICRSection.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.extension",
      "min": 1,
      "definition": "This extension constains processing status information about the eICR.",
      "isModifier": false,
      "short": "eICR Processing Status",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/rr-eicr-processing-status-extension" ]
      } ],
      "mustSupport": true,
      "sliceName": "extensionEICRProcessingStatus",
      "max": "1",
      "id": "Composition.section:sliceEICRSection.extension:extensionEICRProcessingStatus",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.extension",
      "min": 0,
      "definition": "The presence of this extension indicates whether or not the eICR Document for which this Reportability Response is a response, was either alternately or manually initiated. The eICR could also contain trigger codes (automatic trigger code initiation).",
      "isModifier": false,
      "short": "Alternately or Manually Initiated eICR",
      "mapping": [ {
        "map": "[RR R1 STU1] Manually Initiated eICR/code",
        "comment": "No mapping for Alternately Initiation eICR in the current version of CDA RR",
        "identity": "eCR-CDA"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-initiation-type-extension" ]
      } ],
      "mustSupport": true,
      "sliceName": "extensionAlternatelyManuallyInitiatedEICR",
      "max": "1",
      "id": "Composition.section:sliceEICRSection.extension:extensionAlternatelyManuallyInitiatedEICR",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.extension",
      "min": 0,
      "definition": "This extension contains the date and time of eICR receipt.",
      "isModifier": false,
      "short": "Date and time of eICR receipt",
      "mapping": [ {
        "map": "[RR R1 STU1] Received eICR Information/eICR External Document Reference/effectiveTime",
        "identity": "eCR-CDA"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/rr-eicr-receipt-time-extension" ]
      } ],
      "mustSupport": true,
      "sliceName": "extensionEICRReceiptTime",
      "max": "1",
      "id": "Composition.section:sliceEICRSection.extension:extensionEICRReceiptTime",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.modifierExtension",
      "requirements": "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "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 manageable, 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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Composition.section:sliceEICRSection.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.title",
      "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Label for section (e.g. for ToC)",
      "mapping": [ {
        "map": "./title",
        "identity": "rim"
      }, {
        "map": ".title",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "header", "label", "caption" ],
      "max": "1",
      "id": "Composition.section:sliceEICRSection.title",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.title"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.code",
      "requirements": "Provides computable standardized labels to topics within the document.",
      "min": 1,
      "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
      "isModifier": false,
      "short": "Initial case report processing information Document",
      "mapping": [ {
        "map": "./code",
        "identity": "rim"
      }, {
        "map": ".code",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CompositionSectionType"
        } ],
        "description": "Classification of a section of a composition/document."
      },
      "max": "1",
      "id": "Composition.section:sliceEICRSection.code",
      "comment": "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.",
      "patternCodeableConcept": {
        "coding": [ {
          "code": "88082-3",
          "system": "http://loinc.org"
        } ]
      },
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.code"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.author",
      "requirements": "Identifies who is responsible for the content.",
      "min": 0,
      "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
      "isModifier": false,
      "short": "Who and/or what authored the section",
      "mapping": [ {
        "map": "FiveWs.author",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]",
        "identity": "rim"
      }, {
        "map": ".author.assignedAuthor",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Organization" ]
      } ],
      "max": "*",
      "id": "Composition.section:sliceEICRSection.author",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.author"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.focus",
      "min": 0,
      "definition": "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).",
      "isModifier": false,
      "short": "Who/what the section is about, when it is not about the subject of composition",
      "mapping": [ {
        "map": ".subject? (CDA did not differentiate between subject and focus)",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "max": "1",
      "id": "Composition.section:sliceEICRSection.focus",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.focus"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.text",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Text summary of the section, for human interpretation",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      }, {
        "map": ".text",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "max": "1",
      "id": "Composition.section:sliceEICRSection.text",
      "condition": [ "cmp-1" ],
      "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.text"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.mode",
      "requirements": "Sections are used in various ways, and it must be known in what way it is safe to use the entries in them.",
      "min": 0,
      "definition": "How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.",
      "isModifier": false,
      "short": "working | snapshot | changes",
      "mapping": [ {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionMode"
        } ],
        "description": "The processing mode that applies to this section."
      },
      "max": "1",
      "id": "Composition.section:sliceEICRSection.mode",
      "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.mode"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.orderedBy",
      "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
      "min": 0,
      "definition": "Specifies the order applied to the items in the section entries.",
      "isModifier": false,
      "short": "Order of section entries",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-order",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionEntryOrder"
        } ],
        "description": "What order applies to the items in the entry."
      },
      "max": "1",
      "id": "Composition.section:sliceEICRSection.orderedBy",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.orderedBy"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry",
      "min": 0,
      "definition": "A reference to the actual resource from which the narrative in the section is derived.",
      "isModifier": false,
      "short": "A reference to data that supports this section",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]",
        "identity": "rim"
      }, {
        "map": ".entry",
        "identity": "cda"
      } ],
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "resolve()",
          "type": "profile"
        } ]
      },
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Composition.section:sliceEICRSection.entry",
      "condition": [ "cmp-2" ],
      "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.entry"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry",
      "min": 0,
      "definition": "Reference to eICR Document Bundle or eICR CDA document. Use identifier for eICR Document Bundle identifier 2. Use display for eICR file name (or other identifying string): recommended primarily for dealing with eICR error cases. In the case where an eICR document is unreadable for some reason, it is possible that the only identifying information is the eICR filename (or other identifying string).",
      "isModifier": false,
      "short": "Reference to eICR Document Bundle or eICR CDA document",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]",
        "identity": "rim"
      }, {
        "map": ".entry",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle", "http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference" ]
      } ],
      "mustSupport": true,
      "sliceName": "sliceEICRDocument",
      "max": "*",
      "id": "Composition.section:sliceEICRSection.entry:sliceEICRDocument",
      "condition": [ "cmp-2" ],
      "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.entry"
      },
      "isSummary": false
    }, {
      "path": "Composition.section.entry.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.section:sliceEICRSection.entry:sliceEICRDocument.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.entry.extension",
      "min": 0,
      "definition": "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 manageable, 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.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Composition.section:sliceEICRSection.entry:sliceEICRDocument.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry.reference",
      "min": 0,
      "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
      "isModifier": false,
      "short": "Literal reference, Relative, internal or absolute URL",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Composition.section:sliceEICRSection.entry:sliceEICRDocument.reference",
      "condition": [ "ref-1" ],
      "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.reference"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry.type",
      "min": 0,
      "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
      "isModifier": false,
      "short": "Type the reference refers to (e.g. \"Patient\")",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "uri"
      } ],
      "binding": {
        "strength": "extensible",
        "valueSet": "http://hl7.org/fhir/ValueSet/resource-types",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "FHIRResourceTypeExt"
        } ],
        "description": "Aa resource (or, for logical models, the URI of the logical model)."
      },
      "max": "1",
      "id": "Composition.section:sliceEICRSection.entry:sliceEICRDocument.type",
      "comment": "This element is used to indicate the type of  the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.type"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry.identifier",
      "min": 0,
      "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
      "isModifier": false,
      "short": "eICR Document Bundle identifier",
      "mapping": [ {
        "map": ".identifier",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Composition.section:sliceEICRSection.entry:sliceEICRDocument.identifier",
      "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference.  For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport).  One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.identifier"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry.display",
      "min": 0,
      "definition": "The filename is recommended primarily for dealing with eICR error cases. In the case where an eICR document is unreadable for some reason, it is likely that the setId and versionNumber would be unavailable, and it is possible that the only identifying information is the eICR document filename.",
      "isModifier": false,
      "short": "Filename of eICR",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "mustSupport": true,
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Composition.section:sliceEICRSection.entry:sliceEICRDocument.display",
      "comment": "This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Reference.display"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.emptyReason",
      "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
      "min": 0,
      "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
      "isModifier": false,
      "short": "Why the section is empty",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=SUBJ,code,
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionEmptyReason"
        } ],
        "description": "If a section is empty, why it is empty."
      },
      "max": "1",
      "id": "Composition.section:sliceEICRSection.emptyReason",
      "condition": [ "cmp-2" ],
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.emptyReason"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.section",
      "min": 0,
      "definition": "A nested sub-section within this section.",
      "isModifier": false,
      "short": "Nested Section",
      "mapping": [ {
        "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]",
        "identity": "rim"
      }, {
        "map": ".component.section",
        "identity": "cda"
      } ],
      "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
      "max": "*",
      "id": "Composition.section:sliceEICRSection.section",
      "condition": [ "cmp-1" ],
      "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.section"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "cmp-1",
        "human": "A section must contain at least one of text, entries, or sub-sections",
        "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
        "source": "http://hl7.org/fhir/StructureDefinition/Composition",
        "severity": "error",
        "expression": "text.exists() or entry.exists() or section.exists()"
      }, {
        "key": "cmp-2",
        "human": "A section can only have an emptyReason if it is empty",
        "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
        "source": "http://hl7.org/fhir/StructureDefinition/Composition",
        "severity": "error",
        "expression": "emptyReason.empty() or entry.empty()"
      }, {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section",
      "min": 0,
      "definition": "This section contains the Reportability Response Summary profile and the Reportability Response Priority profile.\n\nThis section is present in the Reportability Response Document if the eICR Document was processed and is not present if the eICR Document was not processed.\n\nThe narrative in this section is displayed last in the Reportability Response Document and consists of the following elements in the following order (see example included in IG):\n\n* Paragraphs containing the \"Summary:\" heading and the summary text\n* A list containing external resources from the following categories (code specified in External Resources/code), in the order specified below:\n    * Outbreak- or Cluster-related\n    * Additional reporting needs\n    * Additional detection and/or laboratory testing needs\n    * Treatment and/or prevention\n    * PHA contact information\n* A list containing external resources from the category (code specified in External Resources/code):\n    * Additional resources",
      "isModifier": false,
      "short": "Reportability Response Summary Section",
      "mapping": [ {
        "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]",
        "identity": "rim"
      }, {
        "map": ".component.structuredBody.component.section",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "mustSupport": true,
      "sliceName": "sliceRRSummarySection",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
        "valueString": "Section"
      } ],
      "max": "1",
      "id": "Composition.section:sliceRRSummarySection",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section"
      },
      "isSummary": false
    }, {
      "path": "Composition.section.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Composition.section:sliceRRSummarySection.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.extension",
      "min": 0,
      "definition": "An Extension",
      "isModifier": false,
      "short": "Extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "max": "*",
      "id": "Composition.section:sliceRRSummarySection.extension",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.extension",
      "min": 1,
      "definition": "Represents a priority for the reportability response overall. It has been calculated from the highest priority of any included External Resources or the highest priority of included Conditions based on a separate, jurisdictionally developed priority list. This priority should be used for EHR workflow including notification, alerting, routing and queueing.",
      "isModifier": false,
      "short": "RR Priority",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/rr-priority-extension" ]
      } ],
      "mustSupport": true,
      "sliceName": "extensionRRPriority",
      "max": "1",
      "id": "Composition.section:sliceRRSummarySection.extension:extensionRRPriority",
      "condition": [ "ele-1" ],
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Composition.section.modifierExtension",
      "requirements": "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](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
      "min": 0,
      "definition": "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 manageable, 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).",
      "isModifier": true,
      "short": "Extensions that cannot be ignored even if unrecognized",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Composition.section:sliceRRSummarySection.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.title",
      "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
      "min": 0,
      "definition": "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.",
      "isModifier": false,
      "short": "Label for section (e.g. for ToC)",
      "mapping": [ {
        "map": "./title",
        "identity": "rim"
      }, {
        "map": ".title",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "alias": [ "header", "label", "caption" ],
      "max": "1",
      "id": "Composition.section:sliceRRSummarySection.title",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.title"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.code",
      "requirements": "Provides computable standardized labels to topics within the document.",
      "min": 1,
      "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
      "isModifier": false,
      "short": "Document summary",
      "mapping": [ {
        "map": "./code",
        "identity": "rim"
      }, {
        "map": ".code",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "mustSupport": true,
      "binding": {
        "strength": "example",
        "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "CompositionSectionType"
        } ],
        "description": "Classification of a section of a composition/document."
      },
      "max": "1",
      "id": "Composition.section:sliceRRSummarySection.code",
      "comment": "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.",
      "patternCodeableConcept": {
        "coding": [ {
          "code": "55112-7",
          "system": "http://loinc.org"
        } ]
      },
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.code"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.author",
      "requirements": "Identifies who is responsible for the content.",
      "min": 0,
      "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
      "isModifier": false,
      "short": "Who and/or what authored the section",
      "mapping": [ {
        "map": "FiveWs.author",
        "identity": "w5"
      }, {
        "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]",
        "identity": "rim"
      }, {
        "map": ".author.assignedAuthor",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Organization" ]
      } ],
      "max": "*",
      "id": "Composition.section:sliceRRSummarySection.author",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.author"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.focus",
      "min": 0,
      "definition": "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).",
      "isModifier": false,
      "short": "Who/what the section is about, when it is not about the subject of composition",
      "mapping": [ {
        "map": ".subject? (CDA did not differentiate between subject and focus)",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "max": "1",
      "id": "Composition.section:sliceRRSummarySection.focus",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.focus"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.text",
      "min": 1,
      "definition": "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.",
      "isModifier": false,
      "short": "RR Summary Section narrative",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      }, {
        "map": ".text",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "mustSupport": true,
      "max": "1",
      "id": "Composition.section:sliceRRSummarySection.text",
      "condition": [ "cmp-1" ],
      "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.text"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.mode",
      "requirements": "Sections are used in various ways, and it must be known in what way it is safe to use the entries in them.",
      "min": 0,
      "definition": "How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.",
      "isModifier": false,
      "short": "working | snapshot | changes",
      "mapping": [ {
        "map": "FiveWs.class",
        "identity": "w5"
      }, {
        "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionMode"
        } ],
        "description": "The processing mode that applies to this section."
      },
      "max": "1",
      "id": "Composition.section:sliceRRSummarySection.mode",
      "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.mode"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.orderedBy",
      "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
      "min": 0,
      "definition": "Specifies the order applied to the items in the section entries.",
      "isModifier": false,
      "short": "Order of section entries",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1",
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-order",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionEntryOrder"
        } ],
        "description": "What order applies to the items in the entry."
      },
      "max": "1",
      "id": "Composition.section:sliceRRSummarySection.orderedBy",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.orderedBy"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry",
      "min": 1,
      "definition": "A reference to the actual resource from which the narrative in the section is derived.",
      "isModifier": false,
      "short": "A reference to data that supports this section",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]",
        "identity": "rim"
      }, {
        "map": ".entry",
        "identity": "cda"
      } ],
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "resolve()",
          "type": "profile"
        } ]
      },
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ]
      } ],
      "mustSupport": true,
      "max": "*",
      "id": "Composition.section:sliceRRSummarySection.entry",
      "condition": [ "cmp-2" ],
      "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.entry"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry",
      "min": 1,
      "definition": "A reference to the actual resource from which the narrative in the section is derived.",
      "isModifier": false,
      "short": "RR Summary",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]",
        "identity": "rim"
      }, {
        "map": ".entry",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/rr-summary" ]
      } ],
      "mustSupport": true,
      "sliceName": "sliceRRSummary",
      "max": "1",
      "id": "Composition.section:sliceRRSummarySection.entry:sliceRRSummary",
      "condition": [ "cmp-2" ],
      "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.entry"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.entry",
      "min": 1,
      "definition": "Contains one (if both the patient's home and the provider location have the same responsible agency) or more (if the patient's home and provider location have different responsible agencies) Reportability Information Observations. It may also contain external resources specific to the condition.",
      "isModifier": false,
      "short": "Relevant Reportable Condition",
      "mapping": [ {
        "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]",
        "identity": "rim"
      }, {
        "map": ".entry",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/rr-relevant-reportable-condition-observation" ]
      } ],
      "mustSupport": true,
      "sliceName": "sliceRRCondition",
      "max": "*",
      "id": "Composition.section:sliceRRSummarySection.entry:sliceRRCondition",
      "condition": [ "cmp-2" ],
      "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.entry"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.emptyReason",
      "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
      "min": 0,
      "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
      "isModifier": false,
      "short": "Why the section is empty",
      "mapping": [ {
        "map": ".inboundRelationship[typeCode=SUBJ,code,
        "identity": "rim"
      }, {
        "map": "n/a",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "preferred",
        "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SectionEmptyReason"
        } ],
        "description": "If a section is empty, why it is empty."
      },
      "max": "1",
      "id": "Composition.section:sliceRRSummarySection.emptyReason",
      "condition": [ "cmp-2" ],
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Composition.section.emptyReason"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Composition.section.section",
      "min": 0,
      "definition": "A nested sub-section within this section.",
      "isModifier": false,
      "short": "Nested Section",
      "mapping": [ {
        "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]",
        "identity": "rim"
      }, {
        "map": ".component.section",
        "identity": "cda"
      } ],
      "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
      "max": "*",
      "id": "Composition.section:sliceRRSummarySection.section",
      "condition": [ "cmp-1" ],
      "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Composition.section.section"
      },
      "isSummary": false
    } ]
  },
  "status": "active",
  "id": "c7c5504e-1231-4478-85f8-34c80ef7aad5",
  "kind": "resource",
  "url": "http://hl7.org/fhir/us/ecr/StructureDefinition/rr-composition",
  "version": "2.1.0",
  "differential": {
    "element": [ {
      "id": "Composition",
      "path": "Composition",
      "short": "Reportability Response Composition",
      "definition": "This Composition profile represents the Reportability Response that will be created in response to an electronic Initial Case Report Composition.",
      "isModifier": false,
      "mustSupport": true
    }, {
      "id": "Composition.extension:sliceExtensionInformationRecipient",
      "min": 1,
      "path": "Composition.extension",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-information-recipient-extension" ]
      } ],
      "short": "Reportability Response recipient(s)",
      "sliceName": "sliceExtensionInformationRecipient",
      "definition": "Reporting may be identified for multiple PHAs by the PHA system (or its intermediary) (because the patient's residence and the provider location are in separate jurisdictions) including other identified organization (such as an HIE) to which the eICR (if deemed reportable) and/or the Reportability Response will be routed."
    }, {
      "id": "Composition.type",
      "path": "Composition.type",
      "short": "Public Health Reportability Response Document",
      "definition": "The type of this Composition is a Public Health Reportability Response Document",
      "mustSupport": true,
      "patternCodeableConcept": {
        "coding": [ {
          "code": "88085-6",
          "system": "http://loinc.org"
        } ]
      }
    }, {
      "id": "Composition.subject",
      "min": 1,
      "path": "Composition.subject",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-patient" ]
      } ],
      "short": "Patient",
      "mustSupport": true
    }, {
      "id": "Composition.encounter",
      "path": "Composition.encounter",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-encounter" ]
      } ],
      "short": "eICR Encounter",
      "definition": "The encounter during which the eICR was triggered.",
      "mustSupport": true
    }, {
      "id": "Composition.author",
      "min": 1,
      "path": "Composition.author",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-organization", "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner", "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-practitionerrole" ]
      } ],
      "short": "Author",
      "definition": "For the Reportability Response Composition, this will most likely be the software that is generating the response, though this will not always the be case.",
      "mustSupport": true
    }, {
      "id": "Composition.custodian",
      "min": 1,
      "path": "Composition.custodian"
    }, {
      "id": "Composition.relatesTo",
      "path": "Composition.relatesTo",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "code",
          "type": "value"
        } ]
      },
      "mustSupport": true
    }, {
      "id": "Composition.relatesTo:sliceTransformed",
      "max": "1",
      "min": 0,
      "path": "Composition.relatesTo",
      "short": "Document or Composition that this Composition is transformed from",
      "sliceName": "sliceTransformed",
      "definition": "Document of Composition that this Composition is transformed from"
    }, {
      "id": "Composition.relatesTo:sliceTransformed.code",
      "path": "Composition.relatesTo.code",
      "fixedCode": "transforms"
    }, {
      "id": "Composition.relatesTo:sliceTransformed.target[x]",
      "path": "Composition.relatesTo.target[x]",
      "type": [ {
        "code": "Identifier"
      } ],
      "short": "Identifier of the Document or Composition transformed",
      "definition": "Identifier of the Document or Composition transformed"
    }, {
      "id": "Composition.relatesTo:sliceReplaced",
      "max": "1",
      "min": 0,
      "path": "Composition.relatesTo",
      "short": "Document or Composition that this Composition replaces",
      "sliceName": "sliceReplaced",
      "definition": "Document or Composition that this Composition replaces"
    }, {
      "id": "Composition.relatesTo:sliceReplaced.code",
      "path": "Composition.relatesTo.code",
      "fixedCode": "replaces"
    }, {
      "id": "Composition.relatesTo:sliceReplaced.target[x]",
      "path": "Composition.relatesTo.target[x]",
      "short": "Identifier/Reference to the Document or Composition transformed",
      "definition": "Identifier/Reference to the Document or Composition transformed"
    }, {
      "id": "Composition.section",
      "path": "Composition.section",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "code",
          "type": "value"
        } ]
      }
    }, {
      "path": "Composition.section",
      "min": 0,
      "definition": "This section contains the subject (short description) of the Reportability Response Document. This information can be used in a work queue or an email subject and gives a concise description of the determination of reportability. This section is present in the Reportability Response Document if the eICR Document was processed and is not present if the eICR Document was not processed. The narrative in this section is displayed first in the Reportability Response Document and consists of paragraphs containing the 'Subject:' heading and the subject text.",
      "isModifier": false,
      "short": "Reportability Response Subject Section",
      "mustSupport": true,
      "sliceName": "sliceRRSubjectSection",
      "max": "1",
      "id": "Composition.section:sliceRRSubjectSection"
    }, {
      "id": "Composition.section:sliceRRSubjectSection.code",
      "min": 1,
      "path": "Composition.section.code",
      "short": "Reportable condition response information and summary Document",
      "isModifier": false,
      "mustSupport": true,
      "patternCodeableConcept": {
        "coding": [ {
          "code": "88084-9",
          "system": "http://loinc.org"
        } ]
      }
    }, {
      "id": "Composition.section:sliceRRSubjectSection.text",
      "min": 1,
      "path": "Composition.section.text",
      "short": "Reportability Response Subject Section",
      "example": [ {
        "label": "General",
        "valueString": "Public Health Reporting Document: one or more conditions are reportable, or may be reportable to public health."
      } ],
      "definition": "Contains the subject (short description) of the Reportability Response Document. This information can be used in a work queue or an email subject and gives a concise description of the determination of reportability.",
      "mustSupport": true
    }, {
      "path": "Composition.section",
      "min": 1,
      "definition": "This section contains information about the eICR Document to which this document is a response.",
      "isModifier": false,
      "short": "Electronic Initial Case Report Section",
      "mustSupport": true,
      "sliceName": "sliceEICRSection",
      "max": "1",
      "id": "Composition.section:sliceEICRSection"
    }, {
      "id": "Composition.section:sliceEICRSection.extension",
      "path": "Composition.section.extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "path": "Composition.section.extension",
      "min": 1,
      "definition": "This extension constains processing status information about the eICR.",
      "short": "eICR Processing Status",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/rr-eicr-processing-status-extension" ]
      } ],
      "mustSupport": true,
      "sliceName": "extensionEICRProcessingStatus",
      "max": "1",
      "id": "Composition.section:sliceEICRSection.extension:extensionEICRProcessingStatus"
    }, {
      "path": "Composition.section.extension",
      "min": 0,
      "definition": "The presence of this extension indicates whether or not the eICR Document for which this Reportability Response is a response, was either alternately or manually initiated. The eICR could also contain trigger codes (automatic trigger code initiation).",
      "short": "Alternately or Manually Initiated eICR",
      "mapping": [ {
        "map": "[RR R1 STU1] Manually Initiated eICR/code",
        "comment": "No mapping for Alternately Initiation eICR in the current version of CDA RR",
        "identity": "eCR-CDA"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-initiation-type-extension" ]
      } ],
      "mustSupport": true,
      "sliceName": "extensionAlternatelyManuallyInitiatedEICR",
      "max": "1",
      "id": "Composition.section:sliceEICRSection.extension:extensionAlternatelyManuallyInitiatedEICR"
    }, {
      "path": "Composition.section.extension",
      "min": 0,
      "definition": "This extension contains the date and time of eICR receipt.",
      "short": "Date and time of eICR receipt",
      "mapping": [ {
        "map": "[RR R1 STU1] Received eICR Information/eICR External Document Reference/effectiveTime",
        "identity": "eCR-CDA"
      } ],
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/rr-eicr-receipt-time-extension" ]
      } ],
      "mustSupport": true,
      "sliceName": "extensionEICRReceiptTime",
      "max": "1",
      "id": "Composition.section:sliceEICRSection.extension:extensionEICRReceiptTime"
    }, {
      "id": "Composition.section:sliceEICRSection.code",
      "min": 1,
      "path": "Composition.section.code",
      "short": "Initial case report processing information Document",
      "isModifier": false,
      "mustSupport": true,
      "patternCodeableConcept": {
        "coding": [ {
          "code": "88082-3",
          "system": "http://loinc.org"
        } ]
      }
    }, {
      "id": "Composition.section:sliceEICRSection.entry",
      "path": "Composition.section.entry",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "resolve()",
          "type": "profile"
        } ]
      },
      "mustSupport": true
    }, {
      "id": "Composition.section:sliceEICRSection.entry:sliceEICRDocument",
      "path": "Composition.section.entry",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/eicr-document-bundle", "http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference" ]
      } ],
      "short": "Reference to eICR Document Bundle or eICR CDA document",
      "sliceName": "sliceEICRDocument",
      "definition": "Reference to eICR Document Bundle or eICR CDA document. Use identifier for eICR Document Bundle identifier 2. Use display for eICR file name (or other identifying string): recommended primarily for dealing with eICR error cases. In the case where an eICR document is unreadable for some reason, it is possible that the only identifying information is the eICR filename (or other identifying string).",
      "mustSupport": true
    }, {
      "id": "Composition.section:sliceEICRSection.entry:sliceEICRDocument.identifier",
      "path": "Composition.section.entry.identifier",
      "short": "eICR Document Bundle identifier"
    }, {
      "id": "Composition.section:sliceEICRSection.entry:sliceEICRDocument.display",
      "path": "Composition.section.entry.display",
      "short": "Filename of eICR",
      "definition": "The filename is recommended primarily for dealing with eICR error cases. In the case where an eICR document is unreadable for some reason, it is likely that the setId and versionNumber would be unavailable, and it is possible that the only identifying information is the eICR document filename.",
      "mustSupport": true
    }, {
      "path": "Composition.section",
      "min": 0,
      "definition": "This section contains the Reportability Response Summary profile and the Reportability Response Priority profile.\n\nThis section is present in the Reportability Response Document if the eICR Document was processed and is not present if the eICR Document was not processed.\n\nThe narrative in this section is displayed last in the Reportability Response Document and consists of the following elements in the following order (see example included in IG):\n\n* Paragraphs containing the \"Summary:\" heading and the summary text\n* A list containing external resources from the following categories (code specified in External Resources/code), in the order specified below:\n    * Outbreak- or Cluster-related\n    * Additional reporting needs\n    * Additional detection and/or laboratory testing needs\n    * Treatment and/or prevention\n    * PHA contact information\n* A list containing external resources from the category (code specified in External Resources/code):\n    * Additional resources",
      "isModifier": false,
      "short": "Reportability Response Summary Section",
      "mustSupport": true,
      "sliceName": "sliceRRSummarySection",
      "max": "1",
      "id": "Composition.section:sliceRRSummarySection"
    }, {
      "id": "Composition.section:sliceRRSummarySection.extension",
      "path": "Composition.section.extension",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      }
    }, {
      "path": "Composition.section.extension",
      "min": 1,
      "definition": "Represents a priority for the reportability response overall. It has been calculated from the highest priority of any included External Resources or the highest priority of included Conditions based on a separate, jurisdictionally developed priority list. This priority should be used for EHR workflow including notification, alerting, routing and queueing.",
      "short": "RR Priority",
      "type": [ {
        "code": "Extension",
        "profile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/rr-priority-extension" ]
      } ],
      "mustSupport": true,
      "sliceName": "extensionRRPriority",
      "max": "1",
      "id": "Composition.section:sliceRRSummarySection.extension:extensionRRPriority"
    }, {
      "id": "Composition.section:sliceRRSummarySection.code",
      "min": 1,
      "path": "Composition.section.code",
      "short": "Document summary",
      "isModifier": false,
      "mustSupport": true,
      "patternCodeableConcept": {
        "coding": [ {
          "code": "55112-7",
          "system": "http://loinc.org"
        } ]
      }
    }, {
      "id": "Composition.section:sliceRRSummarySection.text",
      "min": 1,
      "path": "Composition.section.text",
      "short": "RR Summary Section narrative",
      "mustSupport": true
    }, {
      "id": "Composition.section:sliceRRSummarySection.entry",
      "min": 1,
      "path": "Composition.section.entry",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "resolve()",
          "type": "profile"
        } ]
      },
      "mustSupport": true
    }, {
      "id": "Composition.section:sliceRRSummarySection.entry:sliceRRSummary",
      "max": "1",
      "min": 1,
      "path": "Composition.section.entry",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/rr-summary" ]
      } ],
      "short": "RR Summary",
      "sliceName": "sliceRRSummary",
      "mustSupport": true
    }, {
      "id": "Composition.section:sliceRRSummarySection.entry:sliceRRCondition",
      "min": 1,
      "path": "Composition.section.entry",
      "type": [ {
        "code": "Reference",
        "targetProfile": [ "http://hl7.org/fhir/us/ecr/StructureDefinition/rr-relevant-reportable-condition-observation" ]
      } ],
      "short": "Relevant Reportable Condition",
      "sliceName": "sliceRRCondition",
      "definition": "Contains one (if both the patient's home and the provider location have the same responsible agency) or more (if the patient's home and provider location have different responsible agencies) Reportability Information Observations. It may also contain external resources specific to the condition.",
      "mustSupport": true
    } ]
  },
  "contact": [ {
    "name": "HL7 International - Public Health",
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/pher",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/us/ecr/StructureDefinition/us-ph-composition"
}