FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureDefinition/au-ps-composition

Packagehl7.fhir.au.ps
Resource TypeStructureDefinition
Idau-ps-composition
FHIR VersionR4
Sourcehttp://hl7.org.au/fhir/ps/https://build.fhir.org/ig/hl7au/au-fhir-ps/StructureDefinition-au-ps-composition.html
URLhttp://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition
Version0.4.0-cibuild
Statusdraft
Date2025-08-10T22:56:21+00:00
NameAUPSComposition
TitleAU PS Composition
Realmau
Authorityhl7
DescriptionThis profile sets minimum expectations for a Composition resource in the context of a patient summary in an Australian context. It is based on [AU Base Composition](http://hl7.org.au/fhir/StructureDefinition/au-composition) and imposes [Composition (IPS)](http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips). AU Patient Summary (AU PS) is specified in this guide as a HL7 FHIR document (a Bundle including a Composition), composed by a set of potentially reusable 'minimal' data blocks (the AU PS profiles).
CopyrightUsed by permission of HL7 International, all rights reserved Creative Commons License. HL7 Australia© 2022+; Licensed Under Creative Commons No Rights Reserved.
TypeComposition
Kindresource

Resources that use this resource

StructureDefinition
au-ps-bundleAU PS Bundle
au-ps-compositionAU PS Composition

Resources that this resource uses

StructureDefinition
au-ps-allergyintoleranceAU PS AllergyIntolerance
au-ps-compositionAU PS Composition
au-ps-conditionAU PS Condition
au-ps-diagnosticresult-pathAU PS Pathology Result Observation
au-ps-immunizationAU PS Immunization
au-ps-medicationrequestAU PS MedicationRequest
au-ps-medicationstatementAU PS MedicationStatement
au-ps-organizationAU PS Organization
au-ps-patientAU PS Patient
au-ps-practitionerAU PS Practitioner
au-ps-practitionerroleAU PS PractitionerRole
au-ps-procedureAU PS Procedure
au-ps-relatedpersonAU PS RelatedPerson
au-ps-smokingstatusAU PS Smoking Status
au-compositionAU Base Composition
CodeableConcept-uv-ipsCodeable Concept (IPS)
Composition-uv-ipsComposition (IPS)
DeviceUseStatement-uv-ipsDeviceUseStatement (IPS)
DiagnosticReport-uv-ipsDiagnosticReport (IPS)
Flag-alert-uv-ipsFlag - Alert (IPS)
Observation-alcoholuse-uv-ipsObservation Social History - Alcohol Use (IPS)
Observation-pregnancy-outcome-uv-ipsObservation Pregnancy - Outcome (IPS)
Observation-pregnancy-status-uv-ipsObservation Pregnancy - Status (IPS)
Observation-results-radiology-uv-ipsObservation Results - Radiology (IPS)

Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition au-ps-composition

NameFlagsCard.TypeDescription & Constraintsdoco
.. Composition 0..*AUBaseCompositionAU Patient Summary Composition
This profile also imposes the profile Composition (IPS)
... meta
.... profile SO0..*canonical(StructureDefinition)Conformance claim to a specific Patient Summary specification
ObligationsActor
MAY:able-to-populateAU PS Producer
... text SO0..1NarrativeText summary of the resource, for human interpretation
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
... identifier SO0..1IdentifierVersion-independent identifier for the Composition
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
... status SO1..1codepreliminary | final | amended | entered-in-error
ObligationsActor
SHALL:populateAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
... type SO1..1CodeableConceptIPSKind of composition ("Patient Summary")
Required Pattern: At least the following
ObligationsActor
SHALL:populateAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
.... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
..... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
..... code1..1codeSymbol in syntax defined by the system
Fixed Value: 60591-5
... subject SO1..1Reference(AU PS Patient)Who and/or what the composition is about
ObligationsActor
SHALL:populateAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
.... reference SO1..1stringLiteral reference, Relative, internal or absolute URL
ObligationsActor
SHALL:populateAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
... date SO1..1dateTimeComposition editing time
ObligationsActor
SHALL:populateAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
... author SO1..*Reference(AU PS Practitioner | AU PS PractitionerRole | Device | AU PS Patient | AU PS RelatedPerson | AU PS Organization)Who and/or what authored the patient summary
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
... title SO1..1stringPatient Summary
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
... attester SO0..*BackboneElementAttests to accuracy of composition
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
.... mode SO1..1codepersonal | professional | legal | official
ObligationsActor
SHALL:populateAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
.... time SO0..1dateTimeWhen the composition was attested
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
.... party SO0..1Reference(AU PS Patient | AU PS RelatedPerson | AU PS Practitioner | AU PS PractitionerRole | AU PS Organization)Who attested the composition
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
... custodian SO0..1Reference(AU PS Organization)Organization which maintains the composition
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
... relatesTo 0..*BackboneElementRelationships to other compositions/documents
.... target[x] 1..1Target of the relationship
..... targetIdentifierIdentifier
..... targetReferenceReference(Composition | Composition (IPS) | AU PS Composition)
... Slices for event 0..*BackboneElementThe clinical service(s) being documented
Slice: Unordered, Open by pattern:code
.... event:careProvisioningEvent SO0..1BackboneElementThe care provisioning being documented
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code SO1..1CodeableConceptCode(s) that apply to the event being documented
Required Pattern: At least the following
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActClass
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: PCPR
..... period SO0..1PeriodThe period covered by the documentation
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
... Slices for section SO3..*BackboneElementSections composing the patient summary
Slice: Unordered, Open by pattern:code
ObligationsActor
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
.... section:All Slices Content/Rules for all slices
..... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
...... extension:section-note 0..1AnnotationAdditional notes that apply to the section (but not to specific resource)
URL: http://hl7.org/fhir/StructureDefinition/note
..... title SO1..1stringLabel for section (e.g. for ToC)
ObligationsActor
SHALL:able-to-populateAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... text SO1..1NarrativeText summary of the section, for human interpretation
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... section 0..0
.... section:sectionProblems SOC1..1BackboneElementPatient Summary Problems Section
Constraints: ips-comp-1
ObligationsActor
SHALL:populateAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 11450-4
..... Slices for entry 0..*Reference(Condition | DocumentReference)Clinical problems or conditions currently being monitored for the patient
Slice: Unordered, Open by profile:resolve()
...... entry:problem SO0..*Reference(AU PS Condition)A reference to data that supports this section
ObligationsActor
SHALL:able-to-populateAU PS Producer
SHOULD:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... emptyReason SO0..1CodeableConceptWhy the section is empty
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
.... section:sectionAllergies SOC1..1BackboneElementPatient Summary Allergies and Intolerances Section
Constraints: ips-comp-1
ObligationsActor
SHALL:populateAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 48765-2
..... Slices for entry 0..*Reference(AllergyIntolerance | DocumentReference)Relevant allergies or intolerances (conditions) for that patient
Slice: Unordered, Open by profile:resolve()
...... entry:allergyOrIntolerance SO0..*Reference(AU PS AllergyIntolerance)A reference to data that supports this section
ObligationsActor
SHALL:able-to-populateAU PS Producer
SHOULD:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... emptyReason SO0..1CodeableConceptWhy the section is empty
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
.... section:sectionMedications SOC1..1BackboneElementPatient Summary Medication Summary Section
Constraints: ips-comp-1
ObligationsActor
SHALL:populateAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 10160-0
..... Slices for entry 0..*Reference(MedicationStatement | MedicationRequest | MedicationAdministration | MedicationDispense | DocumentReference)Medications relevant for the scope of the patient summary
Slice: Unordered, Open by profile:resolve()
...... entry:medicationStatementOrRequest SO0..*Reference(AU PS MedicationStatement | AU PS MedicationRequest)A reference to data that supports this section
ObligationsActor
SHALL:able-to-populateAU PS Producer
SHOULD:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... emptyReason SO0..1CodeableConceptWhy the section is empty
ObligationsActor
SHALL:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
.... section:sectionImmunizations SO0..1BackboneElementPatient Summary Immunizations Section
ObligationsActor
SHOULD:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 11369-6
..... Slices for entry 0..*Reference(Immunization | DocumentReference)Patient's immunisation status and pertinent history
Slice: Unordered, Open by profile:resolve()
...... entry:immunization SO0..*Reference(AU PS Immunization)A reference to data that supports this section
ObligationsActor
SHOULD:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
.... section:sectionResults SO0..1BackboneElementPatient Summary Results Section
ObligationsActor
SHOULD:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 30954-2
..... Slices for entry 0..*Reference(Observation | DiagnosticReport | DocumentReference)Relevant observation results collected on the patient or produced on in-vitro biologic specimens collected from the patient
Slice: Unordered, Open by type:resolve(), profile:resolve()
...... entry:results-observation-laboratory-pathology SO0..*Reference(AU PS Pathology Result Observation)A reference to data that supports this section
ObligationsActor
SHOULD:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
...... entry:results-observation-radiology SO0..*Reference(Observation Results - Radiology (IPS))A reference to data that supports this section
ObligationsActor
SHOULD:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
...... entry:results-diagnosticReport SO0..*Reference(DiagnosticReport (IPS))A reference to data that supports this section
ObligationsActor
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
.... section:sectionProceduresHx SO0..1BackboneElementPatient Summary History of Procedures Section
ObligationsActor
SHOULD:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 47519-4
..... Slices for entry 0..*Reference(Procedure | DocumentReference)Patient past procedures pertinent to the scope of this patient summary
Slice: Unordered, Open by profile:resolve()
...... entry:procedure SO0..*Reference(AU PS Procedure)A reference to data that supports this section
ObligationsActor
SHOULD:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
.... section:sectionMedicalDevices SO0..1BackboneElementPatient Summary Medical Devices Section
ObligationsActor
SHOULD:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 46264-8
..... Slices for entry 0..*Reference(DeviceUseStatement | DocumentReference)Patient history of medical device use
Slice: Unordered, Open by profile:resolve()
...... entry:deviceStatement SO0..*Reference(DeviceUseStatement (IPS))A reference to data that supports this section
ObligationsActor
SHOULD:populate-if-knownAU PS Producer
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
.... section:sectionAdvanceDirectives SO0..1BackboneElementPatient Summary Advance Directives Section
ObligationsActor
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 42348-3
..... Slices for entry 0..*Reference(Consent | DocumentReference)A patient's advance directives
Slice: Unordered, Open by profile:resolve()
...... entry:advanceDirectivesConsent 0..*Reference(Consent)A reference to data that supports this section
.... section:sectionAlerts SO0..1BackboneElementPatient Summary Alerts Section
ObligationsActor
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 104605-1
..... Slices for entry 0..*Reference(Flag | DocumentReference)Alert information
Slice: Unordered, Open by profile:resolve()
...... entry:alertsFlag 0..*Reference(Flag - Alert (IPS))A reference to data that supports this section
.... section:sectionFunctionalStatus SO0..1BackboneElementPatient Summary Functional Status Section
ObligationsActor
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 47420-5
..... Slices for entry 0..*Reference(Condition | ClinicalImpression | DocumentReference)Disabilities and functional assessments
Slice: Unordered, Open by profile:resolve()
...... entry:disability 0..*Reference(AU PS Condition)A reference to data that supports this section
...... entry:functionalAssessment 0..*Reference(ClinicalImpression)A reference to data that supports this section
.... section:sectionPastProblems SO0..1BackboneElementPatient Summary History of Past Illness Section
ObligationsActor
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 11348-0
..... Slices for entry 0..*Reference(Condition | DocumentReference)Conditions the patient suffered in the past
Slice: Unordered, Open by profile:resolve()
...... entry:pastProblem 0..*Reference(AU PS Condition)A reference to data that supports this section
.... section:sectionPregnancyHx SO0..1BackboneElementPatient Summary History of Pregnancy Section
ObligationsActor
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 10162-6
..... Slices for entry 0..*Reference(Observation | DocumentReference)Current pregnancy status and, optionally, information about the outcome of earlier pregnancies
Slice: Unordered, Open by profile:resolve()
...... entry:pregnancyStatus 0..*Reference(Observation Pregnancy - Status (IPS))A reference to data that supports this section
...... entry:pregnancyOutcome 0..*Reference(Observation Pregnancy - Outcome (IPS))A reference to data that supports this section
.... section:sectionPatientStory SO0..1BackboneElementPatient Summary Patient Story Section
ObligationsActor
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 81338-6
..... entry 0..*Reference(Resource)Patient Story resources
.... section:sectionPlanOfCare SO0..1BackboneElementPatient Summary Plan of Care Section
ObligationsActor
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 18776-5
..... Slices for entry 0..*Reference(CarePlan | DocumentReference)Structured care plans
Slice: Unordered, Open by profile:resolve()
...... entry:carePlan 0..*Reference(CarePlan)A reference to data that supports this section
...... entry:immunizationRecommendation 0..*Reference(ImmunizationRecommendation)A reference to data that supports this section
.... section:sectionSocialHistory SO0..1BackboneElementPatient Summary Social History Section
ObligationsActor
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 29762-2
..... Slices for entry 0..*Reference(Observation | DocumentReference)Health related "lifestyle factors" or "lifestyle observations"
Slice: Unordered, Open by profile:resolve()
...... entry:smokingTobaccoUse 0..1Reference(AU PS Smoking Status)A reference to data that supports this section
...... entry:alcoholUse 0..1Reference(Observation Social History - Alcohol Use (IPS))A reference to data that supports this section
.... section:sectionVitalSigns SO0..1BackboneElementPatient Summary Vital Signs Section
ObligationsActor
SHALL:handleAU PS Consumer
SHOULD:displayAU PS Consumer
..... code 1..1CodeableConceptIPSClassification of section (recommended)
Required Pattern: At least the following
...... coding1..*CodingCode defined by a terminology system
Fixed Value: (Complex)
....... system1..1uriIdentity of the terminology system
Fixed Value: http://loinc.org
....... code1..1codeSymbol in syntax defined by the system
Fixed Value: 8716-3
..... Slices for entry 0..*Reference(Observation | DocumentReference)Notable vital signs or physical findings
Slice: Unordered, Open by profile:resolve()
...... entry:vitalSign 0..*Reference(Vital Signs Profile)A reference to data that supports this section

doco Documentation for this format

Source

{
  "resourceType": "StructureDefinition",
  "id": "au-ps-composition",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 0
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-imposeProfile",
      "valueCanonical": "http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "draft",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://hl7.org.au/fhir/ps/ImplementationGuide/hl7.fhir.au.ps"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition",
  "version": "0.4.0-cibuild",
  "name": "AUPSComposition",
  "title": "AU PS Composition",
  "status": "draft",
  "date": "2025-08-10T22:56:21+00:00",
  "publisher": "HL7 Australia",
  "contact": [
    {
      "name": "HL7 Australia FHIR Work Group",
      "telecom": [
        {
          "system": "url",
          "value": "https://confluence.hl7.org/display/HAFWG",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This profile sets minimum expectations for a Composition resource in the context of a patient summary in an Australian context. It is based on [AU Base Composition](http://hl7.org.au/fhir/StructureDefinition/au-composition) and imposes [Composition (IPS)](http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips). \r\nAU Patient Summary (AU PS) is specified in this guide as a HL7 FHIR document (a Bundle including a Composition), composed by a set of potentially reusable 'minimal' data blocks (the AU PS profiles).",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "AU"
        }
      ]
    }
  ],
  "copyright": "Used by permission of HL7 International, all rights reserved Creative Commons License. HL7 Australia© 2022+; Licensed Under Creative Commons No Rights Reserved.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "fhirdocumentreference",
      "uri": "http://hl7.org/fhir/documentreference",
      "name": "FHIR DocumentReference"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org.au/fhir/StructureDefinition/au-composition",
  "derivation": "constraint",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "6.0.0-ci-build"
      }
    ],
    "element": [
      {
        "id": "Composition",
        "path": "Composition",
        "short": "AU Patient Summary Composition",
        "definition": "AU Patient Summary Composition. A composition is a set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. While a Composition defines the structure, it does not actually contain the content: rather the full content of a document is contained in a Bundle, of which the Composition is the first resource contained.",
        "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.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition",
          "min": 0,
          "max": "*"
        },
        "constraint": [
          {
            "key": "dom-2",
            "severity": "error",
            "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
            "expression": "contained.contained.empty()",
            "xpath": "not(parent::f:contained and f:contained)",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "key": "dom-3",
            "severity": "error",
            "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",
            "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()",
            "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"
          },
          {
            "key": "dom-4",
            "severity": "error",
            "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
            "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
            "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"
          },
          {
            "key": "dom-5",
            "severity": "error",
            "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
            "expression": "contained.meta.security.empty()",
            "xpath": "not(exists(f:contained/*/f:meta/f:security))",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          },
          {
            "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."
              }
            ],
            "key": "dom-6",
            "severity": "warning",
            "human": "A resource should have narrative for robust management",
            "expression": "text.`div`.exists()",
            "xpath": "exists(f:text/h:div)",
            "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "Entity. Role, or Act"
          },
          {
            "identity": "workflow",
            "map": "Event"
          },
          {
            "identity": "rim",
            "map": "Document[classCode=\"DOC\" and moodCode=\"EVN\" and isNormalAct()]"
          },
          {
            "identity": "cda",
            "map": "ClinicalDocument"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "when described by DocumentReference"
          }
        ]
      },
      {
        "id": "Composition.id",
        "path": "Composition.id",
        "short": "Logical id of this artifact",
        "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Composition.meta",
        "path": "Composition.meta",
        "short": "Metadata about the resource",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.meta",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Meta"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Composition.meta.id",
        "path": "Composition.meta.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.meta.extension",
        "path": "Composition.meta.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "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.",
        "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.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.meta.versionId",
        "path": "Composition.meta.versionId",
        "short": "Version specific identifier",
        "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
        "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Meta.versionId",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "id"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Composition.meta.lastUpdated",
        "path": "Composition.meta.lastUpdated",
        "short": "When the resource version last changed",
        "definition": "When the resource last changed - e.g. when the version changed.",
        "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Meta.lastUpdated",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "instant"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Composition.meta.source",
        "path": "Composition.meta.source",
        "short": "Identifies where the resource comes from",
        "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
        "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Meta.source",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Composition.meta.profile",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "MAY:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.meta.profile",
        "short": "Conformance claim to a specific Patient Summary specification",
        "definition": "The conformance of this Composition to a specific version of a Patient Summary specification (e.g. AU PS 1.0.0 conformance claim http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|1.0.0, IPS 2.0.0 conformance claim http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips|2.0.0)",
        "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Meta.profile",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "canonical",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Composition.meta.security",
        "path": "Composition.meta.security",
        "short": "Security Labels applied to this resource",
        "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
        "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Meta.security",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SecurityLabels"
            }
          ],
          "strength": "extensible",
          "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
          "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
        }
      },
      {
        "id": "Composition.meta.tag",
        "path": "Composition.meta.tag",
        "short": "Tags applied to this resource",
        "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
        "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Meta.tag",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "Tags"
            }
          ],
          "strength": "example",
          "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
          "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
        }
      },
      {
        "id": "Composition.implicitRules",
        "path": "Composition.implicitRules",
        "short": "A set of rules under which this content was created",
        "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.",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.implicitRules",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": true,
        "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
      },
      {
        "id": "Composition.language",
        "path": "Composition.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "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).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Resource.language",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "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"
            }
          ],
          "strength": "preferred",
          "description": "A human language.",
          "valueSet": "http://hl7.org/fhir/ValueSet/languages"
        }
      },
      {
        "id": "Composition.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.text",
        "short": "Text summary of the resource, for human interpretation",
        "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.",
        "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.",
        "alias": [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min": 0,
        "max": "1",
        "base": {
          "path": "DomainResource.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "Act.text?"
          }
        ]
      },
      {
        "id": "Composition.contained",
        "path": "Composition.contained",
        "short": "Contained, inline Resources",
        "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.",
        "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.",
        "alias": [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.contained",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Resource"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.extension",
        "path": "Composition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.extension:informationRecipient",
        "path": "Composition.extension",
        "sliceName": "informationRecipient",
        "short": "Who and/or what should receive a copy of the composition",
        "definition": "A recipient who should receive a copy of the composition. A recipient is an entity to whom a copy of the composition is directed at the time of authoring of the composition.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org.au/fhir/StructureDefinition/information-recipient"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.modifierExtension",
        "path": "Composition.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "DomainResource.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.identifier",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.identifier",
        "short": "Version-independent identifier for the Composition",
        "definition": "A version-independent identifier for the Composition. This identifier stays constant as the composition is changed over time.",
        "comment": "Similar to ClinicalDocument/setId in CDA. See discussion in resource definition for how these relate.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.identifier"
          },
          {
            "identity": "w5",
            "map": "FiveWs.identifier"
          },
          {
            "identity": "rim",
            "map": "Document.id / Document.setId"
          },
          {
            "identity": "cda",
            "map": ".setId"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.masterIdentifier"
          }
        ]
      },
      {
        "id": "Composition.status",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.status",
        "short": "preliminary | final | amended | entered-in-error",
        "definition": "The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document.",
        "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.",
        "requirements": "Need to be able to mark interim, amended, or withdrawn compositions or documents.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.status",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": true,
        "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,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionStatus"
            }
          ],
          "strength": "required",
          "description": "The workflow/clinical status of the composition.",
          "valueSet": "http://hl7.org/fhir/ValueSet/composition-status|4.0.1"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.status"
          },
          {
            "identity": "w5",
            "map": "FiveWs.status"
          },
          {
            "identity": "rim",
            "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": "cda",
            "map": "n/a"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.status"
          }
        ]
      },
      {
        "id": "Composition.type",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.type",
        "short": "Kind of composition (\"Patient Summary\")",
        "definition": "Specifies that this composition refers to a Patient Summary (Loinc \"60591-5\")\r\n",
        "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.",
        "requirements": "Key metadata element describing the composition, used in searching/filtering.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.type",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "60591-5"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DocumentType"
            }
          ],
          "strength": "preferred",
          "description": "Type of a composition.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-typecodes"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.code"
          },
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.type"
          }
        ]
      },
      {
        "id": "Composition.category",
        "path": "Composition.category",
        "short": "Categorization of Composition",
        "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.",
        "comment": "This is a metadata field from [XDS/MHD](http://wiki.ihe.net/index.php?title=Mobile_access_to_Health_Documents_(MHD)).",
        "requirements": "Helps humans to assess whether the composition is of interest when viewing an index of compositions or documents.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.category",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DocumentCategory"
            }
          ],
          "strength": "example",
          "description": "High-level kind of a clinical document at a macro level.",
          "valueSet": "http://hl7.org/fhir/ValueSet/document-classcodes"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.subject"
          },
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
          },
          {
            "identity": "cda",
            "map": "n/a"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumenttReference.category"
          }
        ]
      },
      {
        "id": "Composition.subject",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.subject",
        "short": "Who and/or what the composition is about",
        "definition": "Who or what the composition is about.\r\nIn general a composition can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure).\r\nFor the AU PS the subject is always the patient.",
        "comment": "For clinical documents, this is usually the patient.",
        "requirements": "Essential metadata for searching for the composition. Identifies who and/or what the composition/document is about.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.subject",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-patient"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.subject[x]"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"SBJ\"].role[typeCode=\"PAT\"]"
          },
          {
            "identity": "cda",
            "map": ".recordTarget"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.subject"
          },
          {
            "identity": "w5",
            "map": "FiveWs.subject"
          }
        ]
      },
      {
        "id": "Composition.subject.id",
        "path": "Composition.subject.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.subject.extension",
        "path": "Composition.subject.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "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.",
        "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.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.subject.reference",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.subject.reference",
        "short": "Literal reference, Relative, internal or absolute URL",
        "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.",
        "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.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Reference.reference",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "ref-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.subject.type",
        "path": "Composition.subject.type",
        "short": "Type the reference refers to (e.g. \"Patient\")",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.type",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "uri"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "FHIRResourceTypeExt"
            }
          ],
          "strength": "extensible",
          "description": "Aa resource (or, for logical models, the URI of the logical model).",
          "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.subject.identifier",
        "path": "Composition.subject.identifier",
        "short": "Logical reference, when literal reference is not known",
        "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.",
        "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).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.identifier",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".identifier"
          }
        ]
      },
      {
        "id": "Composition.subject.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Composition.subject.display",
        "short": "Text alternative for the resource",
        "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Reference.display",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.encounter",
        "path": "Composition.encounter",
        "short": "Context of the Composition",
        "definition": "Describes the clinical encounter or type of care this documentation is associated with.",
        "requirements": "Provides context for the composition and supports searching.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.encounter",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Encounter"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.context"
          },
          {
            "identity": "w5",
            "map": "FiveWs.context"
          },
          {
            "identity": "rim",
            "map": "unique(highest(./outboundRelationship[typeCode=\"SUBJ\" and isNormalActRelationship()], priorityNumber)/target[moodCode=\"EVN\" and classCode=(\"ENC\", \"PCPR\") and isNormalAct])"
          },
          {
            "identity": "cda",
            "map": ".componentOf.encompassingEncounter"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.context.encounter"
          }
        ]
      },
      {
        "id": "Composition.date",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.date",
        "short": "Composition editing time",
        "definition": "The composition editing time, when the composition was last logically changed by the author.",
        "comment": "The Last Modified Date on the composition may be after the date of the document was attested without being changed.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.date",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.occurrence[x]"
          },
          {
            "identity": "w5",
            "map": "FiveWs.done[x]"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime[type=\"TS\"]"
          },
          {
            "identity": "cda",
            "map": ".effectiveTime"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.content.attachment.date, DocumentReference.created"
          }
        ]
      },
      {
        "id": "Composition.author",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.author",
        "short": "Who and/or what authored the patient summary",
        "definition": "Identifies who is responsible for the information in the patient summary, not necessarily who typed it in.\r\n\r\nThe type of author(s) contribute to determine the \"nature\"of the patient summary: e.g. a \"human-curated\" Vs. \"automatically generated\".",
        "requirements": "Identifies who is responsible for the content.",
        "min": 1,
        "max": "*",
        "base": {
          "path": "Composition.author",
          "min": 1,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-practitioner",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-practitionerrole",
              "http://hl7.org/fhir/StructureDefinition/Device",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-patient",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-relatedperson",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-organization"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.performer"
          },
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.agent"
          }
        ]
      },
      {
        "id": "Composition.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.title",
        "short": "Patient Summary",
        "definition": "Official human-readable label for the composition.\r\n\r\nFor this document the title would likely include the text \"Patient Summary\" or any equivalent translation and other relevant document information.",
        "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.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.title",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.description, DocumentReference.content.attachment.title"
          }
        ]
      },
      {
        "id": "Composition.confidentiality",
        "path": "Composition.confidentiality",
        "short": "As defined by affinity domain",
        "definition": "The code specifying the level of confidentiality of the Composition.",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.confidentiality",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DocumentConfidentiality"
            }
          ],
          "strength": "required",
          "description": "Codes specifying the level of confidentiality of the composition.",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ConfidentialityClassification|2014-03-26"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".confidentialityCode"
          },
          {
            "identity": "cda",
            "map": ".confidentialityCode"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.securityLabel"
          }
        ]
      },
      {
        "id": "Composition.attester",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.attester",
        "short": "Attests to accuracy of composition",
        "definition": "A participant who has attested to the accuracy of the composition/document.",
        "comment": "Only list each attester once.",
        "requirements": "Identifies responsibility for the accuracy of the composition content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.attester",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUTHEN\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".authenticator/.legalAuthenticator"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.authenticator"
          }
        ]
      },
      {
        "id": "Composition.attester.id",
        "path": "Composition.attester.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.attester.extension",
        "path": "Composition.attester.extension",
        "short": "Additional content defined by implementations",
        "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.",
        "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.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.attester.modifierExtension",
        "path": "Composition.attester.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.attester.mode",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.attester.mode",
        "short": "personal | professional | legal | official",
        "definition": "The type of attestation the authenticator offers.",
        "requirements": "Indicates the level of authority of the attestation.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.attester.mode",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionAttestationMode"
            }
          ],
          "strength": "required",
          "description": "The way in which a person authenticated a composition.",
          "valueSet": "http://hl7.org/fhir/ValueSet/composition-attestation-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "unique(./modeCode)"
          },
          {
            "identity": "cda",
            "map": "implied by .authenticator/.legalAuthenticator"
          }
        ]
      },
      {
        "id": "Composition.attester.time",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.attester.time",
        "short": "When the composition was attested",
        "definition": "When the composition was attested by the party.",
        "requirements": "Identifies when the information in the composition was deemed accurate.  (Things may have changed since then.).",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.attester.time",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./time[type=\"TS\" and isNormalDatatype()]"
          },
          {
            "identity": "cda",
            "map": ".authenticator.time"
          }
        ]
      },
      {
        "id": "Composition.attester.party",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.attester.party",
        "short": "Who attested the composition",
        "definition": "Who attested the composition in the specified way.",
        "requirements": "Identifies who has taken on the responsibility for accuracy of the composition content.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.attester.party",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-patient",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-relatedperson",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-practitioner",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-practitionerrole",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-organization"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.witness"
          },
          {
            "identity": "rim",
            "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": "cda",
            "map": ".authenticator.assignedEnttty"
          }
        ]
      },
      {
        "id": "Composition.custodian",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.custodian",
        "short": "Organization which maintains the composition",
        "definition": "Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information.",
        "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.",
        "requirements": "Identifies where to go to find the current version, where to report issues, etc.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.custodian",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-organization"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"RCV\"].role[classCode=\"CUST\"].scoper[classCode=\"ORG\" and determinerCode=\"INST\"]"
          },
          {
            "identity": "cda",
            "map": ".custodian.assignedCustodian"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.custodian"
          }
        ]
      },
      {
        "id": "Composition.relatesTo",
        "path": "Composition.relatesTo",
        "short": "Relationships to other compositions/documents",
        "definition": "Relationships that this composition has with other compositions or documents that already exist.",
        "comment": "A document is a version specific composition.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.relatesTo",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship"
          },
          {
            "identity": "cda",
            "map": ".relatedDocument"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.relatesTo"
          }
        ]
      },
      {
        "id": "Composition.relatesTo.id",
        "path": "Composition.relatesTo.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.relatesTo.extension",
        "path": "Composition.relatesTo.extension",
        "short": "Additional content defined by implementations",
        "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.",
        "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.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.relatesTo.modifierExtension",
        "path": "Composition.relatesTo.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.relatesTo.code",
        "path": "Composition.relatesTo.code",
        "short": "replaces | transforms | signs | appends",
        "definition": "The type of relationship that this composition has with anther composition or document.",
        "comment": "If this document appends another document, then the document cannot be fully understood without also accessing the referenced document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.relatesTo.code",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DocumentRelationshipType"
            }
          ],
          "strength": "required",
          "description": "The type of relationship between documents.",
          "valueSet": "http://hl7.org/fhir/ValueSet/document-relationship-type|4.0.1"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship.typeCode"
          },
          {
            "identity": "cda",
            "map": ".relatedDocument.typeCode"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.relatesTo.code"
          }
        ]
      },
      {
        "id": "Composition.relatesTo.target[x]",
        "path": "Composition.relatesTo.target[x]",
        "short": "Target of the relationship",
        "definition": "The target composition/document of this relationship.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.relatesTo.target[x]",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Composition",
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".target[classCode=\"DOC\", moodCode=\"EVN\"].id"
          },
          {
            "identity": "cda",
            "map": ".relatedDocument.id"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.relatesTo.target"
          }
        ]
      },
      {
        "id": "Composition.event",
        "path": "Composition.event",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "open"
        },
        "short": "The clinical service(s) being documented",
        "definition": "The main activity being described by a patient summary is the provision of healthcare over a period of time.\r\nIn the CDA representation of the IPS this is shown by setting the value of serviceEvent/@classCode to “PCPR” (care provision) and indicating the duration over which care was provided in serviceEvent/effectiveTime. \r\nIn the FHIR representation at least one event will be used to record this information.\r\nAdditional data from outside this duration can also be included if it is relevant to care provided during that time range (e.g., reviewed during the stated time range). For example if the patient summary is generated by a GP, based on information recorded in his/her EHR-S, then the start value will represent the date when the treatment relationship between the patient and the GP started; and the end value the date of the latest care event.",
        "comment": "The event needs to be consistent with the type element, though can provide further information if desired.",
        "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,
        "max": "*",
        "base": {
          "path": "Composition.event",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "outboundRelationship[typeCode=\"SUBJ\"].target[classCode<'ACT']"
          },
          {
            "identity": "cda",
            "map": ".documentationOf.serviceEvent"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.event"
          }
        ]
      },
      {
        "id": "Composition.event.id",
        "path": "Composition.event.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.event.extension",
        "path": "Composition.event.extension",
        "short": "Additional content defined by implementations",
        "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.",
        "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.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.event.modifierExtension",
        "path": "Composition.event.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.event.code",
        "path": "Composition.event.code",
        "short": "Code(s) that apply to the event being documented",
        "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.",
        "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.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.event.code",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DocumentEventType"
            }
          ],
          "strength": "example",
          "description": "This list of codes represents the main clinical acts being documented.",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActCode"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".code"
          },
          {
            "identity": "cda",
            "map": ".code"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.event.code"
          }
        ]
      },
      {
        "id": "Composition.event.period",
        "path": "Composition.event.period",
        "short": "The period covered by the documentation",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.event.period",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Period"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          },
          {
            "identity": "cda",
            "map": ".effectiveTime"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.event.period"
          }
        ]
      },
      {
        "id": "Composition.event.detail",
        "path": "Composition.event.detail",
        "short": "The event(s) being documented",
        "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.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.event.detail",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=\"SUBJ\"].target"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.event:careProvisioningEvent",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.event",
        "sliceName": "careProvisioningEvent",
        "short": "The care provisioning being documented",
        "definition": "The provision of healthcare over a period of time this patient summary is documenting.",
        "comment": "The event needs to be consistent with the type element, though can provide further information if desired.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.event",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "outboundRelationship[typeCode=\"SUBJ\"].target[classCode<'ACT']"
          },
          {
            "identity": "cda",
            "map": ".documentationOf.serviceEvent"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.event"
          }
        ]
      },
      {
        "id": "Composition.event:careProvisioningEvent.id",
        "path": "Composition.event.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.event:careProvisioningEvent.extension",
        "path": "Composition.event.extension",
        "short": "Additional content defined by implementations",
        "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.",
        "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.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.event:careProvisioningEvent.modifierExtension",
        "path": "Composition.event.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.event:careProvisioningEvent.code",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.event.code",
        "short": "Code(s) that apply to the event being documented",
        "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.",
        "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.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.event.code",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ActClass",
              "code": "PCPR"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "DocumentEventType"
            }
          ],
          "strength": "example",
          "description": "This list of codes represents the main clinical acts being documented.",
          "valueSet": "http://terminology.hl7.org/ValueSet/v3-ActCode"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".code"
          },
          {
            "identity": "cda",
            "map": ".code"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.event.code"
          }
        ]
      },
      {
        "id": "Composition.event:careProvisioningEvent.period",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.event.period",
        "short": "The period covered by the documentation",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.event.period",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Period"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime"
          },
          {
            "identity": "cda",
            "map": ".effectiveTime"
          },
          {
            "identity": "fhirdocumentreference",
            "map": "DocumentReference.event.period"
          }
        ]
      },
      {
        "id": "Composition.event:careProvisioningEvent.detail",
        "path": "Composition.event.detail",
        "short": "The event(s) being documented",
        "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.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.event.detail",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=\"SUBJ\"].target"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Sections composing the patient summary",
        "definition": "The root of the sections that make up the patient summary composition.",
        "min": 3,
        "max": "*",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section.entry",
        "path": "Composition.section.entry",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionProblems",
        "short": "Patient Summary Problems Section",
        "definition": "Information about a patient's clinical problems or conditions that are currently being monitored.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ips-comp-1",
            "severity": "error",
            "human": "Either section.entry or emptyReason are present",
            "expression": "(entry.reference.exists() or emptyReason.exists())",
            "xpath": "(/f:entry.reference and not /f:emptyReason) or (not(/f:emptyReason) and /f:entry.reference)"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionProblems.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionProblems.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "11450-4"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Clinical problems or conditions currently being monitored for the patient",
        "definition": "The clinical problems or conditions currently being monitored for the patient.  An entry can be used to document that no information about problems is available, or that no relevant problems are known.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Condition",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.entry:problem",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "problem",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-condition"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.emptyReason",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionAllergies",
        "short": "Patient Summary Allergies and Intolerances Section",
        "definition": "Information about a patient's relevant allergies or intolerances, describing the kind of reaction (e.g. rash, anaphylaxis, etc.); preferably the agents that cause it; and optionally the criticality and the certainty of the allergy. At a minimum, this section will list currently active and any relevant historical allergies and adverse reactions. If no information about allergies is available, or if no allergies are known this is to be clearly documented in this section.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ips-comp-1",
            "severity": "error",
            "human": "Either section.entry or emptyReason are present",
            "expression": "(entry.reference.exists() or emptyReason.exists())",
            "xpath": "(/f:entry.reference and not /f:emptyReason) or (not(/f:emptyReason) and /f:entry.reference)"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionAllergies.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionAllergies.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "48765-2"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Relevant allergies or intolerances (conditions) for that patient",
        "definition": "The relevant allergies or intolerances (conditions) for that patient, describing the kind of reaction (e.g. rash, anaphylaxis, etc.); preferably the agents that cause it; and optionally the criticality and the certainty of the allergy.\r\nAt a minimum, will include currently active and any relevant historical allergies and adverse reactions.\r\n An entry can be used to document that no information about allergies is available, or that no allergies are known.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.entry:allergyOrIntolerance",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "allergyOrIntolerance",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-allergyintolerance"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.emptyReason",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionMedications",
        "short": "Patient Summary Medication Summary Section",
        "definition": "Information about a patient's medications relevant for the scope of the patient summary.\r\nThe actual content could depend on the jurisdiction, it could report: - the currently active medications;  - the current and past medications considered relevant by the authoring GP;  - the patient prescriptions or dispensations automatically extracted by a regional or a national EHR.  In those cases medications are documented in the Patient Summary as medication statements or medication requests. This section requires either an entry indicating the subject is known not to be on any relevant medication; either an entry indicating that no information is available about medications; or entries summarising the subject's relevant medications.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ips-comp-1",
            "severity": "error",
            "human": "Either section.entry or emptyReason are present",
            "expression": "(entry.reference.exists() or emptyReason.exists())",
            "xpath": "(/f:entry.reference and not /f:emptyReason) or (not(/f:emptyReason) and /f:entry.reference)"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionMedications.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionMedications.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "10160-0"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Medications relevant for the scope of the patient summary",
        "definition": "The medications relevant for the scope of the patient summary, or an indication that the subject is known not to be on any relevant medication; either that no information is available about medications.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
              "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
              "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
              "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.entry:medicationStatementOrRequest",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "medicationStatementOrRequest",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-medicationstatement",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-medicationrequest"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.emptyReason",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionImmunizations",
        "short": "Patient Summary Immunizations Section",
        "definition": "Information about a patient's current immunisation status and pertinent immunisation history.\r\nThe primary use case for this section is to enable communication of a patient's immunisation status.\r\nIt could contain the entire immunisation history that is relevant to the period of time being summarised. This entry is used to document that no information about immunisations is available, or that no immunisations are known.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionImmunizations.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionImmunizations.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "11369-6"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Patient's immunisation status and pertinent history",
        "definition": "The patient's current immunisation status and pertinent immunisation history.\r\nThe primary use case is to enable communication of a patient's immunisation status.\r\nIt can contain the entire immunisation history relevant to the period of time being summarised. An entry can be used to document that no information about immunisations is available, or that no immunisations are known.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Immunization",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.entry:immunization",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "immunization",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-immunization"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionResults",
        "short": "Patient Summary Results Section",
        "definition": "Information about a patient's relevant observation results collected on the patient or produced on in-vitro biologic specimens collected from the patient. Some of these results could be laboratory results, others could be anatomic pathology results, others could be radiology results, and others could be clinical results.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionResults.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionResults.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "30954-2"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "resolve()"
            },
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Relevant observation results collected on the patient or produced on in-vitro biologic specimens collected from the patient",
        "definition": "The relevant observation results collected on the patient or produced on in-vitro biologic specimens collected from the patient. Some results could be laboratory results, others could be anatomic pathology results, others could be radiology results, and others could be clinical results.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Observation",
              "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.entry:results-observation-laboratory-pathology",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "results-observation-laboratory-pathology",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-diagnosticresult-path"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.entry:results-observation-radiology",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "results-observation-radiology",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-results-radiology-uv-ips"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.entry:results-diagnosticReport",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "results-diagnosticReport",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/DiagnosticReport-uv-ips"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionProceduresHx",
        "short": "Patient Summary History of Procedures Section",
        "definition": "Information about a patient's past procedures that are pertinent to the scope of this patient summary.\r\nProcedures could refer, for example to:\r\n1. Invasive Diagnostic procedure: e.g. Cardiac catheterization; (the results of these procedure are documented in the results section)\r\n2. Therapeutic procedure: e.g. dialysis;\r\n3. Surgical procedure: e.g. appendectomy",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionProceduresHx.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionProceduresHx.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "47519-4"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Patient past procedures pertinent to the scope of this patient summary",
        "definition": "The patient's past procedures that are pertinent to the scope of this patient summary.\r\nProcedures can refer for example to:\r\n1. Invasive Diagnostic procedure: e.g. Cardiac catheterization; (the results of these procedure are documented in the results section)\r\n2. Therapeutic procedure: e.g. dialysis;\r\n3. Surgical procedure: e.g. appendectomy. An entry can be used to document that no information about past procedures is available, or that no relevant past procedures are known.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Procedure",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.entry:procedure",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "procedure",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-procedure"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionMedicalDevices",
        "short": "Patient Summary Medical Devices Section",
        "definition": "Information about a patient's history of medical device use.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionMedicalDevices.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionMedicalDevices.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "46264-8"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Patient history of medical device use",
        "definition": "The patient's history of medical device use. An entry can be used to document that no information about medical device use is available, or that no relevant medical device use is known.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/DeviceUseStatement",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.entry:deviceStatement",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "deviceStatement",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/DeviceUseStatement-uv-ips"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionAdvanceDirectives",
        "short": "Patient Summary Advance Directives Section",
        "definition": "Information about a patient's advance directives.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "42348-3"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "A patient's advance directives",
        "definition": "The patient's advance directive.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Consent",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.entry:advanceDirectivesConsent",
        "path": "Composition.section.entry",
        "sliceName": "advanceDirectivesConsent",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Consent"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionAlerts",
        "short": "Patient Summary Alerts Section",
        "definition": "Information about a patient's alerts pertinent to the scope of the patient summary including flagging potential concerns and/or dangers to/from the patient and can also include obstacles to care.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionAlerts.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionAlerts.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "104605-1"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Alert information",
        "definition": "The alert information to be communicated; can optionally reference other resources in the patient summary.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Flag",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.entry:alertsFlag",
        "path": "Composition.section.entry",
        "sliceName": "alertsFlag",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Flag-alert-uv-ips"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionFunctionalStatus",
        "short": "Patient Summary Functional Status Section",
        "definition": "Information about a patient's functional status including a description of capability of the patient to perform acts of daily living, including possible needs of the patient to be continuously assessed by third parties. The invalidity status can in fact influence decisions about how to administer treatments.\r\nProfiles to express disabilities and functional assessments will be specified by future versions of this guide.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "47420-5"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Disabilities and functional assessments",
        "definition": "The patient's capability to perform acts of daily living, including possible needs of the patient to be continuously assessed by third parties. The invalidity status can in fact influence decisions about how to administer treatments.\r\nProfiles to express disabilities and functional assessments are expected be specified by future versions of this guide.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Condition",
              "http://hl7.org/fhir/StructureDefinition/ClinicalImpression",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.entry:disability",
        "path": "Composition.section.entry",
        "sliceName": "disability",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-condition"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.entry:functionalAssessment",
        "path": "Composition.section.entry",
        "sliceName": "functionalAssessment",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ClinicalImpression"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionPastProblems",
        "short": "Patient Summary History of Past Illness Section",
        "definition": "Information about a patient's conditions that were suffered in the past and are no longer tracked in the Problem List.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionPastProblems.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionPastProblems.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "11348-0"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Conditions the patient suffered in the past",
        "definition": "The conditions the patient suffered in the past and are no longer tracked in the Problem List.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Condition",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.entry:pastProblem",
        "path": "Composition.section.entry",
        "sliceName": "pastProblem",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-condition"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionPregnancyHx",
        "short": "Patient Summary History of Pregnancy Section",
        "definition": "Information about whether a patient is currently pregnant or not and can contain addition summarising information about the outcome of earlier pregnancies.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionPregnancyHx.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionPregnancyHx.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "10162-6"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Current pregnancy status and, optionally, information about the outcome of earlier pregnancies",
        "definition": "Information about whether the patient is currently pregnant or not.\r\nIt can contain addition summarising information about the outcome of earlier pregnancies.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Observation",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.entry:pregnancyStatus",
        "path": "Composition.section.entry",
        "sliceName": "pregnancyStatus",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-status-uv-ips"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.entry:pregnancyOutcome",
        "path": "Composition.section.entry",
        "sliceName": "pregnancyOutcome",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-outcome-uv-ips"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionPatientStory",
        "short": "Patient Summary Patient Story Section",
        "definition": "Information about what matters to a patient. This can include needs, strengths, values, concerns and preferences to others providing support and care. The patient's story, provided here, can be told by the patient or by a proxy.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionPatientStory.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionPatientStory.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "81338-6"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory.entry",
        "path": "Composition.section.entry",
        "short": "Patient Story resources",
        "definition": "The information about what matters to a patient. This can include needs, strengths, values, concerns and preferences to others providing support and care.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionPlanOfCare",
        "short": "Patient Summary Plan of Care Section",
        "definition": "Information about a patient's plans of care containing the expectations for care including proposals, goals, and order requests for monitoring, tracking, or improving the condition of the patient.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionPlanOfCare.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionPlanOfCare.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "18776-5"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Structured care plans",
        "definition": "The dynamic, personalised care plans including identified needed healthcare activity, health objectives and healthcare goals, relating to one or more specified health issues in a healthcare process [Source EN ISO 13940]",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/CarePlan",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.entry:carePlan",
        "path": "Composition.section.entry",
        "sliceName": "carePlan",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/CarePlan"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.entry:immunizationRecommendation",
        "path": "Composition.section.entry",
        "sliceName": "immunizationRecommendation",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionSocialHistory",
        "short": "Patient Summary Social History Section",
        "definition": "Information about a patient's health related \"lifestyle factors\" or \"lifestyle observations\" (e.g. smoke habits, alcohol consumption, diets, risky habits.)",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionSocialHistory.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionSocialHistory.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "29762-2"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Health related \"lifestyle factors\" or \"lifestyle observations\"",
        "definition": "The patient's health related \"lifestyle factors\" or \"lifestyle observations\" (e.g. smoke habits, alcohol consumption, diets, risky habits.)",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Observation",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.entry:smokingTobaccoUse",
        "path": "Composition.section.entry",
        "sliceName": "smokingTobaccoUse",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-smokingstatus"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.entry:alcoholUse",
        "path": "Composition.section.entry",
        "sliceName": "alcoholUse",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-alcoholuse-uv-ips"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionVitalSigns",
        "label": "Vital signs",
        "short": "Patient Summary Vital Signs Section",
        "definition": "Information about a patient's vital signs including blood pressure, body temperature, heart rate, and respiratory rate. It can also include other clinical findings, such as height, weight, body mass index, head circumference, and pulse oximetry. In particular, notable vital signs or physical findings such as the most recent, maximum and/or minimum, baseline, or relevant trends can be included",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "cmp-1",
            "severity": "error",
            "human": "A section must contain at least one of text, entries, or sub-sections",
            "expression": "text.exists() or entry.exists() or section.exists()",
            "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "cmp-2",
            "severity": "error",
            "human": "A section can only have an emptyReason if it is empty",
            "expression": "emptyReason.empty() or entry.empty()",
            "xpath": "not(exists(f:emptyReason) and exists(f:entry))",
            "source": "http://hl7.org/fhir/StructureDefinition/Composition"
          },
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.structuredBody.component.section"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.id",
        "path": "Composition.section.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionVitalSigns.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "comment": "This extension SHALL NOT be used if the resource already has standard 'note' element (or equivalent) of type Annotation on the same element",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Composition.section:sectionVitalSigns.modifierExtension",
        "path": "Composition.section.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "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).",
        "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.",
        "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).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "short": "Label for section (e.g. for ToC)",
        "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.",
        "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.",
        "requirements": "Section headings are often standardized for different types of documents.  They give guidance to humans on how the document is organized.",
        "alias": [
          "header",
          "label",
          "caption"
        ],
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.title",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./title"
          },
          {
            "identity": "cda",
            "map": ".title"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.code",
        "path": "Composition.section.code",
        "short": "Classification of section (recommended)",
        "definition": "A code identifying the kind of content contained within the section. This must be consistent with the section title.",
        "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.",
        "requirements": "Provides computable standardized labels to topics within the document.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.code",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "8716-3"
            }
          ]
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "CompositionSectionType"
            }
          ],
          "strength": "example",
          "description": "Classification of a section of a composition/document.",
          "valueSet": "http://hl7.org/fhir/ValueSet/doc-section-codes"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./code"
          },
          {
            "identity": "cda",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.author",
        "path": "Composition.section.author",
        "short": "Who and/or what authored the section",
        "definition": "Identifies who is responsible for the information in this section, not necessarily who typed it in.",
        "requirements": "Identifies who is responsible for the content.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.author",
          "min": 0,
          "max": "*"
        },
        "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"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=\"AUT\"].role[classCode=\"ASSIGNED\"]"
          },
          {
            "identity": "cda",
            "map": ".author.assignedAuthor"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.focus",
        "path": "Composition.section.focus",
        "short": "Who/what the section is about, when it is not about the subject of composition",
        "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).",
        "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.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.focus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "cda",
            "map": ".subject? (CDA did not differentiate between subject and focus)"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              },
              {
                "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-source",
                "valueCanonical": "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|0.4.0-cibuild"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "short": "Text summary of the section, for human interpretation",
        "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.",
        "comment": "Document profiles may define what content should be represented in the narrative to ensure clinical safety.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Composition.section.text",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".text"
          },
          {
            "identity": "cda",
            "map": ".text"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.mode",
        "path": "Composition.section.mode",
        "short": "working | snapshot | changes",
        "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.",
        "comment": "This element is labeled as a modifier because a change list must not be misunderstood as a complete list.",
        "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,
        "max": "1",
        "base": {
          "path": "Composition.section.mode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "code"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionMode"
            }
          ],
          "strength": "required",
          "description": "The processing mode that applies to this section.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-mode|4.0.1"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "rim",
            "map": ".outBoundRelationship[typeCode=COMP].target[classCode=OBS\"].value"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.orderedBy",
        "path": "Composition.section.orderedBy",
        "short": "Order of section entries",
        "definition": "Specifies the order applied to the items in the section entries.",
        "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.",
        "requirements": "Important for presentation and rendering.  Lists may be sorted to place more important information first or to group related entries.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.orderedBy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEntryOrder"
            }
          ],
          "strength": "preferred",
          "description": "What order applies to the items in the entry.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-order"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP].sequenceNumber > 1"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Notable vital signs or physical findings",
        "definition": "The notable vital signs or physical findings as: blood pressure, body temperature, heart rate, and respiratory rate. It can also include other clinical findings, such as height, weight, body mass index, head circumference, and pulse oximetry. In particular, notable vital signs or physical findings such as the most recent, maximum and/or minimum, baseline, or relevant trends can be included",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Observation",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.entry:vitalSign",
        "path": "Composition.section.entry",
        "sliceName": "vitalSign",
        "short": "A reference to data that supports this section",
        "definition": "A reference to the actual resource from which the narrative in the section is derived.",
        "comment": "If there are no entries in the list, an emptyReason SHOULD be provided.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Composition.section.entry",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/vitalsigns"
            ]
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=COMP] or  .participation[typeCode=SBJ]"
          },
          {
            "identity": "cda",
            "map": ".entry"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.emptyReason",
        "path": "Composition.section.emptyReason",
        "short": "Why the section is empty",
        "definition": "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.",
        "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.",
        "requirements": "Allows capturing things like \"none exist\" or \"not asked\" which can be important for most lists.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Composition.section.emptyReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "cmp-2"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "SectionEmptyReason"
            }
          ],
          "strength": "preferred",
          "description": "If a section is empty, why it is empty.",
          "valueSet": "http://hl7.org/fhir/ValueSet/list-empty-reason"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ,code<ListEmptyReason].value[type=CD]"
          },
          {
            "identity": "cda",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.section",
        "path": "Composition.section.section",
        "short": "Nested Section",
        "definition": "A nested sub-section within this section.",
        "comment": "Nested sections are primarily used to help human readers navigate to particular portions of the document.",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Composition.section.section",
          "min": 0,
          "max": "*"
        },
        "contentReference": "http://hl7.org/fhir/StructureDefinition/Composition#Composition.section",
        "condition": [
          "cmp-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "./outboundRelationship[typeCode=\"COMP\" and isNormalActRelationship()]/target[moodCode=\"EVN\" and classCode=\"DOCSECT\" and isNormalAct]"
          },
          {
            "identity": "cda",
            "map": ".component.section"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "Composition",
        "path": "Composition",
        "short": "AU Patient Summary Composition",
        "definition": "AU Patient Summary Composition. A composition is a set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. While a Composition defines the structure, it does not actually contain the content: rather the full content of a document is contained in a Bundle, of which the Composition is the first resource contained."
      },
      {
        "id": "Composition.meta.profile",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "MAY:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.meta.profile",
        "short": "Conformance claim to a specific Patient Summary specification",
        "definition": "The conformance of this Composition to a specific version of a Patient Summary specification (e.g. AU PS 1.0.0 conformance claim http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition|1.0.0, IPS 2.0.0 conformance claim http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips|2.0.0)",
        "mustSupport": true
      },
      {
        "id": "Composition.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.text",
        "mustSupport": true
      },
      {
        "id": "Composition.identifier",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.identifier",
        "mustSupport": true
      },
      {
        "id": "Composition.status",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.status",
        "mustSupport": true
      },
      {
        "id": "Composition.type",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.type",
        "short": "Kind of composition (\"Patient Summary\")",
        "definition": "Specifies that this composition refers to a Patient Summary (Loinc \"60591-5\")\r\n",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "60591-5"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Composition.subject",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.subject",
        "definition": "Who or what the composition is about.\r\nIn general a composition can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure).\r\nFor the AU PS the subject is always the patient.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.subject.reference",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.subject.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.date",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.date",
        "mustSupport": true
      },
      {
        "id": "Composition.author",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.author",
        "short": "Who and/or what authored the patient summary",
        "definition": "Identifies who is responsible for the information in the patient summary, not necessarily who typed it in.\r\n\r\nThe type of author(s) contribute to determine the \"nature\"of the patient summary: e.g. a \"human-curated\" Vs. \"automatically generated\".",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-practitioner",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-practitionerrole",
              "http://hl7.org/fhir/StructureDefinition/Device",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-patient",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-relatedperson",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-organization"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.title",
        "short": "Patient Summary",
        "definition": "Official human-readable label for the composition.\r\n\r\nFor this document the title would likely include the text \"Patient Summary\" or any equivalent translation and other relevant document information.",
        "mustSupport": true
      },
      {
        "id": "Composition.attester",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.attester",
        "mustSupport": true
      },
      {
        "id": "Composition.attester.mode",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.attester.mode",
        "mustSupport": true
      },
      {
        "id": "Composition.attester.time",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.attester.time",
        "mustSupport": true
      },
      {
        "id": "Composition.attester.party",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.attester.party",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-patient",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-relatedperson",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-practitioner",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-practitionerrole",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-organization"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.custodian",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.custodian",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-organization"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.relatesTo",
        "path": "Composition.relatesTo"
      },
      {
        "id": "Composition.relatesTo.target[x]",
        "path": "Composition.relatesTo.target[x]",
        "type": [
          {
            "code": "Identifier"
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Composition",
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-composition"
            ]
          }
        ]
      },
      {
        "id": "Composition.event",
        "path": "Composition.event",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "open"
        },
        "definition": "The main activity being described by a patient summary is the provision of healthcare over a period of time.\r\nIn the CDA representation of the IPS this is shown by setting the value of serviceEvent/@classCode to “PCPR” (care provision) and indicating the duration over which care was provided in serviceEvent/effectiveTime. \r\nIn the FHIR representation at least one event will be used to record this information.\r\nAdditional data from outside this duration can also be included if it is relevant to care provided during that time range (e.g., reviewed during the stated time range). For example if the patient summary is generated by a GP, based on information recorded in his/her EHR-S, then the start value will represent the date when the treatment relationship between the patient and the GP started; and the end value the date of the latest care event."
      },
      {
        "id": "Composition.event:careProvisioningEvent",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.event",
        "sliceName": "careProvisioningEvent",
        "short": "The care provisioning being documented",
        "definition": "The provision of healthcare over a period of time this patient summary is documenting.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.event:careProvisioningEvent.code",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.event.code",
        "min": 1,
        "max": "1",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/v3-ActClass",
              "code": "PCPR"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Composition.event:careProvisioningEvent.period",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.event.period",
        "mustSupport": true
      },
      {
        "id": "Composition.section",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Sections composing the patient summary",
        "definition": "The root of the sections that make up the patient summary composition.",
        "min": 3,
        "mustSupport": true
      },
      {
        "id": "Composition.section.extension",
        "path": "Composition.section.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Composition.section.extension:section-note",
        "path": "Composition.section.extension",
        "sliceName": "section-note",
        "short": "Additional notes that apply to the section (but not to specific resource)",
        "definition": "Additional notes that apply to the section (but not to specific resource).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/note"
            ]
          }
        ]
      },
      {
        "id": "Composition.section.title",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.title",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section.text",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.text",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Composition.section.section",
        "path": "Composition.section.section",
        "max": "0"
      },
      {
        "id": "Composition.section:sectionProblems",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionProblems",
        "short": "Patient Summary Problems Section",
        "definition": "Information about a patient's clinical problems or conditions that are currently being monitored.",
        "min": 1,
        "max": "1",
        "constraint": [
          {
            "key": "ips-comp-1",
            "severity": "error",
            "human": "Either section.entry or emptyReason are present",
            "expression": "(entry.reference.exists() or emptyReason.exists())",
            "xpath": "(/f:entry.reference and not /f:emptyReason) or (not(/f:emptyReason) and /f:entry.reference)"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionProblems.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "11450-4"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionProblems.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Clinical problems or conditions currently being monitored for the patient",
        "definition": "The clinical problems or conditions currently being monitored for the patient.  An entry can be used to document that no information about problems is available, or that no relevant problems are known.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Condition",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionProblems.entry:problem",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "problem",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-condition"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionProblems.emptyReason",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.emptyReason",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionAllergies",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionAllergies",
        "short": "Patient Summary Allergies and Intolerances Section",
        "definition": "Information about a patient's relevant allergies or intolerances, describing the kind of reaction (e.g. rash, anaphylaxis, etc.); preferably the agents that cause it; and optionally the criticality and the certainty of the allergy. At a minimum, this section will list currently active and any relevant historical allergies and adverse reactions. If no information about allergies is available, or if no allergies are known this is to be clearly documented in this section.",
        "min": 1,
        "max": "1",
        "constraint": [
          {
            "key": "ips-comp-1",
            "severity": "error",
            "human": "Either section.entry or emptyReason are present",
            "expression": "(entry.reference.exists() or emptyReason.exists())",
            "xpath": "(/f:entry.reference and not /f:emptyReason) or (not(/f:emptyReason) and /f:entry.reference)"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionAllergies.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "48765-2"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionAllergies.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Relevant allergies or intolerances (conditions) for that patient",
        "definition": "The relevant allergies or intolerances (conditions) for that patient, describing the kind of reaction (e.g. rash, anaphylaxis, etc.); preferably the agents that cause it; and optionally the criticality and the certainty of the allergy.\r\nAt a minimum, will include currently active and any relevant historical allergies and adverse reactions.\r\n An entry can be used to document that no information about allergies is available, or that no allergies are known.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionAllergies.entry:allergyOrIntolerance",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "allergyOrIntolerance",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-allergyintolerance"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionAllergies.emptyReason",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.emptyReason",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionMedications",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionMedications",
        "short": "Patient Summary Medication Summary Section",
        "definition": "Information about a patient's medications relevant for the scope of the patient summary.\r\nThe actual content could depend on the jurisdiction, it could report: - the currently active medications;  - the current and past medications considered relevant by the authoring GP;  - the patient prescriptions or dispensations automatically extracted by a regional or a national EHR.  In those cases medications are documented in the Patient Summary as medication statements or medication requests. This section requires either an entry indicating the subject is known not to be on any relevant medication; either an entry indicating that no information is available about medications; or entries summarising the subject's relevant medications.",
        "min": 1,
        "max": "1",
        "constraint": [
          {
            "key": "ips-comp-1",
            "severity": "error",
            "human": "Either section.entry or emptyReason are present",
            "expression": "(entry.reference.exists() or emptyReason.exists())",
            "xpath": "(/f:entry.reference and not /f:emptyReason) or (not(/f:emptyReason) and /f:entry.reference)"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionMedications.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "10160-0"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionMedications.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Medications relevant for the scope of the patient summary",
        "definition": "The medications relevant for the scope of the patient summary, or an indication that the subject is known not to be on any relevant medication; either that no information is available about medications.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
              "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
              "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
              "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedications.entry:medicationStatementOrRequest",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:able-to-populate"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "medicationStatementOrRequest",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-medicationstatement",
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-medicationrequest"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionMedications.emptyReason",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.emptyReason",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionImmunizations",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionImmunizations",
        "short": "Patient Summary Immunizations Section",
        "definition": "Information about a patient's current immunisation status and pertinent immunisation history.\r\nThe primary use case for this section is to enable communication of a patient's immunisation status.\r\nIt could contain the entire immunisation history that is relevant to the period of time being summarised. This entry is used to document that no information about immunisations is available, or that no immunisations are known.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionImmunizations.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "11369-6"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionImmunizations.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Patient's immunisation status and pertinent history",
        "definition": "The patient's current immunisation status and pertinent immunisation history.\r\nThe primary use case is to enable communication of a patient's immunisation status.\r\nIt can contain the entire immunisation history relevant to the period of time being summarised. An entry can be used to document that no information about immunisations is available, or that no immunisations are known.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Immunization",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionImmunizations.entry:immunization",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "immunization",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-immunization"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionResults",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionResults",
        "short": "Patient Summary Results Section",
        "definition": "Information about a patient's relevant observation results collected on the patient or produced on in-vitro biologic specimens collected from the patient. Some of these results could be laboratory results, others could be anatomic pathology results, others could be radiology results, and others could be clinical results.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionResults.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "30954-2"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionResults.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "resolve()"
            },
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Relevant observation results collected on the patient or produced on in-vitro biologic specimens collected from the patient",
        "definition": "The relevant observation results collected on the patient or produced on in-vitro biologic specimens collected from the patient. Some results could be laboratory results, others could be anatomic pathology results, others could be radiology results, and others could be clinical results.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Observation",
              "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionResults.entry:results-observation-laboratory-pathology",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "results-observation-laboratory-pathology",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-diagnosticresult-path"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionResults.entry:results-observation-radiology",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "results-observation-radiology",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-results-radiology-uv-ips"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionResults.entry:results-diagnosticReport",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "results-diagnosticReport",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/DiagnosticReport-uv-ips"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionProceduresHx",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionProceduresHx",
        "short": "Patient Summary History of Procedures Section",
        "definition": "Information about a patient's past procedures that are pertinent to the scope of this patient summary.\r\nProcedures could refer, for example to:\r\n1. Invasive Diagnostic procedure: e.g. Cardiac catheterization; (the results of these procedure are documented in the results section)\r\n2. Therapeutic procedure: e.g. dialysis;\r\n3. Surgical procedure: e.g. appendectomy",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionProceduresHx.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "47519-4"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionProceduresHx.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Patient past procedures pertinent to the scope of this patient summary",
        "definition": "The patient's past procedures that are pertinent to the scope of this patient summary.\r\nProcedures can refer for example to:\r\n1. Invasive Diagnostic procedure: e.g. Cardiac catheterization; (the results of these procedure are documented in the results section)\r\n2. Therapeutic procedure: e.g. dialysis;\r\n3. Surgical procedure: e.g. appendectomy. An entry can be used to document that no information about past procedures is available, or that no relevant past procedures are known.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Procedure",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionProceduresHx.entry:procedure",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "procedure",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-procedure"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionMedicalDevices",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionMedicalDevices",
        "short": "Patient Summary Medical Devices Section",
        "definition": "Information about a patient's history of medical device use.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionMedicalDevices.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "46264-8"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionMedicalDevices.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Patient history of medical device use",
        "definition": "The patient's history of medical device use. An entry can be used to document that no information about medical device use is available, or that no relevant medical device use is known.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/DeviceUseStatement",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionMedicalDevices.entry:deviceStatement",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:populate-if-known"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-producer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section.entry",
        "sliceName": "deviceStatement",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/DeviceUseStatement-uv-ips"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionAdvanceDirectives",
        "short": "Patient Summary Advance Directives Section",
        "definition": "Information about a patient's advance directives.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "42348-3"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "A patient's advance directives",
        "definition": "The patient's advance directive.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Consent",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionAdvanceDirectives.entry:advanceDirectivesConsent",
        "path": "Composition.section.entry",
        "sliceName": "advanceDirectivesConsent",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Consent"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionAlerts",
        "short": "Patient Summary Alerts Section",
        "definition": "Information about a patient's alerts pertinent to the scope of the patient summary including flagging potential concerns and/or dangers to/from the patient and can also include obstacles to care.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionAlerts.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "104605-1"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionAlerts.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Alert information",
        "definition": "The alert information to be communicated; can optionally reference other resources in the patient summary.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Flag",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionAlerts.entry:alertsFlag",
        "path": "Composition.section.entry",
        "sliceName": "alertsFlag",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Flag-alert-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionFunctionalStatus",
        "short": "Patient Summary Functional Status Section",
        "definition": "Information about a patient's functional status including a description of capability of the patient to perform acts of daily living, including possible needs of the patient to be continuously assessed by third parties. The invalidity status can in fact influence decisions about how to administer treatments.\r\nProfiles to express disabilities and functional assessments will be specified by future versions of this guide.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "47420-5"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Disabilities and functional assessments",
        "definition": "The patient's capability to perform acts of daily living, including possible needs of the patient to be continuously assessed by third parties. The invalidity status can in fact influence decisions about how to administer treatments.\r\nProfiles to express disabilities and functional assessments are expected be specified by future versions of this guide.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Condition",
              "http://hl7.org/fhir/StructureDefinition/ClinicalImpression",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.entry:disability",
        "path": "Composition.section.entry",
        "sliceName": "disability",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-condition"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionFunctionalStatus.entry:functionalAssessment",
        "path": "Composition.section.entry",
        "sliceName": "functionalAssessment",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ClinicalImpression"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionPastProblems",
        "short": "Patient Summary History of Past Illness Section",
        "definition": "Information about a patient's conditions that were suffered in the past and are no longer tracked in the Problem List.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionPastProblems.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "11348-0"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionPastProblems.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Conditions the patient suffered in the past",
        "definition": "The conditions the patient suffered in the past and are no longer tracked in the Problem List.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Condition",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionPastProblems.entry:pastProblem",
        "path": "Composition.section.entry",
        "sliceName": "pastProblem",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-condition"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionPregnancyHx",
        "short": "Patient Summary History of Pregnancy Section",
        "definition": "Information about whether a patient is currently pregnant or not and can contain addition summarising information about the outcome of earlier pregnancies.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionPregnancyHx.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "10162-6"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionPregnancyHx.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Current pregnancy status and, optionally, information about the outcome of earlier pregnancies",
        "definition": "Information about whether the patient is currently pregnant or not.\r\nIt can contain addition summarising information about the outcome of earlier pregnancies.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Observation",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.entry:pregnancyStatus",
        "path": "Composition.section.entry",
        "sliceName": "pregnancyStatus",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-status-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionPregnancyHx.entry:pregnancyOutcome",
        "path": "Composition.section.entry",
        "sliceName": "pregnancyOutcome",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-pregnancy-outcome-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionPatientStory",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionPatientStory",
        "short": "Patient Summary Patient Story Section",
        "definition": "Information about what matters to a patient. This can include needs, strengths, values, concerns and preferences to others providing support and care. The patient's story, provided here, can be told by the patient or by a proxy.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionPatientStory.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "81338-6"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionPatientStory.entry",
        "path": "Composition.section.entry",
        "short": "Patient Story resources",
        "definition": "The information about what matters to a patient. This can include needs, strengths, values, concerns and preferences to others providing support and care."
      },
      {
        "id": "Composition.section:sectionPlanOfCare",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionPlanOfCare",
        "short": "Patient Summary Plan of Care Section",
        "definition": "Information about a patient's plans of care containing the expectations for care including proposals, goals, and order requests for monitoring, tracking, or improving the condition of the patient.",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionPlanOfCare.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "18776-5"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionPlanOfCare.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Structured care plans",
        "definition": "The dynamic, personalised care plans including identified needed healthcare activity, health objectives and healthcare goals, relating to one or more specified health issues in a healthcare process [Source EN ISO 13940]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/CarePlan",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.entry:carePlan",
        "path": "Composition.section.entry",
        "sliceName": "carePlan",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/CarePlan"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionPlanOfCare.entry:immunizationRecommendation",
        "path": "Composition.section.entry",
        "sliceName": "immunizationRecommendation",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionSocialHistory",
        "short": "Patient Summary Social History Section",
        "definition": "Information about a patient's health related \"lifestyle factors\" or \"lifestyle observations\" (e.g. smoke habits, alcohol consumption, diets, risky habits.)",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionSocialHistory.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "29762-2"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionSocialHistory.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Health related \"lifestyle factors\" or \"lifestyle observations\"",
        "definition": "The patient's health related \"lifestyle factors\" or \"lifestyle observations\" (e.g. smoke habits, alcohol consumption, diets, risky habits.)",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Observation",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.entry:smokingTobaccoUse",
        "path": "Composition.section.entry",
        "sliceName": "smokingTobaccoUse",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-smokingstatus"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionSocialHistory.entry:alcoholUse",
        "path": "Composition.section.entry",
        "sliceName": "alcoholUse",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-alcoholuse-uv-ips"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns",
        "extension": [
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHALL:handle"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          },
          {
            "extension": [
              {
                "url": "code",
                "valueCode": "SHOULD:display"
              },
              {
                "url": "actor",
                "valueCanonical": "http://hl7.org.au/fhir/ps/ActorDefinition/au-ps-actor-consumer"
              }
            ],
            "url": "http://hl7.org/fhir/StructureDefinition/obligation"
          }
        ],
        "path": "Composition.section",
        "sliceName": "sectionVitalSigns",
        "label": "Vital signs",
        "short": "Patient Summary Vital Signs Section",
        "definition": "Information about a patient's vital signs including blood pressure, body temperature, heart rate, and respiratory rate. It can also include other clinical findings, such as height, weight, body mass index, head circumference, and pulse oximetry. In particular, notable vital signs or physical findings such as the most recent, maximum and/or minimum, baseline, or relevant trends can be included",
        "min": 0,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Composition.section:sectionVitalSigns.code",
        "path": "Composition.section.code",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "8716-3"
            }
          ]
        }
      },
      {
        "id": "Composition.section:sectionVitalSigns.entry",
        "path": "Composition.section.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "profile",
              "path": "resolve()"
            }
          ],
          "rules": "open"
        },
        "short": "Notable vital signs or physical findings",
        "definition": "The notable vital signs or physical findings as: blood pressure, body temperature, heart rate, and respiratory rate. It can also include other clinical findings, such as height, weight, body mass index, head circumference, and pulse oximetry. In particular, notable vital signs or physical findings such as the most recent, maximum and/or minimum, baseline, or relevant trends can be included",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Observation",
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:sectionVitalSigns.entry:vitalSign",
        "path": "Composition.section.entry",
        "sliceName": "vitalSign",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/vitalsigns"
            ]
          }
        ]
      }
    ]
  }
}