HL7 FHIR Profile: Skin and Wound Assessment, Release 1 (For Comment)

GroupProfile

@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 "cimi-entity-Group"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <p><b>SW Group Profile</b></p>\n  <p>A set of entities (personnel, material, or places) to be considered together. May be a pool of like-type resources, a team, or combination of personnel, material and places.</p>\n  <p><b>SW Mapping Summary</b></p>\n  <p><pre>cimi.entity.Group maps to Group:\n  ActiveFlag maps to active\r\n  Type maps to type\r\n  Actual maps to actual\r\n  constrain code to 0..0\n  Title maps to name\r\n  GroupCharacteristic maps to characteristic.value[x]\r\n  GroupCharacteristic.GroupCharacteristicCode maps to characteristic.code\r\n  GroupCharacteristic.ExcludeFlag maps to characteristic.exclude\r\n  GroupCharacteristic.TimePeriod maps to characteristic.period\r\n  Member.Patient maps to member.entity\r\n  Member.Practitioner maps to member.entity\r\n  Member.Device maps to member.entity\r\n  Member.Medication maps to member.entity\r\n  Member.Substance maps to member.entity\r\n  Member.ParticipationPeriod maps to member.period\r\n  Member.ActiveFlag maps to member.inactive // TODO this is an inverse TF mapping\r\n  Count maps to quantity\r\n</pre></p>\n</div>"
  ];
  fhir:StructureDefinition.url [ fhir:value "http://hl7.org/fhir/us/sw/StructureDefinition/cimi-entity-Group"];
  fhir:StructureDefinition.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "http://hl7.org/fhir/us/sw" ];
     fhir:Identifier.value [ fhir:value "cimi.entity.Group" ]
  ];
  fhir:StructureDefinition.version [ fhir:value "1.0.0"];
  fhir:StructureDefinition.name [ fhir:value "GroupProfile"];
  fhir:StructureDefinition.title [ fhir:value "SW Group Profile"];
  fhir:StructureDefinition.status [ fhir:value "draft"];
  fhir:StructureDefinition.date [ fhir:value "2018-08-17T00:00:00-04:00"^^xsd:dateTime];
  fhir:StructureDefinition.publisher [ fhir:value "HL7 Patient Care and Clinical Information Modeling Initiative Work Groups"];
  fhir:StructureDefinition.contact [
     fhir:index 0;
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://standardhealthrecord.org" ]     ]
  ];
  fhir:StructureDefinition.description [ fhir:value "A set of entities (personnel, material, or places) to be considered together. May be a pool of like-type resources, a team, or combination of personnel, material and places."];
  fhir:StructureDefinition.fhirVersion [ fhir:value "3.0.1"];
  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:index 1;
     fhir:StructureDefinition.mapping.identity [ fhir:value "w5" ];
     fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/fhir/w5" ];
     fhir:StructureDefinition.mapping.name [ fhir:value "W5 Mapping" ]
  ];
  fhir:StructureDefinition.kind [ fhir:value "resource"];
  fhir:StructureDefinition.abstract [ fhir:value "false"^^xsd:boolean];
  fhir:StructureDefinition.type [ fhir:value "Group"];
  fhir:StructureDefinition.baseDefinition [ fhir:value "http://hl7.org/fhir/StructureDefinition/Group"];
  fhir:StructureDefinition.derivation [ fhir:value "constraint"];
  fhir:StructureDefinition.snapshot [
     fhir:StructureDefinition.snapshot.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group" ];
       fhir:ElementDefinition.path [ fhir:value "Group" ];
       fhir:ElementDefinition.short [ fhir:value "SW Group Profile" ];
       fhir:ElementDefinition.definition [ fhir:value "A set of entities (personnel, material, or places) to be considered together. May be a pool of like-type resources, a team, or combination of personnel, material and places." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "dom-2" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "contained.contained.empty()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "not(parent::f:contained and f:contained)" ];
         fhir:ElementDefinition.constraint.source [ fhir:value "DomainResource" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.constraint.key [ fhir:value "dom-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "If the resource is contained in another resource, it SHALL NOT contain any narrative" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "contained.text.empty()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "not(parent::f:contained and f:text)" ];
         fhir:ElementDefinition.constraint.source [ fhir:value "DomainResource" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.constraint.key [ fhir:value "dom-4" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" ];
         fhir:ElementDefinition.constraint.source [ fhir:value "DomainResource" ]       ], [
         fhir:index 3;
         fhir:ElementDefinition.constraint.key [ fhir:value "dom-3" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "contained.where(('#'+id in %resource.descendants().reference).not()).empty()" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))" ];
         fhir:ElementDefinition.constraint.source [ fhir:value "DomainResource" ]       ], [
         fhir:index 4;
         fhir:ElementDefinition.constraint.key [ fhir:value "grp-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "Can only have members if group is \"actual\"" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "member.empty() or (actual = true)" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "f:actual/@value=true() or not(exists(f:member))" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "Entity. Role, or Act" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "Entity[determinerCode=\"GRP\" or determinerCode=\"GRP_KIND\"]" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "administrative.group" ]       ]     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.id" ];
       fhir:ElementDefinition.path [ fhir:value "Group.id" ];
       fhir:ElementDefinition.short [ fhir:value "Logical id of this artifact" ];
       fhir:ElementDefinition.definition [ fhir:value "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ];
       fhir:ElementDefinition.comment [ fhir:value "The only time that a resource does not have an id is when it is being submitted to the server using a create operation." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Resource.id" ];
         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 "id" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.meta" ];
       fhir:ElementDefinition.path [ fhir:value "Group.meta" ];
       fhir:ElementDefinition.short [ fhir:value "Metadata about the resource" ];
       fhir:ElementDefinition.definition [ fhir:value "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Resource.meta" ];
         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 "Meta" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.implicitRules" ];
       fhir:ElementDefinition.path [ fhir:value "Group.implicitRules" ];
       fhir:ElementDefinition.short [ fhir:value "A set of rules under which this content was created" ];
       fhir:ElementDefinition.definition [ fhir:value "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content." ];
       fhir:ElementDefinition.comment [ fhir:value "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Resource.implicitRules" ];
         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 "uri" ]       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ]     ], [
       fhir:index 4;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.language" ];
       fhir:ElementDefinition.path [ fhir:value "Group.language" ];
       fhir:ElementDefinition.short [ fhir:value "Language of the resource content" ];
       fhir:ElementDefinition.definition [ fhir:value "The base language in which the resource is written." ];
       fhir:ElementDefinition.comment [ fhir:value "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource  Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Resource.language" ];
         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 "code" ]       ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet" ];
           fhir:Extension.valueReference [
             fhir:link <http://hl7.org/fhir/ValueSet/all-languages>;
             fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/all-languages" ]           ]         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.valueString [ fhir:value "Language" ]         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding" ];
           fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]         ];
         fhir:ElementDefinition.binding.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.binding.description [ fhir:value "A human language." ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/languages>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/languages" ]         ]       ]     ], [
       fhir:index 5;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.text" ];
       fhir:ElementDefinition.path [ fhir:value "Group.text" ];
       fhir:ElementDefinition.short [ fhir:value "Text summary of the resource, for human interpretation" ];
       fhir:ElementDefinition.definition [ fhir:value "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." ];
       fhir:ElementDefinition.comment [ fhir:value "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded in formation is added later." ];
       fhir:ElementDefinition.alias [
         fhir:value "narrative";
         fhir:index 0       ], [
         fhir:value "html";
         fhir:index 1       ], [
         fhir:value "xhtml";
         fhir:index 2       ], [
         fhir:value "display";
         fhir:index 3       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.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 "Narrative" ]       ];
       fhir:ElementDefinition.condition [
         fhir:value "dom-1";
         fhir:index 0       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "Act.text?" ]       ]     ], [
       fhir:index 6;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.contained" ];
       fhir:ElementDefinition.path [ fhir:value "Group.contained" ];
       fhir:ElementDefinition.short [ fhir:value "Contained, inline Resources" ];
       fhir:ElementDefinition.definition [ fhir:value "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." ];
       fhir:ElementDefinition.comment [ fhir:value "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again." ];
       fhir:ElementDefinition.alias [
         fhir:value "inline resources";
         fhir:index 0       ], [
         fhir:value "anonymous resources";
         fhir:index 1       ], [
         fhir:value "contained resources";
         fhir:index 2       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "DomainResource.contained" ];
         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 "Resource" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 7;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Group.extension" ];
       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 resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       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 "DomainResource.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.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "N/A" ]       ]     ], [
       fhir:index 8;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "Group.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." ];
       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 "DomainResource.modifierExtension" ];
         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.isModifier [ fhir:value "true"^^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 9;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.identifier" ];
       fhir:ElementDefinition.path [ fhir:value "Group.identifier" ];
       fhir:ElementDefinition.short [ fhir:value "Unique id" ];
       fhir:ElementDefinition.definition [ fhir:value "A unique business identifier for this group." ];
       fhir:ElementDefinition.requirements [ fhir:value "Allows the group to be referenced from external specifications." ];
       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 "Identifier" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "unique(./id[displayable=\"true\" and scope=\"OBJ\"])" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "id" ]       ]     ], [
       fhir:index 10;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.active" ];
       fhir:ElementDefinition.path [ fhir:value "Group.active" ];
       fhir:ElementDefinition.short [ fhir:value "Whether this group's record is in active use" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates whether the record for the group is available for use or is merely being retained for historical purposes." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to be able to mark a group record as not to be used because it was created in error or is otherwise no longer available (e.g. a herd that no longer exists)." ];
       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:ElementDefinition.defaultValueBoolean [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "./statusCode" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "status" ]       ]     ], [
       fhir:index 11;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.type" ];
       fhir:ElementDefinition.path [ fhir:value "Group.type" ];
       fhir:ElementDefinition.short [ fhir:value "person | animal | practitioner | device | medication | substance" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifies the broad classification of the kind of resources the group includes." ];
       fhir:ElementDefinition.comment [ fhir:value "Group members SHALL be of the appropriate resource type (Patient for person or animal; or Practitioner, Device, Medicaiton or Substance for the other types.)." ];
       fhir:ElementDefinition.requirements [ fhir:value "Identifies what type of resources the group is made up of." ];
       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.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.valueString [ fhir:value "GroupType" ]         ];
         fhir:ElementDefinition.binding.strength [ fhir:value "required" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Types of resources that are part of group" ];
         fhir:ElementDefinition.binding.valueSetReference [
           fhir:link <http://hl7.org/fhir/ValueSet/group-type>;
           fhir:Reference.reference [ fhir:value "http://hl7.org/fhir/ValueSet/group-type" ]         ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "person: ./classCode=\"PSN\"  animal: ./classCode=\"ANM\"  device: ./classCode=\"DEV\"  medication: ./classCode=\"MMAT\" and ./playedRole[isNormalRole() and classCode=\"THER\"]  food: ./classCode=\"FOOD\"" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "class" ]       ]     ], [
       fhir:index 12;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.actual" ];
       fhir:ElementDefinition.path [ fhir:value "Group.actual" ];
       fhir:ElementDefinition.short [ fhir:value "Descriptive or actual" ];
       fhir:ElementDefinition.definition [ fhir:value "If true, indicates that the resource refers to a specific group of real individuals.  If false, the group defines a set of intended individuals." ];
       fhir:ElementDefinition.requirements [ fhir:value "There are use-cases for groups that define specific collections of individuals, and other groups that define \"types\" of intended individuals.  The requirements for both kinds of groups are similar, so we use a single resource, distinguished by this flag." ];
       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.condition [
         fhir:value "grp-1";
         fhir:index 0       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "true: ./determinerCode=\"GRP\"  false: ./determinerCode=\"GRP_KIND\"" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "class" ]       ]     ], [
       fhir:index 13;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.code" ];
       fhir:ElementDefinition.path [ fhir:value "Group.code" ];
       fhir:ElementDefinition.short [ fhir:value "Kind of Group members" ];
       fhir:ElementDefinition.definition [ fhir:value "Provides a specific type of resource the group includes; e.g. \"cow\", \"syringe\", etc." ];
       fhir:ElementDefinition.comment [ fhir:value "This would generally be omitted for Person resources." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "0" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "CodeableConcept" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.valueString [ fhir:value "GroupKind" ]         ];
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Kind of particular resource; e.g. cow, syringe, lake, etc." ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "./code" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "what" ]       ]     ], [
       fhir:index 14;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.name" ];
       fhir:ElementDefinition.path [ fhir:value "Group.name" ];
       fhir:ElementDefinition.short [ fhir:value "Label for Group" ];
       fhir:ElementDefinition.definition [ fhir:value "A label assigned to the group for human identification and communication." ];
       fhir:ElementDefinition.requirements [ fhir:value "Used to identify the group in human communication." ];
       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 "string" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "./name[type=\"ST\"]" ]       ]     ], [
       fhir:index 15;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.quantity" ];
       fhir:ElementDefinition.path [ fhir:value "Group.quantity" ];
       fhir:ElementDefinition.short [ fhir:value "Number of members" ];
       fhir:ElementDefinition.definition [ fhir:value "A count of the number of resource instances that are part of the group." ];
       fhir:ElementDefinition.comment [ fhir:value "Note that the quantity may be less than the number of members if some of the members are not active." ];
       fhir:ElementDefinition.requirements [ fhir:value "Group size is a common defining characteristic." ];
       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 "unsignedInt" ]       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "./quantity" ]       ]     ], [
       fhir:index 16;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.characteristic" ];
       fhir:ElementDefinition.path [ fhir:value "Group.characteristic" ];
       fhir:ElementDefinition.short [ fhir:value "Trait of group members" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifies the traits shared by members of the group." ];
       fhir:ElementDefinition.comment [ fhir:value "All the identified characteristics must be true for an entity to a member of the group." ];
       fhir:ElementDefinition.requirements [ fhir:value "Needs to be a generic mechanism for identifying what individuals can be part of a group." ];
       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 "BackboneElement" ]       ];
       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() | (children().count() > id.count())" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.constraint.source [ fhir:value "Element" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "./playedRole[isNormalRole()]/participation[isNormalParticipation() and typeCode=\"SBJ\"]/act[isNormalAct and classCode=\"OBS\" and moodCode=\"EVN\"]" ]       ]     ], [
       fhir:index 17;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.characteristic.id" ];
       fhir:ElementDefinition.path [ fhir:value "Group.characteristic.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.short [ fhir:value "xml:id (or equivalent in JSON)" ];
       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:ElementDefinition.type.code [ fhir:value "string" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 18;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.characteristic.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Group.characteristic.extension" ];
       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. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       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.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 19;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.characteristic.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "Group.characteristic.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." ];
       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:value "modifiers";
         fhir:index 2       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ];
         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.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^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 20;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.characteristic.code" ];
       fhir:ElementDefinition.path [ fhir:value "Group.characteristic.code" ];
       fhir:ElementDefinition.short [ fhir:value "Kind of characteristic" ];
       fhir:ElementDefinition.definition [ fhir:value "A code that identifies the kind of trait being asserted." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need a formal way of identifying the characteristic being described." ];
       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 "CodeableConcept" ]       ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.valueString [ fhir:value "GroupCharacteristicKind" ]         ];
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "List of characteristics used to describe group members; e.g. gender, age, owner, location, etc." ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "./code" ]       ]     ], [
       fhir:index 21;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.characteristic.value[x]" ];
       fhir:ElementDefinition.path [ fhir:value "Group.characteristic.value[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Value held by characteristic" ];
       fhir:ElementDefinition.definition [ fhir:value "The value of the trait that holds (or does not hold - see 'exclude') for members of the group." ];
       fhir:ElementDefinition.comment [ fhir:value "For Range, it means members of the group have a value that falls somewhere within the specified range." ];
       fhir:ElementDefinition.requirements [ fhir:value "The value of the characteristic is what determines group membership." ];
       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:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "Quantity" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.type.code [ fhir:value "Range" ]       ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.valueString [ fhir:value "GroupCharacteristicValue" ]         ];
         fhir:ElementDefinition.binding.strength [ fhir:value "example" ];
         fhir:ElementDefinition.binding.description [ fhir:value "Value of descriptive member characteristic; e.g. red, male, pneumonia, Caucasian, etc." ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "./value" ]       ]     ], [
       fhir:index 22;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.characteristic.exclude" ];
       fhir:ElementDefinition.path [ fhir:value "Group.characteristic.exclude" ];
       fhir:ElementDefinition.short [ fhir:value "Group includes or excludes" ];
       fhir:ElementDefinition.definition [ fhir:value "If true, indicates the characteristic is one that is NOT held by members of the group." ];
       fhir:ElementDefinition.comment [ fhir:value "This is labeled as \"Is Modifier\" because applications cannot wrongly include excluded members as included or vice versa." ];
       fhir:ElementDefinition.requirements [ fhir:value "Sometimes group membership is determined by characteristics not possessed." ];
       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.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "./valueNegationInd" ]       ]     ], [
       fhir:index 23;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.characteristic.period" ];
       fhir:ElementDefinition.path [ fhir:value "Group.characteristic.period" ];
       fhir:ElementDefinition.short [ fhir:value "Period over which characteristic is tested" ];
       fhir:ElementDefinition.definition [ fhir:value "The period over which the characteristic is tested; e.g. the patient had an operation during the month of June." ];
       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 "Period" ]       ]     ], [
       fhir:index 24;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.member" ];
       fhir:ElementDefinition.path [ fhir:value "Group.member" ];
       fhir:ElementDefinition.short [ fhir:value "Who or what is in group" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifies the resource instances that are members of the group." ];
       fhir:ElementDefinition.requirements [ fhir:value "Often the only thing of interest about a group is \"who's in it\"." ];
       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 "BackboneElement" ]       ];
       fhir:ElementDefinition.condition [
         fhir:value "grp-1";
         fhir:index 0       ];
       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() | (children().count() > id.count())" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.constraint.source [ fhir:value "Element" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "./scopedRole[isNormalRole() and classCode=\"MBR\"]/player" ]       ]     ], [
       fhir:index 25;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.member.id" ];
       fhir:ElementDefinition.path [ fhir:value "Group.member.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.short [ fhir:value "xml:id (or equivalent in JSON)" ];
       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:ElementDefinition.type.code [ fhir:value "string" ]       ];
       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 "Group:cimi-entity-Group.member.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Group.member.extension" ];
       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. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       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.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 "Group:cimi-entity-Group.member.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "Group.member.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." ];
       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:value "modifiers";
         fhir:index 2       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "BackboneElement.modifierExtension" ];
         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.isModifier [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^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 28;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.member.entity" ];
       fhir:ElementDefinition.path [ fhir:value "Group.member.entity" ];
       fhir:ElementDefinition.short [ fhir:value "Reference to the group member" ];
       fhir:ElementDefinition.definition [ fhir:value "A reference to the entity that is a member of the group. Must be consistent with Group.type." ];
       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 "Reference" ];
         fhir:ElementDefinition.type.targetProfile [ fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.targetProfile [ fhir:value "http://hl7.org/fhir/us/sw/StructureDefinition/cimi-entity-Practitioner" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.targetProfile [ fhir:value "http://hl7.org/fhir/us/sw/StructureDefinition/cimi-entity-Device" ]       ], [
         fhir:index 3;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.targetProfile [ fhir:value "http://hl7.org/fhir/us/sw/StructureDefinition/cimi-entity-Medication" ]       ], [
         fhir:index 4;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.targetProfile [ fhir:value "http://hl7.org/fhir/us/sw/StructureDefinition/cimi-entity-Substance" ]       ]     ], [
       fhir:index 29;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.member.period" ];
       fhir:ElementDefinition.path [ fhir:value "Group.member.period" ];
       fhir:ElementDefinition.short [ fhir:value "Period member belonged to the group" ];
       fhir:ElementDefinition.definition [ fhir:value "The period that the member was in the group, if known." ];
       fhir:ElementDefinition.requirements [ fhir:value "Need to track who was in a group at a  particular time." ];
       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 "Period" ]       ];
       fhir:ElementDefinition.meaningWhenMissing [ fhir:value "The member is in the group at this time" ]     ], [
       fhir:index 30;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.member.inactive" ];
       fhir:ElementDefinition.path [ fhir:value "Group.member.inactive" ];
       fhir:ElementDefinition.short [ fhir:value "If member is no longer in group" ];
       fhir:ElementDefinition.definition [ fhir:value "A flag to indicate that the member is no longer in the group, but previously may have been a member." ];
       fhir:ElementDefinition.requirements [ fhir:value "Sometimes you don't know when someone stopped being in a group, but not when." ];
       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:ElementDefinition.defaultValueBoolean [ fhir:value "false"^^xsd:boolean ]     ]
  ];
  fhir:StructureDefinition.differential [
     fhir:StructureDefinition.differential.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group" ];
       fhir:ElementDefinition.path [ fhir:value "Group" ];
       fhir:ElementDefinition.short [ fhir:value "SW Group Profile" ];
       fhir:ElementDefinition.definition [ fhir:value "A set of entities (personnel, material, or places) to be considered together. May be a pool of like-type resources, a team, or combination of personnel, material and places." ]     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.code" ];
       fhir:ElementDefinition.path [ fhir:value "Group.code" ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "0" ]     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.characteristic" ];
       fhir:ElementDefinition.path [ fhir:value "Group.characteristic" ]     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.characteristic.value[x]" ];
       fhir:ElementDefinition.path [ fhir:value "Group.characteristic.value[x]" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "boolean" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "Quantity" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.type.code [ fhir:value "Range" ]       ]     ], [
       fhir:index 4;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.member" ];
       fhir:ElementDefinition.path [ fhir:value "Group.member" ]     ], [
       fhir:index 5;
       fhir:Element.id [ fhir:value "Group:cimi-entity-Group.member.entity" ];
       fhir:ElementDefinition.path [ fhir:value "Group.member.entity" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.targetProfile [ fhir:value "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.targetProfile [ fhir:value "http://hl7.org/fhir/us/sw/StructureDefinition/cimi-entity-Practitioner" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.targetProfile [ fhir:value "http://hl7.org/fhir/us/sw/StructureDefinition/cimi-entity-Device" ]       ], [
         fhir:index 3;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.targetProfile [ fhir:value "http://hl7.org/fhir/us/sw/StructureDefinition/cimi-entity-Medication" ]       ], [
         fhir:index 4;
         fhir:ElementDefinition.type.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.type.targetProfile [ fhir:value "http://hl7.org/fhir/us/sw/StructureDefinition/cimi-entity-Substance" ]       ]     ]
  ].

<http://hl7.org/fhir/ValueSet/all-languages> a fhir:ValueSet.

<http://hl7.org/fhir/ValueSet/languages> a fhir:ValueSet.

<http://hl7.org/fhir/ValueSet/group-type> a fhir:ValueSet.

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

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