### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/Composition.json
### ----------------------------------------------------
### -- Chunk 8 of 10
 "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"]
      }],
      "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",
      "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](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"
      }],
      "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",
      "path" : "Composition.author",
      "short" : "Who and/or what authored the composition",
      "definition" : "Identifies who is responsible for the information in the composition, not necessarily who typed it in.",
      "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/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"]
      }],
      "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",
      "path" : "Composition.title",
      "short" : "Human Readable name/title",
      "definition" : "Official human-readable label for the composition.",
      "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"
      }],
      "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"
      }],
      "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|4.0.0"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : ".confidentialityCode"
      },
      {
        "identity" : "cda",
        "map" : ".confidentialityCode"
      },
      {
        "identity" : "fhirdocumentreference",
        "map" : "DocumentReference.securityLabel"
      }]
    },
    {
      "id" : "Composition.attester",
      "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" : "Element"
      }],
      "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" : [{
        "code" : "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"
      }],
      "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](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "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",
      "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"
      }],
      "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.0"
      },
      "mapping" : [{
        "identity" : "rim",
        "map" : "unique(./modeCode)"
      },
      {
        "identity" : "cda",
        "map" : "implied by .authenticator/.legalAuthenticator"
      }]
    },
    {
      "id" : "Composition.attester.time",
      "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"
      }],
      "isModifier" : false,
      "isSummary" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "./time[type=\"TS\" and isNormalDatatype()]"
      },
      {
        "identity" : "cda",
        "map" : ".authenticator.time"
      }]
    },
    {
      "id" : "Composition.attester.party",
      "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/fhir/StructureDefinition/Patient",
        "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
        "http://hl7.org/fhir/StructureDefinition/Practitioner",
        "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
        "http://hl7.org/fhir/StructureDefinition/Organization"]
      }],
      "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",
      "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/fhir/StructureDefinition/Organization"]
      }],
      "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" : "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" : [{
        "code" : "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"
      }],
      "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](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "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"
      }],
      "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.0"
      },
      "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"]
      }],
      "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",
      "short" : "The clinical service(s) being documented",
      "definition" : "The clinical service, such as a colonoscopy or an appendectomy, being documented.",
      "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" : "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" : [{
        "code" : "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"
      }],
      "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](extensibility.html#modifierExtension).",
      "alias" : ["extensions",
      "user content",
      "modifiers"],
      "min" : 0,
      "max" : "*",
      "base" : {
        "path" : "BackboneElement.modifierExtension",
        "min" : 0,
        "max" : "*"
      },
      "type" : [{
        "code" : "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"
      }],
      "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"
      }],
      "is