Clinical Document Architecture V2.0.1
2.1.0-draft1 - 1st Draft

This page is part of the CDA: Clinical Document Architecture (v2.1.0-draft1: CDA 2.1 Draft) based on FHIR v5.0.0. . For a full list of available versions, see the Directory of published versions

Logical Model: CDAR2.Act - TTL Profile

Active as of 2023-01-16

TTL representation of the Act logical model.

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:StructureDefinition;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "Act"]; # 
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p>A derivative of the RIM Act class, to be used when the other more specific classes aren't appropriate.</p>\n      <p>Act.negationInd, when set to &quot;true&quot;, is a positive assertion that the Act as a whole is negated. Some properties such as Act.id, Act.moodCode, and the participations are not affected. These properties always have the same meaning: i.e., the author remains the author of the negative Act. An act statement with negationInd is still a statement about the specific fact described by the Act. For instance, a negated &quot;finding of wheezing on July 1&quot; means that the author positively denies that there was wheezing on July 1, and that he takes the same responsibility for such statement and the same requirement to have evidence for such statement than if he had not used negation.</p>\n    </div>"
  ]; # 
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-namespace" ];
     fhir:Extension.valueUri [ fhir:value "urn:hl7-org:v3" ]
  ]; # 
  fhir:StructureDefinition.url [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Act"]; # 
  fhir:StructureDefinition.version [ fhir:value "2.1.0-draft1"]; # 
  fhir:StructureDefinition.name [ fhir:value "CDAR2.Act"]; # 
  fhir:StructureDefinition.title [ fhir:value "Act (CDA Class)"]; # 
  fhir:StructureDefinition.status [ fhir:value "active"]; # 
  fhir:StructureDefinition.experimental [ fhir:value "false"^^xsd:boolean]; # 
  fhir:StructureDefinition.date [ fhir:value "2023-01-16T16:39:50+11:00"^^xsd:dateTime]; # 
  fhir:StructureDefinition.publisher [ fhir:value "Health Level 7"]; # 
  fhir:StructureDefinition.contact [
     fhir:index 0;
     fhir:ContactDetail.name [ fhir:value "HL7 International - Cross-Group Projects" ];
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/cgp" ]     ], [
       fhir:index 1;
       fhir:ContactPoint.system [ fhir:value "email" ];
       fhir:ContactPoint.value [ fhir:value "cgp@lists.HL7.org" ]     ]
  ]; # 
  fhir:StructureDefinition.description [ fhir:value "A derivative of the RIM Act class, to be used when the other more specific classes aren't appropriate.\nAct.negationInd, when set to \"true\", is a positive assertion that the Act as a whole is negated. Some properties such as Act.id, Act.moodCode, and the participations are not affected. These properties always have the same meaning: i.e., the author remains the author of the negative Act. An act statement with negationInd is still a statement about the specific fact described by the Act. For instance, a negated \"finding of wheezing on July 1\" means that the author positively denies that there was wheezing on July 1, and that he takes the same responsibility for such statement and the same requirement to have evidence for such statement than if he had not used negation."]; # 
  fhir:StructureDefinition.fhirVersion [ fhir:value "5.0.0-snapshot3"]; # 
  fhir:StructureDefinition.mapping [
     fhir:index 0;
     fhir:StructureDefinition.mapping.identity [ fhir:value "rim" ];
     fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/v3" ];
     fhir:StructureDefinition.mapping.name [ fhir:value "RIM Mapping" ]
  ]; # 
  fhir:StructureDefinition.kind [ fhir:value "logical"]; # 
  fhir:StructureDefinition.abstract [ fhir:value "false"^^xsd:boolean]; # 
  fhir:StructureDefinition.type [ fhir:value "Act"]; # 
  fhir:StructureDefinition.baseDefinition [
     fhir:value "http://hl7.org/fhir/StructureDefinition/Base";
     fhir:link <http://hl7.org/fhir/StructureDefinition/Base>
  ]; # 
  fhir:StructureDefinition.derivation [ fhir:value "specialization"]; # 
  fhir:StructureDefinition.snapshot [
     fhir:StructureDefinition.snapshot.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "Act" ];
       fhir:ElementDefinition.path [ fhir:value "Act" ];
       fhir:ElementDefinition.short [ fhir:value "Base for all types and resources" ];
       fhir:ElementDefinition.definition [ fhir:value "Base definition for all types defined in FHIR type system." ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Base" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "Act.classCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.classCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.classCode" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ]     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "Act.moodCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.moodCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.moodCode" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ]     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "Act.realmCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.realmCode" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.realmCode" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/CS" ]       ]     ], [
       fhir:index 4;
       fhir:Element.id [ fhir:value "Act.typeId" ];
       fhir:ElementDefinition.path [ fhir:value "Act.typeId" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.typeId" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/II" ]       ]     ], [
       fhir:index 5;
       fhir:Element.id [ fhir:value "Act.templateId" ];
       fhir:ElementDefinition.path [ fhir:value "Act.templateId" ];
       fhir:ElementDefinition.definition [ fhir:value "When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.templateId" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/II" ]       ]     ], [
       fhir:index 6;
       fhir:Element.id [ fhir:value "Act.id" ];
       fhir:ElementDefinition.path [ fhir:value "Act.id" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/II" ]       ]     ], [
       fhir:index 7;
       fhir:Element.id [ fhir:value "Act.code" ];
       fhir:ElementDefinition.path [ fhir:value "Act.code" ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.code" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/CD" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ActCode";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ActCode>         ]       ]     ], [
       fhir:index 8;
       fhir:Element.id [ fhir:value "Act.negationInd" ];
       fhir:ElementDefinition.path [ fhir:value "Act.negationInd" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.negationInd" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "boolean" ]       ]     ], [
       fhir:index 9;
       fhir:Element.id [ fhir:value "Act.text" ];
       fhir:ElementDefinition.path [ fhir:value "Act.text" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.text" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/ED" ]       ]     ], [
       fhir:index 10;
       fhir:Element.id [ fhir:value "Act.statusCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.statusCode" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.statusCode" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/CS" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ActStatus";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ActStatus>         ]       ]     ], [
       fhir:index 11;
       fhir:Element.id [ fhir:value "Act.effectiveTime" ];
       fhir:ElementDefinition.path [ fhir:value "Act.effectiveTime" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.effectiveTime" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/IVL-TS" ]       ]     ], [
       fhir:index 12;
       fhir:Element.id [ fhir:value "Act.priorityCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.priorityCode" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.priorityCode" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/CE" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ActPriority";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ActPriority>         ]       ]     ], [
       fhir:index 13;
       fhir:Element.id [ fhir:value "Act.languageCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.languageCode" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.languageCode" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/CS" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-HumanLanguage";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-HumanLanguage>         ]       ]     ], [
       fhir:index 14;
       fhir:Element.id [ fhir:value "Act.subject" ];
       fhir:ElementDefinition.path [ fhir:value "Act.subject" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.subject" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Element" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ]     ], [
       fhir:index 15;
       fhir:Element.id [ fhir:value "Act.subject.id" ];
       fhir:ElementDefinition.path [ fhir:value "Act.subject.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.valueUrl [ fhir:value "string" ]         ];
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 16;
       fhir:Element.id [ fhir:value "Act.subject.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Act.subject.extension" ];
       fhir:ElementDefinition.slicing [
         fhir:ElementDefinition.slicing.discriminator [
           fhir:index 0;
           fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ];
           fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]         ];
         fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ];
         fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "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." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
           fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 17;
       fhir:Element.id [ fhir:value "Act.subject.typeCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.subject.typeCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.subject.typeCode" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.defaultValueCode [ fhir:value "SBJ" ];
       fhir:ElementDefinition.fixedCode [ fhir:value "SBJ" ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ParticipationTargetSubject";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ParticipationTargetSubject>         ]       ]     ], [
       fhir:index 18;
       fhir:Element.id [ fhir:value "Act.subject.contextControlCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.subject.contextControlCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.subject.contextControlCode" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.defaultValueCode [ fhir:value "OP" ];
       fhir:ElementDefinition.fixedCode [ fhir:value "OP" ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ContextControl";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ContextControl>         ]       ]     ], [
       fhir:index 19;
       fhir:Element.id [ fhir:value "Act.subject.awarenessCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.subject.awarenessCode" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.subject.awarenessCode" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/CE" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-TargetAwareness";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-TargetAwareness>         ]       ]     ], [
       fhir:index 20;
       fhir:Element.id [ fhir:value "Act.subject.relatedSubject" ];
       fhir:ElementDefinition.path [ fhir:value "Act.subject.relatedSubject" ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.subject.relatedSubject" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/RelatedSubject" ]       ]     ], [
       fhir:index 21;
       fhir:Element.id [ fhir:value "Act.specimen" ];
       fhir:ElementDefinition.path [ fhir:value "Act.specimen" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.specimen" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Specimen" ]       ]     ], [
       fhir:index 22;
       fhir:Element.id [ fhir:value "Act.performer" ];
       fhir:ElementDefinition.path [ fhir:value "Act.performer" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.performer" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Performer2" ]       ]     ], [
       fhir:index 23;
       fhir:Element.id [ fhir:value "Act.author" ];
       fhir:ElementDefinition.path [ fhir:value "Act.author" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.author" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Author" ]       ]     ], [
       fhir:index 24;
       fhir:Element.id [ fhir:value "Act.informant" ];
       fhir:ElementDefinition.path [ fhir:value "Act.informant" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.informant" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Element" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ]     ], [
       fhir:index 25;
       fhir:Element.id [ fhir:value "Act.informant.id" ];
       fhir:ElementDefinition.path [ fhir:value "Act.informant.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.valueUrl [ fhir:value "string" ]         ];
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 26;
       fhir:Element.id [ fhir:value "Act.informant.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Act.informant.extension" ];
       fhir:ElementDefinition.slicing [
         fhir:ElementDefinition.slicing.discriminator [
           fhir:index 0;
           fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ];
           fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]         ];
         fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ];
         fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "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." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
           fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 27;
       fhir:Element.id [ fhir:value "Act.informant.typeCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.informant.typeCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.informant.typeCode" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.defaultValueCode [ fhir:value "INF" ];
       fhir:ElementDefinition.fixedCode [ fhir:value "INF" ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ParticipationInformationGenerator";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ParticipationInformationGenerator>         ]       ]     ], [
       fhir:index 28;
       fhir:Element.id [ fhir:value "Act.informant.contextControlCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.informant.contextControlCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.informant.contextControlCode" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.defaultValueCode [ fhir:value "OP" ];
       fhir:ElementDefinition.fixedCode [ fhir:value "OP" ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ContextControl";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ContextControl>         ]       ]     ], [
       fhir:index 29;
       fhir:Element.id [ fhir:value "Act.informant.assignedEntity" ];
       fhir:ElementDefinition.path [ fhir:value "Act.informant.assignedEntity" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.informant.assignedEntity" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity" ]       ]     ], [
       fhir:index 30;
       fhir:Element.id [ fhir:value "Act.informant.relatedEntity" ];
       fhir:ElementDefinition.path [ fhir:value "Act.informant.relatedEntity" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.informant.relatedEntity" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/RelatedEntity" ]       ]     ], [
       fhir:index 31;
       fhir:Element.id [ fhir:value "Act.participant" ];
       fhir:ElementDefinition.path [ fhir:value "Act.participant" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.participant" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Participant2" ]       ]     ], [
       fhir:index 32;
       fhir:Element.id [ fhir:value "Act.entryRelationship" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Element" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "act-er-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Only one of observation, regionOfInterest, observationMedia, substanceAdministration, supply, procedure, encounter, organizer, and act" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "(observation | regionOfInterest | observationMedia | substanceAdministration | supply | procedure | encounter | organizer | act).count() = 1" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ]     ], [
       fhir:index 33;
       fhir:Element.id [ fhir:value "Act.entryRelationship.id" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.valueUrl [ fhir:value "string" ]         ];
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 34;
       fhir:Element.id [ fhir:value "Act.entryRelationship.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.extension" ];
       fhir:ElementDefinition.slicing [
         fhir:ElementDefinition.slicing.discriminator [
           fhir:index 0;
           fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ];
           fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]         ];
         fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ];
         fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "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." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
           fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 35;
       fhir:Element.id [ fhir:value "Act.entryRelationship.typeCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.typeCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.typeCode" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ]     ], [
       fhir:index 36;
       fhir:Element.id [ fhir:value "Act.entryRelationship.inversionInd" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.inversionInd" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.inversionInd" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "boolean" ]       ]     ], [
       fhir:index 37;
       fhir:Element.id [ fhir:value "Act.entryRelationship.contextConductionInd" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.contextConductionInd" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.contextConductionInd" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "boolean" ]       ];
       fhir:ElementDefinition.defaultValueBoolean [ fhir:value "true"^^xsd:boolean ]     ], [
       fhir:index 38;
       fhir:Element.id [ fhir:value "Act.entryRelationship.sequenceNumber" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.sequenceNumber" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.sequenceNumber" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/INT" ]       ]     ], [
       fhir:index 39;
       fhir:Element.id [ fhir:value "Act.entryRelationship.negationInd" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.negationInd" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.negationInd" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "boolean" ]       ]     ], [
       fhir:index 40;
       fhir:Element.id [ fhir:value "Act.entryRelationship.seperatableInd" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.seperatableInd" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.seperatableInd" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/BL" ]       ]     ], [
       fhir:index 41;
       fhir:Element.id [ fhir:value "Act.entryRelationship.observation" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.observation" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.observation" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Observation" ]       ]     ], [
       fhir:index 42;
       fhir:Element.id [ fhir:value "Act.entryRelationship.regionOfInterest" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.regionOfInterest" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.regionOfInterest" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/RegionOfInterest" ]       ]     ], [
       fhir:index 43;
       fhir:Element.id [ fhir:value "Act.entryRelationship.observationMedia" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.observationMedia" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.observationMedia" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/ObservationMedia" ]       ]     ], [
       fhir:index 44;
       fhir:Element.id [ fhir:value "Act.entryRelationship.substanceAdministration" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.substanceAdministration" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.substanceAdministration" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration" ]       ]     ], [
       fhir:index 45;
       fhir:Element.id [ fhir:value "Act.entryRelationship.supply" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.supply" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.supply" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Supply" ]       ]     ], [
       fhir:index 46;
       fhir:Element.id [ fhir:value "Act.entryRelationship.procedure" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.procedure" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.procedure" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Procedure" ]       ]     ], [
       fhir:index 47;
       fhir:Element.id [ fhir:value "Act.entryRelationship.encounter" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.encounter" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.encounter" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Encounter" ]       ]     ], [
       fhir:index 48;
       fhir:Element.id [ fhir:value "Act.entryRelationship.organizer" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.organizer" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.organizer" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Organizer" ]       ]     ], [
       fhir:index 49;
       fhir:Element.id [ fhir:value "Act.entryRelationship.act" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.act" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.entryRelationship.act" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Act" ]       ]     ], [
       fhir:index 50;
       fhir:Element.id [ fhir:value "Act.reference" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.reference" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Element" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ]     ], [
       fhir:index 51;
       fhir:Element.id [ fhir:value "Act.reference.id" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.valueUrl [ fhir:value "string" ]         ];
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 52;
       fhir:Element.id [ fhir:value "Act.reference.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.extension" ];
       fhir:ElementDefinition.slicing [
         fhir:ElementDefinition.slicing.discriminator [
           fhir:index 0;
           fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ];
           fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]         ];
         fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ];
         fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "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." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Element";
           fhir:link <http://hl7.org/fhir/StructureDefinition/Element>         ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.constraint.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.constraint.source [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Extension";
           fhir:link <http://hl7.org/fhir/StructureDefinition/Extension>         ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "false"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 53;
       fhir:Element.id [ fhir:value "Act.reference.typeCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.typeCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.reference.typeCode" ];
         fhir:ElementDefinition.base.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ]     ], [
       fhir:index 54;
       fhir:Element.id [ fhir:value "Act.reference.seperatableInd" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.seperatableInd" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.reference.seperatableInd" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/BL" ]       ]     ], [
       fhir:index 55;
       fhir:Element.id [ fhir:value "Act.reference.externalAct" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.externalAct" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.reference.externalAct" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/ExternalAct" ]       ]     ], [
       fhir:index 56;
       fhir:Element.id [ fhir:value "Act.reference.externalObservation" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.externalObservation" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.reference.externalObservation" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/ExternalObservation" ]       ]     ], [
       fhir:index 57;
       fhir:Element.id [ fhir:value "Act.reference.externalProcedure" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.externalProcedure" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.reference.externalProcedure" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/ExternalProcedure" ]       ]     ], [
       fhir:index 58;
       fhir:Element.id [ fhir:value "Act.reference.externalDocument" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.externalDocument" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.reference.externalDocument" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/ExternalDocument" ]       ]     ], [
       fhir:index 59;
       fhir:Element.id [ fhir:value "Act.precondition" ];
       fhir:ElementDefinition.path [ fhir:value "Act.precondition" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Act.precondition" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Precondition" ]       ]     ]
  ]; # 
  fhir:StructureDefinition.differential [
     fhir:StructureDefinition.differential.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "Act" ];
       fhir:ElementDefinition.path [ fhir:value "Act" ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ]     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "Act.classCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.classCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ]     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "Act.moodCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.moodCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ]     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "Act.realmCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.realmCode" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/CS" ]       ]     ], [
       fhir:index 4;
       fhir:Element.id [ fhir:value "Act.typeId" ];
       fhir:ElementDefinition.path [ fhir:value "Act.typeId" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/II" ]       ]     ], [
       fhir:index 5;
       fhir:Element.id [ fhir:value "Act.templateId" ];
       fhir:ElementDefinition.path [ fhir:value "Act.templateId" ];
       fhir:ElementDefinition.definition [ fhir:value "When valued in an instance, this attribute signals the imposition of a set of template-defined constraints. The value of this attribute provides a unique identifier for the templates in question" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/II" ]       ]     ], [
       fhir:index 6;
       fhir:Element.id [ fhir:value "Act.id" ];
       fhir:ElementDefinition.path [ fhir:value "Act.id" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/II" ]       ]     ], [
       fhir:index 7;
       fhir:Element.id [ fhir:value "Act.code" ];
       fhir:ElementDefinition.path [ fhir:value "Act.code" ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/CD" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ActCode";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ActCode>         ]       ]     ], [
       fhir:index 8;
       fhir:Element.id [ fhir:value "Act.negationInd" ];
       fhir:ElementDefinition.path [ fhir:value "Act.negationInd" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "boolean" ]       ]     ], [
       fhir:index 9;
       fhir:Element.id [ fhir:value "Act.text" ];
       fhir:ElementDefinition.path [ fhir:value "Act.text" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/ED" ]       ]     ], [
       fhir:index 10;
       fhir:Element.id [ fhir:value "Act.statusCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.statusCode" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/CS" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ActStatus";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ActStatus>         ]       ]     ], [
       fhir:index 11;
       fhir:Element.id [ fhir:value "Act.effectiveTime" ];
       fhir:ElementDefinition.path [ fhir:value "Act.effectiveTime" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/IVL-TS" ]       ]     ], [
       fhir:index 12;
       fhir:Element.id [ fhir:value "Act.priorityCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.priorityCode" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/CE" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ActPriority";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ActPriority>         ]       ]     ], [
       fhir:index 13;
       fhir:Element.id [ fhir:value "Act.languageCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.languageCode" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/CS" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-HumanLanguage";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-HumanLanguage>         ]       ]     ], [
       fhir:index 14;
       fhir:Element.id [ fhir:value "Act.subject" ];
       fhir:ElementDefinition.path [ fhir:value "Act.subject" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Element" ]       ]     ], [
       fhir:index 15;
       fhir:Element.id [ fhir:value "Act.subject.typeCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.subject.typeCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.defaultValueCode [ fhir:value "SBJ" ];
       fhir:ElementDefinition.fixedCode [ fhir:value "SBJ" ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ParticipationTargetSubject";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ParticipationTargetSubject>         ]       ]     ], [
       fhir:index 16;
       fhir:Element.id [ fhir:value "Act.subject.contextControlCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.subject.contextControlCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.defaultValueCode [ fhir:value "OP" ];
       fhir:ElementDefinition.fixedCode [ fhir:value "OP" ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ContextControl";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ContextControl>         ]       ]     ], [
       fhir:index 17;
       fhir:Element.id [ fhir:value "Act.subject.awarenessCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.subject.awarenessCode" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/CE" ]       ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-TargetAwareness";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-TargetAwareness>         ]       ]     ], [
       fhir:index 18;
       fhir:Element.id [ fhir:value "Act.subject.relatedSubject" ];
       fhir:ElementDefinition.path [ fhir:value "Act.subject.relatedSubject" ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/RelatedSubject" ]       ]     ], [
       fhir:index 19;
       fhir:Element.id [ fhir:value "Act.specimen" ];
       fhir:ElementDefinition.path [ fhir:value "Act.specimen" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Specimen" ]       ]     ], [
       fhir:index 20;
       fhir:Element.id [ fhir:value "Act.performer" ];
       fhir:ElementDefinition.path [ fhir:value "Act.performer" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Performer2" ]       ]     ], [
       fhir:index 21;
       fhir:Element.id [ fhir:value "Act.author" ];
       fhir:ElementDefinition.path [ fhir:value "Act.author" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Author" ]       ]     ], [
       fhir:index 22;
       fhir:Element.id [ fhir:value "Act.informant" ];
       fhir:ElementDefinition.path [ fhir:value "Act.informant" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Element" ]       ]     ], [
       fhir:index 23;
       fhir:Element.id [ fhir:value "Act.informant.typeCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.informant.typeCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.defaultValueCode [ fhir:value "INF" ];
       fhir:ElementDefinition.fixedCode [ fhir:value "INF" ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ParticipationInformationGenerator";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ParticipationInformationGenerator>         ]       ]     ], [
       fhir:index 24;
       fhir:Element.id [ fhir:value "Act.informant.contextControlCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.informant.contextControlCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ];
       fhir:ElementDefinition.defaultValueCode [ fhir:value "OP" ];
       fhir:ElementDefinition.fixedCode [ fhir:value "OP" ];
       fhir:ElementDefinition.binding [
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.valueSet [
           fhir:value "http://terminology.hl7.org/ValueSet/v3-ContextControl";
           fhir:link <http://terminology.hl7.org/ValueSet/v3-ContextControl>         ]       ]     ], [
       fhir:index 25;
       fhir:Element.id [ fhir:value "Act.informant.assignedEntity" ];
       fhir:ElementDefinition.path [ fhir:value "Act.informant.assignedEntity" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/AssignedEntity" ]       ]     ], [
       fhir:index 26;
       fhir:Element.id [ fhir:value "Act.informant.relatedEntity" ];
       fhir:ElementDefinition.path [ fhir:value "Act.informant.relatedEntity" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/RelatedEntity" ]       ]     ], [
       fhir:index 27;
       fhir:Element.id [ fhir:value "Act.participant" ];
       fhir:ElementDefinition.path [ fhir:value "Act.participant" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Participant2" ]       ]     ], [
       fhir:index 28;
       fhir:Element.id [ fhir:value "Act.entryRelationship" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Element" ]       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "act-er-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Only one of observation, regionOfInterest, observationMedia, substanceAdministration, supply, procedure, encounter, organizer, and act" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "(observation | regionOfInterest | observationMedia | substanceAdministration | supply | procedure | encounter | organizer | act).count() = 1" ]       ]     ], [
       fhir:index 29;
       fhir:Element.id [ fhir:value "Act.entryRelationship.typeCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.typeCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ]     ], [
       fhir:index 30;
       fhir:Element.id [ fhir:value "Act.entryRelationship.inversionInd" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.inversionInd" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "boolean" ]       ]     ], [
       fhir:index 31;
       fhir:Element.id [ fhir:value "Act.entryRelationship.contextConductionInd" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.contextConductionInd" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "boolean" ]       ];
       fhir:ElementDefinition.defaultValueBoolean [ fhir:value "true"^^xsd:boolean ]     ], [
       fhir:index 32;
       fhir:Element.id [ fhir:value "Act.entryRelationship.sequenceNumber" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.sequenceNumber" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/INT" ]       ]     ], [
       fhir:index 33;
       fhir:Element.id [ fhir:value "Act.entryRelationship.negationInd" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.negationInd" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "boolean" ]       ]     ], [
       fhir:index 34;
       fhir:Element.id [ fhir:value "Act.entryRelationship.seperatableInd" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.seperatableInd" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/BL" ]       ]     ], [
       fhir:index 35;
       fhir:Element.id [ fhir:value "Act.entryRelationship.observation" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.observation" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Observation" ]       ]     ], [
       fhir:index 36;
       fhir:Element.id [ fhir:value "Act.entryRelationship.regionOfInterest" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.regionOfInterest" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/RegionOfInterest" ]       ]     ], [
       fhir:index 37;
       fhir:Element.id [ fhir:value "Act.entryRelationship.observationMedia" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.observationMedia" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/ObservationMedia" ]       ]     ], [
       fhir:index 38;
       fhir:Element.id [ fhir:value "Act.entryRelationship.substanceAdministration" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.substanceAdministration" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/SubstanceAdministration" ]       ]     ], [
       fhir:index 39;
       fhir:Element.id [ fhir:value "Act.entryRelationship.supply" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.supply" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Supply" ]       ]     ], [
       fhir:index 40;
       fhir:Element.id [ fhir:value "Act.entryRelationship.procedure" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.procedure" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Procedure" ]       ]     ], [
       fhir:index 41;
       fhir:Element.id [ fhir:value "Act.entryRelationship.encounter" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.encounter" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Encounter" ]       ]     ], [
       fhir:index 42;
       fhir:Element.id [ fhir:value "Act.entryRelationship.organizer" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.organizer" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Organizer" ]       ]     ], [
       fhir:index 43;
       fhir:Element.id [ fhir:value "Act.entryRelationship.act" ];
       fhir:ElementDefinition.path [ fhir:value "Act.entryRelationship.act" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Act" ]       ]     ], [
       fhir:index 44;
       fhir:Element.id [ fhir:value "Act.reference" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Element" ]       ]     ], [
       fhir:index 45;
       fhir:Element.id [ fhir:value "Act.reference.typeCode" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.typeCode" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.min [ fhir:value "1"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "code" ]       ]     ], [
       fhir:index 46;
       fhir:Element.id [ fhir:value "Act.reference.seperatableInd" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.seperatableInd" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/BL" ]       ]     ], [
       fhir:index 47;
       fhir:Element.id [ fhir:value "Act.reference.externalAct" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.externalAct" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/ExternalAct" ]       ]     ], [
       fhir:index 48;
       fhir:Element.id [ fhir:value "Act.reference.externalObservation" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.externalObservation" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/ExternalObservation" ]       ]     ], [
       fhir:index 49;
       fhir:Element.id [ fhir:value "Act.reference.externalProcedure" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.externalProcedure" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/ExternalProcedure" ]       ]     ], [
       fhir:index 50;
       fhir:Element.id [ fhir:value "Act.reference.externalDocument" ];
       fhir:ElementDefinition.path [ fhir:value "Act.reference.externalDocument" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/ExternalDocument" ]       ]     ], [
       fhir:index 51;
       fhir:Element.id [ fhir:value "Act.precondition" ];
       fhir:ElementDefinition.path [ fhir:value "Act.precondition" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "http://hl7.org/fhir/cda/StructureDefinition/Precondition" ]       ]     ]
  ]. # 

# - ontology header ------------------------------------------------------------

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.