API Hub

Explore and Make use of Nationally Defined Messaging APIs

This is a HL7 FHIR server, and as you appear to be accessing this page from a web browser you are seeing a HTML version of the requested resource(s). You can also access this URL from a FHIR client as a ReSTful API call. For more details please see the HL7 FHIR specification.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><StructureDefinition xmlns="http://hl7.org/fhir">
   <id value="CareConnect-GPC-ProblemHeader-Condition-1"/>
   <meta>
      <lastUpdated value="2018-05-03T16:00:16.332+01:00"/>
   </meta>
   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
      <valueCode value="pc"/>
   </extension>
   <url value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProblemHeader-Condition-1"/>
   <version value="1.4.0"/>
   <name value="CareConnect-GPC-ProblemHeader-Condition-1"/>
   <status value="draft"/>
   <date value="2020-02-17"/>
   <publisher value="HL7 UK"/>
   <contact>
      <name value="INTEROPen"/>
      <telecom>
         <system value="email"/>
         <value value="admin@interopen.org"/>
         <use value="work"/>
      </telecom>
   </contact>
   <description value="This Condition resource records detailed information about conditions or diagnoses recognised by a clinician."/>
   <purpose value="CURATED BY INTEROPen see: http://www.interopen.org/careconnect-curation-methodology/ "/>
   <copyright value="Copyright © 2020 HL7 UK  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.  HL7® FHIR® standard Copyright © 2011+ HL7  The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at  https://www.hl7.org/fhir/license.html"/>
   <fhirVersion value="3.0.1"/>
   <kind value="resource"/>
   <abstract value="false"/>
   <type value="Condition"/>
   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Condition"/>
   <derivation value="constraint"/>
   <snapshot>
      <element id="Condition">
         <path value="Condition"/>
         <short value="Detailed information about conditions, problems or diagnoses"/>
         <definition value="A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern."/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Resource"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <constraint>
            <key value="dom-2"/>
            <severity value="error"/>
            <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/>
            <expression value="contained.contained.empty()"/>
            <xpath value="not(parent::f:contained and f:contained)"/>
         </constraint>
         <constraint>
            <key value="dom-1"/>
            <severity value="error"/>
            <human value="If the resource is contained in another resource, it SHALL NOT contain any narrative"/>
            <expression value="contained.text.empty()"/>
            <xpath value="not(parent::f:contained and f:text)"/>
         </constraint>
         <constraint>
            <key value="dom-4"/>
            <severity value="error"/>
            <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/>
            <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/>
            <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/>
         </constraint>
         <constraint>
            <key value="dom-3"/>
            <severity value="error"/>
            <human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource"/>
            <expression value="contained.where(('#'+id in %resource.descendants().reference).not()).empty()"/>
            <xpath value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))"/>
         </constraint>
         <constraint>
            <key value="con-4"/>
            <severity value="error"/>
            <human value="If condition is abated, then clinicalStatus must be either inactive, resolved, or remission"/>
            <expression value="abatement.empty() or (abatement as boolean).not()  or clinicalStatus='resolved' or clinicalStatus='remission' or clinicalStatus='inactive'"/>
            <xpath value="not(f:abatementBoolean/@value=true() or (not(exists(f:abatementBoolean)) and exists(*[starts-with(local-name(.), 'abatement')])) or f:clinicalStatus/@value=('resolved', 'remission', 'inactive'))"/>
         </constraint>
         <constraint>
            <key value="con-3"/>
            <severity value="error"/>
            <human value="Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error"/>
            <expression value="verificationStatus='entered-in-error' or clinicalStatus.exists()"/>
            <xpath value="f:verificationStatus/@value='entered-in-error' or exists(f:clinicalStatus)"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="Entity. Role, or Act"/>
         </mapping>
         <mapping>
            <identity value="sct-concept"/>
            <map value="< 243796009 |Situation with explicit context|: 246090004 |Associated finding| = ((< 404684003 |Clinical finding| MINUS << 420134006 |Propensity to adverse reactions| MINUS  << 473010000 |Hypersensitivity condition| MINUS  << 79899007 |Drug interaction| MINUS << 69449002 |Drug action| MINUS  << 441742003 |Evaluation finding| MINUS  << 307824009 |Administrative status| MINUS  << 385356007 |Tumor stage finding|) OR < 272379006 |Event|)"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="PPR message"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="Observation[classCode=OBS, moodCode=EVN, code=ASSERTION, value<Diagnosis]"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="clinical.general"/>
         </mapping>
      </element>
      <element id="Condition.id">
         <path value="Condition.id"/>
         <short value="Logical id of this artifact"/>
         <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/>
         <comment 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."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Resource.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="id"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.meta">
         <path value="Condition.meta"/>
         <short value="Metadata about the resource"/>
         <definition 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."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Resource.meta"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="Meta"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.meta.id">
         <path value="Condition.meta.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.meta.extension">
         <path value="Condition.meta.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.meta.versionId">
         <path value="Condition.meta.versionId"/>
         <short value="Version specific identifier"/>
         <definition value="The version specific identifier, as it appears in the version portion of the URL. This values changes when the resource is created, updated, or deleted."/>
         <comment value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Meta.versionId"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="id"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.meta.lastUpdated">
         <path value="Condition.meta.lastUpdated"/>
         <short value="When the resource version last changed"/>
         <definition value="When the resource last changed - e.g. when the version changed."/>
         <comment value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Meta.lastUpdated"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="instant"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.meta.profile">
         <path value="Condition.meta.profile"/>
         <short value="Profiles this resource claims to conform to"/>
         <definition value="A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url]()."/>
         <comment value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set."/>
         <min value="1"/>
         <max value="*"/>
         <base>
            <path value="Meta.profile"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="uri"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.meta.security">
         <path value="Condition.meta.security"/>
         <short value="Security Labels applied to this resource"/>
         <definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/>
         <comment value="The security labels can be updated without changing the stated version of the resource  The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Meta.security"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Coding"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="SecurityLabels"/>
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
               <valueBoolean value="true"/>
            </extension>
            <strength value="extensible"/>
            <description value="Security Labels from the Healthcare Privacy and Security Classification System."/>
            <valueSetReference>
               <reference value="http://hl7.org/fhir/ValueSet/security-labels"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CV"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
         </mapping>
      </element>
      <element id="Condition.meta.tag">
         <path value="Condition.meta.tag"/>
         <short value="Tags applied to this resource"/>
         <definition value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/>
         <comment value="The tags can be updated without changing the stated version of the resource.  The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Meta.tag"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Coding"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="Tags"/>
            </extension>
            <strength value="example"/>
            <description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones""/>
            <valueSetReference>
               <reference value="http://hl7.org/fhir/ValueSet/common-tags"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CV"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
         </mapping>
      </element>
      <element id="Condition.implicitRules">
         <path value="Condition.implicitRules"/>
         <short value="A set of rules under which this content was created"/>
         <definition 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."/>
         <comment 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.   This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Resource.implicitRules"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="uri"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isModifier value="true"/>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.language">
         <path value="Condition.language"/>
         <short value="Language of the resource content"/>
         <definition value="The base language in which the resource is written."/>
         <comment 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)."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Resource.language"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="code"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
               <valueReference>
                  <reference value="http://hl7.org/fhir/ValueSet/all-languages"/>
               </valueReference>
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="Language"/>
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
               <valueBoolean value="true"/>
            </extension>
            <strength value="extensible"/>
            <description value="A human language."/>
            <valueSetReference>
               <reference value="http://hl7.org/fhir/ValueSet/languages"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.text">
         <path value="Condition.text"/>
         <short value="Text summary of the resource, for human interpretation"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="narrative"/>
         <alias value="html"/>
         <alias value="xhtml"/>
         <alias value="display"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="DomainResource.text"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="Narrative"/>
         </type>
         <condition value="ele-1"/>
         <condition value="dom-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="Act.text?"/>
         </mapping>
      </element>
      <element id="Condition.contained">
         <path value="Condition.contained"/>
         <short value="Contained, inline Resources"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="inline resources"/>
         <alias value="anonymous resources"/>
         <alias value="contained resources"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="DomainResource.contained"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Resource"/>
         </type>
         <mapping>
            <identity value="rim"/>
            <map value="Entity. Role, or Act"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension">
         <path value="Condition.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:actualProblem">
         <path value="Condition.extension"/>
         <sliceName value="actualProblem"/>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
            <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ActualProblem-1"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mustSupport value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:actualProblem.id">
         <path value="Condition.extension.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.extension:actualProblem.extension">
         <path value="Condition.extension.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:actualProblem.url">
         <path value="Condition.extension.url"/>
         <representation value="xmlAttr"/>
         <short value="identifies the meaning of the extension"/>
         <definition value="Source of the definition for the extension code - a logical name or a URL."/>
         <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Extension.url"/>
            <min value="1"/>
            <max value="1"/>
         </base>
         <type>
            <code value="uri"/>
         </type>
         <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ActualProblem-1"/>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:actualProblem.value[x]">
         <path value="Condition.extension.value[x]"/>
         <short value="Value of extension"/>
         <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)."/>
         <comment value="A stream of bytes, base64 encoded"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Extension.value[x]"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="base64Binary"/>
         </type>
         <type>
            <code value="boolean"/>
         </type>
         <type>
            <code value="code"/>
         </type>
         <type>
            <code value="date"/>
         </type>
         <type>
            <code value="dateTime"/>
         </type>
         <type>
            <code value="decimal"/>
         </type>
         <type>
            <code value="id"/>
         </type>
         <type>
            <code value="instant"/>
         </type>
         <type>
            <code value="integer"/>
         </type>
         <type>
            <code value="markdown"/>
         </type>
         <type>
            <code value="oid"/>
         </type>
         <type>
            <code value="positiveInt"/>
         </type>
         <type>
            <code value="string"/>
         </type>
         <type>
            <code value="time"/>
         </type>
         <type>
            <code value="unsignedInt"/>
         </type>
         <type>
            <code value="uri"/>
         </type>
         <type>
            <code value="Address"/>
         </type>
         <type>
            <code value="Age"/>
         </type>
         <type>
            <code value="Annotation"/>
         </type>
         <type>
            <code value="Attachment"/>
         </type>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <type>
            <code value="Coding"/>
         </type>
         <type>
            <code value="ContactPoint"/>
         </type>
         <type>
            <code value="Count"/>
         </type>
         <type>
            <code value="Distance"/>
         </type>
         <type>
            <code value="Duration"/>
         </type>
         <type>
            <code value="HumanName"/>
         </type>
         <type>
            <code value="Identifier"/>
         </type>
         <type>
            <code value="Money"/>
         </type>
         <type>
            <code value="Period"/>
         </type>
         <type>
            <code value="Quantity"/>
         </type>
         <type>
            <code value="Range"/>
         </type>
         <type>
            <code value="Ratio"/>
         </type>
         <type>
            <code value="Reference"/>
         </type>
         <type>
            <code value="SampledData"/>
         </type>
         <type>
            <code value="Signature"/>
         </type>
         <type>
            <code value="Timing"/>
         </type>
         <type>
            <code value="Meta"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Immunization-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Specimen-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-AllergyIntolerance-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProcedureRequest-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:relatedProblemHeader">
         <path value="Condition.extension"/>
         <sliceName value="relatedProblemHeader"/>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
            <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-RelatedProblemHeader-1"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mustSupport value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:relatedProblemHeader.id">
         <path value="Condition.extension.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.extension:relatedProblemHeader.extension">
         <path value="Condition.extension.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:relatedProblemHeader.url">
         <path value="Condition.extension.url"/>
         <representation value="xmlAttr"/>
         <short value="identifies the meaning of the extension"/>
         <definition value="Source of the definition for the extension code - a logical name or a URL."/>
         <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Extension.url"/>
            <min value="1"/>
            <max value="1"/>
         </base>
         <type>
            <code value="uri"/>
         </type>
         <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-RelatedProblemHeader-1"/>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:relatedProblemHeader.value[x]">
         <path value="Condition.extension.value[x]"/>
         <short value="Value of extension"/>
         <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)."/>
         <comment value="A stream of bytes, base64 encoded"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Extension.value[x]"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="base64Binary"/>
         </type>
         <type>
            <code value="boolean"/>
         </type>
         <type>
            <code value="code"/>
         </type>
         <type>
            <code value="date"/>
         </type>
         <type>
            <code value="dateTime"/>
         </type>
         <type>
            <code value="decimal"/>
         </type>
         <type>
            <code value="id"/>
         </type>
         <type>
            <code value="instant"/>
         </type>
         <type>
            <code value="integer"/>
         </type>
         <type>
            <code value="markdown"/>
         </type>
         <type>
            <code value="oid"/>
         </type>
         <type>
            <code value="positiveInt"/>
         </type>
         <type>
            <code value="string"/>
         </type>
         <type>
            <code value="time"/>
         </type>
         <type>
            <code value="unsignedInt"/>
         </type>
         <type>
            <code value="uri"/>
         </type>
         <type>
            <code value="Address"/>
         </type>
         <type>
            <code value="Age"/>
         </type>
         <type>
            <code value="Annotation"/>
         </type>
         <type>
            <code value="Attachment"/>
         </type>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <type>
            <code value="Coding"/>
         </type>
         <type>
            <code value="ContactPoint"/>
         </type>
         <type>
            <code value="Count"/>
         </type>
         <type>
            <code value="Distance"/>
         </type>
         <type>
            <code value="Duration"/>
         </type>
         <type>
            <code value="HumanName"/>
         </type>
         <type>
            <code value="Identifier"/>
         </type>
         <type>
            <code value="Money"/>
         </type>
         <type>
            <code value="Period"/>
         </type>
         <type>
            <code value="Quantity"/>
         </type>
         <type>
            <code value="Range"/>
         </type>
         <type>
            <code value="Ratio"/>
         </type>
         <type>
            <code value="Reference"/>
         </type>
         <type>
            <code value="SampledData"/>
         </type>
         <type>
            <code value="Signature"/>
         </type>
         <type>
            <code value="Timing"/>
         </type>
         <type>
            <code value="Meta"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Immunization-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Specimen-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-AllergyIntolerance-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProcedureRequest-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:problemSignificance">
         <path value="Condition.extension"/>
         <sliceName value="problemSignificance"/>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
            <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ProblemSignificance-1"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mustSupport value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:problemSignificance.id">
         <path value="Condition.extension.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.extension:problemSignificance.extension">
         <path value="Condition.extension.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:problemSignificance.url">
         <path value="Condition.extension.url"/>
         <representation value="xmlAttr"/>
         <short value="identifies the meaning of the extension"/>
         <definition value="Source of the definition for the extension code - a logical name or a URL."/>
         <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Extension.url"/>
            <min value="1"/>
            <max value="1"/>
         </base>
         <type>
            <code value="uri"/>
         </type>
         <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ProblemSignificance-1"/>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:problemSignificance.value[x]">
         <path value="Condition.extension.value[x]"/>
         <short value="Value of extension"/>
         <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)."/>
         <comment value="A stream of bytes, base64 encoded"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Extension.value[x]"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="base64Binary"/>
         </type>
         <type>
            <code value="boolean"/>
         </type>
         <type>
            <code value="code"/>
         </type>
         <type>
            <code value="date"/>
         </type>
         <type>
            <code value="dateTime"/>
         </type>
         <type>
            <code value="decimal"/>
         </type>
         <type>
            <code value="id"/>
         </type>
         <type>
            <code value="instant"/>
         </type>
         <type>
            <code value="integer"/>
         </type>
         <type>
            <code value="markdown"/>
         </type>
         <type>
            <code value="oid"/>
         </type>
         <type>
            <code value="positiveInt"/>
         </type>
         <type>
            <code value="string"/>
         </type>
         <type>
            <code value="time"/>
         </type>
         <type>
            <code value="unsignedInt"/>
         </type>
         <type>
            <code value="uri"/>
         </type>
         <type>
            <code value="Address"/>
         </type>
         <type>
            <code value="Age"/>
         </type>
         <type>
            <code value="Annotation"/>
         </type>
         <type>
            <code value="Attachment"/>
         </type>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <type>
            <code value="Coding"/>
         </type>
         <type>
            <code value="ContactPoint"/>
         </type>
         <type>
            <code value="Count"/>
         </type>
         <type>
            <code value="Distance"/>
         </type>
         <type>
            <code value="Duration"/>
         </type>
         <type>
            <code value="HumanName"/>
         </type>
         <type>
            <code value="Identifier"/>
         </type>
         <type>
            <code value="Money"/>
         </type>
         <type>
            <code value="Period"/>
         </type>
         <type>
            <code value="Quantity"/>
         </type>
         <type>
            <code value="Range"/>
         </type>
         <type>
            <code value="Ratio"/>
         </type>
         <type>
            <code value="Reference"/>
         </type>
         <type>
            <code value="SampledData"/>
         </type>
         <type>
            <code value="Signature"/>
         </type>
         <type>
            <code value="Timing"/>
         </type>
         <type>
            <code value="Meta"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:relatedClinicalContent">
         <path value="Condition.extension"/>
         <sliceName value="relatedClinicalContent"/>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
            <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-RelatedClinicalContent-1"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mustSupport value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:relatedClinicalContent.id">
         <path value="Condition.extension.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.extension:relatedClinicalContent.extension">
         <path value="Condition.extension.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:relatedClinicalContent.url">
         <path value="Condition.extension.url"/>
         <representation value="xmlAttr"/>
         <short value="identifies the meaning of the extension"/>
         <definition value="Source of the definition for the extension code - a logical name or a URL."/>
         <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Extension.url"/>
            <min value="1"/>
            <max value="1"/>
         </base>
         <type>
            <code value="uri"/>
         </type>
         <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-RelatedClinicalContent-1"/>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.extension:relatedClinicalContent.value[x]">
         <path value="Condition.extension.value[x]"/>
         <short value="Value of extension"/>
         <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)."/>
         <comment value="A stream of bytes, base64 encoded"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Extension.value[x]"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="base64Binary"/>
         </type>
         <type>
            <code value="boolean"/>
         </type>
         <type>
            <code value="code"/>
         </type>
         <type>
            <code value="date"/>
         </type>
         <type>
            <code value="dateTime"/>
         </type>
         <type>
            <code value="decimal"/>
         </type>
         <type>
            <code value="id"/>
         </type>
         <type>
            <code value="instant"/>
         </type>
         <type>
            <code value="integer"/>
         </type>
         <type>
            <code value="markdown"/>
         </type>
         <type>
            <code value="oid"/>
         </type>
         <type>
            <code value="positiveInt"/>
         </type>
         <type>
            <code value="string"/>
         </type>
         <type>
            <code value="time"/>
         </type>
         <type>
            <code value="unsignedInt"/>
         </type>
         <type>
            <code value="uri"/>
         </type>
         <type>
            <code value="Address"/>
         </type>
         <type>
            <code value="Age"/>
         </type>
         <type>
            <code value="Annotation"/>
         </type>
         <type>
            <code value="Attachment"/>
         </type>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <type>
            <code value="Coding"/>
         </type>
         <type>
            <code value="ContactPoint"/>
         </type>
         <type>
            <code value="Count"/>
         </type>
         <type>
            <code value="Distance"/>
         </type>
         <type>
            <code value="Duration"/>
         </type>
         <type>
            <code value="HumanName"/>
         </type>
         <type>
            <code value="Identifier"/>
         </type>
         <type>
            <code value="Money"/>
         </type>
         <type>
            <code value="Period"/>
         </type>
         <type>
            <code value="Quantity"/>
         </type>
         <type>
            <code value="Range"/>
         </type>
         <type>
            <code value="Ratio"/>
         </type>
         <type>
            <code value="Reference"/>
         </type>
         <type>
            <code value="SampledData"/>
         </type>
         <type>
            <code value="Signature"/>
         </type>
         <type>
            <code value="Timing"/>
         </type>
         <type>
            <code value="Meta"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Immunization-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Specimen-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-AllergyIntolerance-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProcedureRequest-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.modifierExtension">
         <path value="Condition.modifierExtension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Extensions that cannot be ignored"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="DomainResource.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <isModifier value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.identifier">
         <path value="Condition.identifier"/>
         <short value="External Ids for this condition"/>
         <definition value="This records identifiers associated with this condition that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)."/>
         <requirements value="Need to allow connection to a wider workflow."/>
         <min value="1"/>
         <max value="*"/>
         <base>
            <path value="Condition.identifier"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Identifier"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"/>
         </mapping>
         <mapping>
            <identity value="servd"/>
            <map value="Identifier"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".id"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="id"/>
         </mapping>
      </element>
      <element id="Condition.identifier.id">
         <path value="Condition.identifier.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.identifier.extension">
         <path value="Condition.identifier.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.identifier.use">
         <path value="Condition.identifier.use"/>
         <short value="usual | official | temp | secondary (If known)"/>
         <definition value="The purpose of this identifier."/>
         <comment value="This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary."/>
         <requirements value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Identifier.use"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="code"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isModifier value="true"/>
         <isSummary value="true"/>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="IdentifierUse"/>
            </extension>
            <strength value="required"/>
            <description value="Identifies the purpose for this identifier, if known ."/>
            <valueSetReference>
               <reference value="http://hl7.org/fhir/ValueSet/identifier-use"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="N/A"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="Role.code or implied by context"/>
         </mapping>
      </element>
      <element id="Condition.identifier.type">
         <path value="Condition.identifier.type"/>
         <short value="Description of identifier"/>
         <definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose."/>
         <comment value="This element deals only with general categories of identifiers.  It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage.   Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type."/>
         <requirements value="Allows users to make use of identifiers when the identifier system is not known."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Identifier.type"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="IdentifierType"/>
            </extension>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
               <valueBoolean value="true"/>
            </extension>
            <strength value="extensible"/>
            <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose."/>
            <valueSetReference>
               <reference value="http://hl7.org/fhir/ValueSet/identifier-type"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CD"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CX.5"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="Role.code or implied by context"/>
         </mapping>
      </element>
      <element id="Condition.identifier.system">
         <path value="Condition.identifier.system"/>
         <short value="The namespace for the identifier value"/>
         <definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique."/>
         <comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier"/>
         <requirements value="There are many sets  of identifiers.  To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Identifier.system"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="uri"/>
         </type>
         <example>
            <label value="General"/>
            <valueUri value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"/>
         </example>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CX.4 / EI-2-4"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="II.root or Role.id.root"/>
         </mapping>
         <mapping>
            <identity value="servd"/>
            <map value="./IdentifierType"/>
         </mapping>
      </element>
      <element id="Condition.identifier.value">
         <path value="Condition.identifier.value"/>
         <short value="The value that is unique"/>
         <definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system."/>
         <comment value="If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986.  The value's primary purpose is computational mapping.  As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.)  A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html)."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Identifier.value"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <example>
            <label value="General"/>
            <valueString value="123456"/>
         </example>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CX.1 / EI.1"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/>
         </mapping>
         <mapping>
            <identity value="servd"/>
            <map value="./Value"/>
         </mapping>
      </element>
      <element id="Condition.identifier.period">
         <path value="Condition.identifier.period"/>
         <short value="Time period when id is/was valid for use"/>
         <definition value="Time period during which identifier is/was valid for use."/>
         <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. "the patient was an inpatient of the hospital for this time range") or one value from the range applies (e.g. "give to the patient between these two times"). If duration is required, specify the type as Interval|Duration."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Identifier.period"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="Period"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="per-1"/>
            <severity value="error"/>
            <human value="If present, start SHALL have a lower value than end"/>
            <expression value="start.empty() or end.empty() or (start <= end)"/>
            <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="DR"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CX.7 + CX.8"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="Role.effectiveTime or implied by context"/>
         </mapping>
         <mapping>
            <identity value="servd"/>
            <map value="./StartDate and ./EndDate"/>
         </mapping>
      </element>
      <element id="Condition.identifier.assigner">
         <path value="Condition.identifier.assigner"/>
         <short value="Organization that issued id (may be just text)"/>
         <definition value="Organization that issued/manages the identifier."/>
         <comment value="The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Identifier.assigner"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human value="SHALL have a contained resource if a local reference is provided"/>
            <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/>
            <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CX.4 / (CX.4,CX.9,CX.10)"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field.  Also Role.scoper"/>
         </mapping>
         <mapping>
            <identity value="servd"/>
            <map value="./IdentifierIssuingAuthority"/>
         </mapping>
      </element>
      <element id="Condition.clinicalStatus">
         <path value="Condition.clinicalStatus"/>
         <short value="active | inactive"/>
         <definition value="The clinical status of the condition."/>
         <comment value="This element is labeled as a modifier because the status contains codes that mark the condition as not currently valid or of concern."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Condition.clinicalStatus"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="code"/>
         </type>
         <condition value="ele-1"/>
         <condition value="con-3"/>
         <condition value="con-4"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isModifier value="true"/>
         <isSummary value="true"/>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="ConditionClinicalStatus"/>
            </extension>
            <strength value="required"/>
            <description value="The clinical status of the condition or diagnosis."/>
            <valueSetReference>
               <reference value="http://hl7.org/fhir/ValueSet/condition-clinical"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="sct-concept"/>
            <map value="< 303105007 |Disease phases|"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="PRB-14 / DG1-6"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code="clinicalStatus", moodCode=EVN].value"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="status"/>
         </mapping>
      </element>
      <element id="Condition.verificationStatus">
         <path value="Condition.verificationStatus"/>
         <short value="provisional | differential | confirmed | refuted | entered-in-error | unknown"/>
         <definition value="The verification status to support the clinical status of the condition."/>
         <comment value="verificationStatus is not required.  For example, when a patient has abdominal pain in the ED, there is not likely going to be a verification status.  This element is labeled as a modifier because the status contains the code refuted and entered-in-error that mark the Condition as not currently valid."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Condition.verificationStatus"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="code"/>
         </type>
         <defaultValueCode value="unknown"/>
         <condition value="ele-1"/>
         <condition value="con-3"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isModifier value="true"/>
         <isSummary value="true"/>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="ConditionVerificationStatus"/>
            </extension>
            <strength value="required"/>
            <description value="The verification status to support or decline the clinical status of the condition or diagnosis."/>
            <valueSetReference>
               <reference value="http://hl7.org/fhir/ValueSet/condition-ver-status"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="sct-concept"/>
            <map value="< 410514004 |Finding context value|"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="PRB-13"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="Observation ACT .inboundRelationship[typeCode=COMP].source[classCode=OBS, code="verificationStatus", moodCode=EVN].value"/>
         </mapping>
         <mapping>
            <identity value="sct-attr"/>
            <map value="408729009"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="status"/>
         </mapping>
      </element>
      <element id="Condition.category">
         <path value="Condition.category"/>
         <short value="problem-list-item | encounter-diagnosis | presenting-complaint"/>
         <definition value="A category assigned to the condition."/>
         <comment value="The categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Condition.category"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="ConditionCategory"/>
            </extension>
            <strength value="extensible"/>
            <description value="A category assigned to the condition."/>
            <valueSetReference>
               <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-ConditionCategory-1"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CD"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
         </mapping>
         <mapping>
            <identity value="sct-concept"/>
            <map value="< 404684003 |Clinical finding|"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="'problem' if from PRB-3. 'diagnosis' if from DG1 segment in PV1 message"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".code"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="class"/>
         </mapping>
      </element>
      <element id="Condition.category.id">
         <path value="Condition.category.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.category.extension">
         <path value="Condition.category.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.category.coding">
         <path value="Condition.category.coding"/>
         <short value="Code defined by a terminology system"/>
         <definition value="A reference to a code defined by a terminology system."/>
         <comment value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."/>
         <requirements value="Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings."/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Coding"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CV"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="C*E.1-8, C*E.10-22"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="union(., ./translation)"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/>
         </mapping>
      </element>
      <element id="Condition.category.coding.id">
         <path value="Condition.category.coding.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.category.coding.extension">
         <path value="Condition.category.coding.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.category.coding.system">
         <path value="Condition.category.coding.system"/>
         <short value="Identity of the terminology system"/>
         <definition value="The identification of the code system that defines the meaning of the symbol in the code."/>
         <comment value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously."/>
         <requirements value="Need to be unambiguous about the source of the definition of the symbol."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Coding.system"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="uri"/>
         </type>
         <fixedUri value="http://hl7.org/fhir/condition-category"/>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="C*E.3"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="./codeSystem"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/>
         </mapping>
      </element>
      <element id="Condition.category.coding.version">
         <path value="Condition.category.coding.version"/>
         <short value="Version of the system - if relevant"/>
         <definition value="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged."/>
         <comment value="Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Coding.version"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="C*E.7"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="./codeSystemVersion"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/>
         </mapping>
      </element>
      <element id="Condition.category.coding.code">
         <path value="Condition.category.coding.code"/>
         <short value="Symbol in syntax defined by the system"/>
         <definition value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <requirements value="Need to refer to a particular code in the system."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Coding.code"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="code"/>
         </type>
         <fixedCode value="problem-list-item"/>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="C*E.1"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="./code"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/>
         </mapping>
      </element>
      <element id="Condition.category.coding.display">
         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
         </extension>
         <path value="Condition.category.coding.display"/>
         <short value="Representation defined by the system"/>
         <definition value="A representation of the meaning of the code in the system, following the rules of the system."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know  the system."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Coding.display"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <fixedString value="Problem List Item"/>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="C*E.2 - but note this is not well followed"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CV.displayName"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/>
         </mapping>
      </element>
      <element id="Condition.category.coding.userSelected">
         <path value="Condition.category.coding.userSelected"/>
         <short value="If this coding was chosen directly by the user"/>
         <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/>
         <comment value="Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely."/>
         <requirements value="This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Coding.userSelected"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="boolean"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="Sometimes implied by being first"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CD.codingRationale"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [     fhir:source "true";     fhir:target dt:CDCoding.codingRationale\#O   ]"/>
         </mapping>
      </element>
      <element id="Condition.category.text">
         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
         </extension>
         <path value="Condition.category.text"/>
         <short value="Plain text representation of the concept"/>
         <definition value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user."/>
         <comment value="Very often the text is the same as a displayName of one of the codings."/>
         <requirements value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="CodeableConcept.text"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="C*E.9. But note many systems use C*E.2 for this"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="./originalText[mediaType/code="text/plain"]/data"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/>
         </mapping>
      </element>
      <element id="Condition.severity">
         <path value="Condition.severity"/>
         <short value="Subjective severity of condition"/>
         <definition value="A subjective assessment of the severity of the condition as evaluated by the clinician."/>
         <comment value="Coding of the severity with a terminology is preferred, where possible."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Condition.severity"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="ConditionSeverity"/>
            </extension>
            <strength value="preferred"/>
            <description value="A subjective assessment of the severity of the condition as evaluated by the clinician."/>
            <valueSetReference>
               <reference value="http://hl7.org/fhir/ValueSet/condition-severity"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CD"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
         </mapping>
         <mapping>
            <identity value="sct-concept"/>
            <map value="< 272141005 |Severities|"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="PRB-26 / ABS-3"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="Can be pre/post-coordinated into value.  Or ./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="severity"].value"/>
         </mapping>
         <mapping>
            <identity value="sct-attr"/>
            <map value="246112005"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="grade"/>
         </mapping>
      </element>
      <element id="Condition.code">
         <path value="Condition.code"/>
         <short value="Identification of the condition, problem or diagnosis"/>
         <definition value="Identification of the condition, problem or diagnosis."/>
         <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
         <requirements value="0..1 to account for primarily narrative only resources."/>
         <alias value="type"/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Condition.code"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="ConditionKind"/>
            </extension>
            <strength value="example"/>
            <description value="Identification of the condition or diagnosis."/>
            <valueSetReference>
               <reference value="http://hl7.org/fhir/ValueSet/condition-code"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CD"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
         </mapping>
         <mapping>
            <identity value="sct-concept"/>
            <map value="code 246090004 |Associated finding| (< 404684003 |Clinical finding| MINUS << 420134006 |Propensity to adverse reactions| MINUS  << 473010000 |Hypersensitivity condition| MINUS  << 79899007 |Drug interaction| MINUS << 69449002 |Drug action| MINUS  << 441742003 |Evaluation finding| MINUS  << 307824009 |Administrative status| MINUS  << 385356007 |Tumor stage finding|)  OR < 413350009 |Finding with explicit context| OR < 272379006 |Event|"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="PRB-3"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".value"/>
         </mapping>
         <mapping>
            <identity value="sct-attr"/>
            <map value="246090004"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="what"/>
         </mapping>
      </element>
      <element id="Condition.code.id">
         <path value="Condition.code.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.code.extension">
         <path value="Condition.code.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.code.coding">
         <path value="Condition.code.coding"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="system"/>
            </discriminator>
            <ordered value="false"/>
            <rules value="open"/>
         </slicing>
         <short value="Code defined by a terminology system"/>
         <definition value="A reference to a code defined by a terminology system."/>
         <comment value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."/>
         <requirements value="Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings."/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Coding"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CV"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="C*E.1-8, C*E.10-22"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="union(., ./translation)"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/>
         </mapping>
      </element>
      <element id="Condition.code.coding:snomedCT">
         <path value="Condition.code.coding"/>
         <sliceName value="snomedCT"/>
         <short value="Code defined by a terminology system"/>
         <definition value="A reference to a code defined by a terminology system."/>
         <comment value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."/>
         <requirements value="Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Coding"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <binding>
            <strength value="required"/>
            <description value="A code from the SNOMED Clinical Terminology UK"/>
            <valueSetReference>
               <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-ConditionCode-1"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CV"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="C*E.1-8, C*E.10-22"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="union(., ./translation)"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/>
         </mapping>
      </element>
      <element id="Condition.code.coding:snomedCT.id">
         <path value="Condition.code.coding.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.code.coding:snomedCT.extension">
         <path value="Condition.code.coding.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.code.coding:snomedCT.extension:snomedCTDescriptionID">
         <path value="Condition.code.coding.extension"/>
         <sliceName value="snomedCTDescriptionID"/>
         <short value="The SNOMED CT Description ID for the display"/>
         <definition value="The SNOMED CT Description ID for the display."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
            <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.code.coding:snomedCT.extension:snomedCTDescriptionID.id">
         <path value="Condition.code.coding.extension.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.code.coding:snomedCT.extension:snomedCTDescriptionID.extension">
         <path value="Condition.code.coding.extension.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.code.coding:snomedCT.extension:snomedCTDescriptionID.url">
         <path value="Condition.code.coding.extension.url"/>
         <representation value="xmlAttr"/>
         <short value="identifies the meaning of the extension"/>
         <definition value="Source of the definition for the extension code - a logical name or a URL."/>
         <comment value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Extension.url"/>
            <min value="1"/>
            <max value="1"/>
         </base>
         <type>
            <code value="uri"/>
         </type>
         <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"/>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.code.coding:snomedCT.extension:snomedCTDescriptionID.value[x]">
         <path value="Condition.code.coding.extension.value[x]"/>
         <short value="Value of extension"/>
         <definition value="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)."/>
         <comment value="A stream of bytes, base64 encoded"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Extension.value[x]"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="base64Binary"/>
         </type>
         <type>
            <code value="boolean"/>
         </type>
         <type>
            <code value="code"/>
         </type>
         <type>
            <code value="date"/>
         </type>
         <type>
            <code value="dateTime"/>
         </type>
         <type>
            <code value="decimal"/>
         </type>
         <type>
            <code value="id"/>
         </type>
         <type>
            <code value="instant"/>
         </type>
         <type>
            <code value="integer"/>
         </type>
         <type>
            <code value="markdown"/>
         </type>
         <type>
            <code value="oid"/>
         </type>
         <type>
            <code value="positiveInt"/>
         </type>
         <type>
            <code value="string"/>
         </type>
         <type>
            <code value="time"/>
         </type>
         <type>
            <code value="unsignedInt"/>
         </type>
         <type>
            <code value="uri"/>
         </type>
         <type>
            <code value="Address"/>
         </type>
         <type>
            <code value="Age"/>
         </type>
         <type>
            <code value="Annotation"/>
         </type>
         <type>
            <code value="Attachment"/>
         </type>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <type>
            <code value="Coding"/>
         </type>
         <type>
            <code value="ContactPoint"/>
         </type>
         <type>
            <code value="Count"/>
         </type>
         <type>
            <code value="Distance"/>
         </type>
         <type>
            <code value="Duration"/>
         </type>
         <type>
            <code value="HumanName"/>
         </type>
         <type>
            <code value="Identifier"/>
         </type>
         <type>
            <code value="Money"/>
         </type>
         <type>
            <code value="Period"/>
         </type>
         <type>
            <code value="Quantity"/>
         </type>
         <type>
            <code value="Range"/>
         </type>
         <type>
            <code value="Ratio"/>
         </type>
         <type>
            <code value="Reference"/>
         </type>
         <type>
            <code value="SampledData"/>
         </type>
         <type>
            <code value="Signature"/>
         </type>
         <type>
            <code value="Timing"/>
         </type>
         <type>
            <code value="Meta"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.code.coding:snomedCT.system">
         <path value="Condition.code.coding.system"/>
         <short value="Identity of the terminology system"/>
         <definition value="The identification of the code system that defines the meaning of the symbol in the code."/>
         <comment value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should de-reference to some definition that establish the system clearly and unambiguously."/>
         <requirements value="Need to be unambiguous about the source of the definition of the symbol."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Coding.system"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="uri"/>
         </type>
         <fixedUri value="http://snomed.info/sct"/>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="C*E.3"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="./codeSystem"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/>
         </mapping>
      </element>
      <element id="Condition.code.coding:snomedCT.version">
         <path value="Condition.code.coding.version"/>
         <short value="Version of the system - if relevant"/>
         <definition value="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged."/>
         <comment value="Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date."/>
         <min value="0"/>
         <max value="0"/>
         <base>
            <path value="Coding.version"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="C*E.7"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="./codeSystemVersion"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/>
         </mapping>
      </element>
      <element id="Condition.code.coding:snomedCT.code">
         <path value="Condition.code.coding.code"/>
         <short value="Symbol in syntax defined by the system"/>
         <definition value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <requirements value="Need to refer to a particular code in the system."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Coding.code"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="code"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="C*E.1"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="./code"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/>
         </mapping>
      </element>
      <element id="Condition.code.coding:snomedCT.display">
         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
         </extension>
         <path value="Condition.code.coding.display"/>
         <short value="Representation defined by the system"/>
         <definition value="A representation of the meaning of the code in the system, following the rules of the system."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know  the system."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Coding.display"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="C*E.2 - but note this is not well followed"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CV.displayName"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/>
         </mapping>
      </element>
      <element id="Condition.code.coding:snomedCT.userSelected">
         <path value="Condition.code.coding.userSelected"/>
         <short value="If this coding was chosen directly by the user"/>
         <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/>
         <comment value="Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely."/>
         <requirements value="This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Coding.userSelected"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="boolean"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="Sometimes implied by being first"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CD.codingRationale"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [     fhir:source "true";     fhir:target dt:CDCoding.codingRationale\#O   ]"/>
         </mapping>
      </element>
      <element id="Condition.code.text">
         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
         </extension>
         <path value="Condition.code.text"/>
         <short value="Plain text representation of the concept"/>
         <definition value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user."/>
         <comment value="Very often the text is the same as a displayName of one of the codings."/>
         <requirements value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="CodeableConcept.text"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="C*E.9. But note many systems use C*E.2 for this"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="./originalText[mediaType/code="text/plain"]/data"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/>
         </mapping>
      </element>
      <element id="Condition.bodySite">
         <path value="Condition.bodySite"/>
         <short value="Anatomical location, if relevant"/>
         <definition value="The anatomical location where this condition manifests itself."/>
         <comment value="Only used if not implicit in code found in Condition.code. If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [body-site-instance](extension-body-site-instance.html).  May be a summary code, or a reference to a very precise definition of the location, or both."/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Condition.bodySite"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="BodySite"/>
            </extension>
            <strength value="example"/>
            <description value="Codes describing anatomical locations. May include laterality."/>
            <valueSetReference>
               <reference value="http://hl7.org/fhir/ValueSet/body-site"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CD"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
         </mapping>
         <mapping>
            <identity value="sct-concept"/>
            <map value="< 442083009  |Anatomical or acquired body structure|"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".targetBodySiteCode"/>
         </mapping>
         <mapping>
            <identity value="sct-attr"/>
            <map value="363698007"/>
         </mapping>
      </element>
      <element id="Condition.subject">
         <path value="Condition.subject"/>
         <short value="Who has the condition?"/>
         <definition value="Indicates the patient or group who the condition record is associated with."/>
         <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."/>
         <requirements value="Group is typically used for veterinary or public health use cases."/>
         <alias value="patient"/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Condition.subject"/>
            <min value="1"/>
            <max value="1"/>
         </base>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human value="SHALL have a contained resource if a local reference is provided"/>
            <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/>
            <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="PID-3"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=SBJ].role[classCode=PAT]"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="who.focus"/>
         </mapping>
      </element>
      <element id="Condition.context">
         <path value="Condition.context"/>
         <short value="Encounter or episode when condition first asserted"/>
         <definition value="Encounter during which the condition was first asserted."/>
         <comment value="This record indicates the encounter this particular record is associated with.  In the case of a "new" diagnosis reflecting ongoing/revised information about the condition, this might be distinct from the first encounter in which the underlying condition was first "known"."/>
         <alias value="encounter"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Condition.context"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Encounter-1"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human value="SHALL have a contained resource if a local reference is provided"/>
            <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/>
            <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
         </constraint>
         <mustSupport value="true"/>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="PV1-19 (+PV1-54)"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="context"/>
         </mapping>
      </element>
      <element id="Condition.onset[x]">
         <path value="Condition.onset[x]"/>
         <short value="Estimated or actual date,  date-time, or age"/>
         <definition value="Estimated or actual date or date-time  the condition began, in the opinion of the clinician."/>
         <comment value="Age is generally used when the patient reports an age at which the Condition began to occur."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Condition.onset[x]"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="dateTime"/>
         </type>
         <type>
            <code value="Age"/>
         </type>
         <type>
            <code value="Period"/>
         </type>
         <type>
            <code value="Range"/>
         </type>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mustSupport value="true"/>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="PRB-16"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".effectiveTime.low or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="age at onset"].value"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="when.init"/>
         </mapping>
      </element>
      <element id="Condition.abatement[x]">
         <path value="Condition.abatement[x]"/>
         <short value="If/when in resolution/remission"/>
         <definition value="The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate."/>
         <comment value="There is no explicit distinction between resolution and remission because in many cases the distinction is not clear. Age is generally used when the patient reports an age at which the Condition abated.  If there is no abatement element, it is unknown whether the condition has resolved or entered remission; applications and users should generally assume that the condition is still valid.  When abatementString exists, it implies the condition is abated."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Condition.abatement[x]"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="dateTime"/>
         </type>
         <type>
            <code value="Age"/>
         </type>
         <type>
            <code value="boolean"/>
         </type>
         <type>
            <code value="Period"/>
         </type>
         <type>
            <code value="Range"/>
         </type>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <condition value="con-4"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mustSupport value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".effectiveTime.high or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="age at remission"].value or .inboundRelationship[typeCode=SUBJ]source[classCode=CONC, moodCode=EVN].status=completed"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="when.done"/>
         </mapping>
      </element>
      <element id="Condition.assertedDate">
         <path value="Condition.assertedDate"/>
         <short value="Date record was believed accurate"/>
         <definition value="The date on which the existance of the Condition was first asserted or acknowledged."/>
         <comment value="The assertedDate represents the date when this particular Condition record was created in the EHR, not the date of the most recent update in terms of when severity, abatement, etc. were specified.  The date of the last record modification can be retrieved from the resource metadata."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Condition.assertedDate"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="dateTime"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="REL-11"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=AUT].time"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="when.recorded"/>
         </mapping>
      </element>
      <element id="Condition.asserter">
         <path value="Condition.asserter"/>
         <short value="Person who asserts this condition"/>
         <definition value="Individual who is making the condition statement."/>
         <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Condition.asserter"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human value="SHALL have a contained resource if a local reference is provided"/>
            <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/>
            <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="REL-7.1 identifier + REL-7.12 type code"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=AUT].role"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="who.author"/>
         </mapping>
      </element>
      <element id="Condition.stage">
         <path value="Condition.stage"/>
         <short value="Stage/grade, usually assessed formally"/>
         <definition value="Clinical stage or grade of a condition. May include formal severity assessments."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Condition.stage"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="BackboneElement"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="con-1"/>
            <severity value="error"/>
            <human value="Stage SHALL have summary or assessment"/>
            <expression value="summary.exists() or assessment.exists()"/>
            <xpath value="exists(f:summary) or exists(f:assessment)"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="stage/grade"]"/>
         </mapping>
      </element>
      <element id="Condition.stage.id">
         <path value="Condition.stage.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.stage.extension">
         <path value="Condition.stage.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.stage.modifierExtension">
         <path value="Condition.stage.modifierExtension"/>
         <short value="Extensions that cannot be ignored"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <alias value="modifiers"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <isModifier value="true"/>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.stage.summary">
         <path value="Condition.stage.summary"/>
         <short value="Simple summary (disease specific)"/>
         <definition value="A simple summary of the stage such as "Stage 3". The determination of the stage is disease-specific."/>
         <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Condition.stage.summary"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <condition value="ele-1"/>
         <condition value="con-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="ConditionStage"/>
            </extension>
            <strength value="example"/>
            <description value="Codes describing condition stages (e.g. Cancer stages)."/>
            <valueSetReference>
               <reference value="http://hl7.org/fhir/ValueSet/condition-stage"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CD"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
         </mapping>
         <mapping>
            <identity value="sct-concept"/>
            <map value="< 254291000 |Staging and scales|"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="PRB-14"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".value"/>
         </mapping>
      </element>
      <element id="Condition.stage.assessment">
         <path value="Condition.stage.assessment"/>
         <short value="Formal record of assessment"/>
         <definition value="Reference to a formal record of the evidence on which the staging assessment is based."/>
         <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Condition.stage.assessment"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/ClinicalImpression"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
         </type>
         <condition value="ele-1"/>
         <condition value="con-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human value="SHALL have a contained resource if a local reference is provided"/>
            <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/>
            <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".self"/>
         </mapping>
      </element>
      <element id="Condition.evidence">
         <path value="Condition.evidence"/>
         <short value="Supporting evidence"/>
         <definition value="Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed."/>
         <comment value="The evidence may be a simple list of coded symptoms/manifestations, or references to observations or formal assessments, or both."/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Condition.evidence"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="BackboneElement"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="con-2"/>
            <severity value="error"/>
            <human value="evidence SHALL have code or details"/>
            <expression value="code.exists() or detail.exists()"/>
            <xpath value="exists(f:code) or exists(f:detail)"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".outboundRelationship[typeCode=SPRT].target[classCode=OBS, moodCode=EVN]"/>
         </mapping>
      </element>
      <element id="Condition.evidence.id">
         <path value="Condition.evidence.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.evidence.extension">
         <path value="Condition.evidence.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.evidence.modifierExtension">
         <path value="Condition.evidence.modifierExtension"/>
         <short value="Extensions that cannot be ignored"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <alias value="modifiers"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <isModifier value="true"/>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.evidence.code">
         <path value="Condition.evidence.code"/>
         <short value="Manifestation/symptom"/>
         <definition value="A manifestation or symptom that led to the recording of this condition."/>
         <comment value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Condition.evidence.code"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <condition value="ele-1"/>
         <condition value="con-2"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="ManifestationOrSymptom"/>
            </extension>
            <strength value="example"/>
            <description value="Codes that describe the manifestation or symptoms of a condition."/>
            <valueSetReference>
               <reference value="http://hl7.org/fhir/ValueSet/manifestation-or-symptom"/>
            </valueSetReference>
         </binding>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="CD"/>
         </mapping>
         <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
         </mapping>
         <mapping>
            <identity value="sct-concept"/>
            <map value="< 404684003 |Clinical finding|"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="[code="diagnosis"].value"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="why"/>
         </mapping>
      </element>
      <element id="Condition.evidence.detail">
         <path value="Condition.evidence.detail"/>
         <short value="Supporting information found elsewhere"/>
         <definition value="Links to other relevant information, including pathology reports."/>
         <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Condition.evidence.detail"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/>
         </type>
         <condition value="ele-1"/>
         <condition value="con-2"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human value="SHALL have a contained resource if a local reference is provided"/>
            <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/>
            <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".self"/>
         </mapping>
         <mapping>
            <identity value="w5"/>
            <map value="why"/>
         </mapping>
      </element>
      <element id="Condition.note">
         <path value="Condition.note"/>
         <short value="Additional information about the Condition"/>
         <definition value="Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis."/>
         <comment value="For systems that do not have structured annotations, they can simply communicate a single annotation with no author or time.  This element may need to be included in narrative because of the potential for modifying information.  *Annotations SHOULD NOT* be used to communicate "modifying" information that could be computable. (This is a SHOULD because enforcing user behavior is nearly impossible)."/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Condition.note"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Annotation"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mustSupport value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="N/A"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="Act"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="NTE child of PRB"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="annotation"].value"/>
         </mapping>
      </element>
      <element id="Condition.note.id">
         <path value="Condition.note.id"/>
         <representation value="xmlAttr"/>
         <short value="xml:id (or equivalent in JSON)"/>
         <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
      </element>
      <element id="Condition.note.extension">
         <path value="Condition.note.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
         </slicing>
         <short value="Additional Content defined by implementations"/>
         <definition 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."/>
         <comment 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."/>
         <alias value="extensions"/>
         <alias value="user content"/>
         <min value="0"/>
         <max value="*"/>
         <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
         </base>
         <type>
            <code value="Extension"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
         </mapping>
      </element>
      <element id="Condition.note.author[x]">
         <path value="Condition.note.author[x]"/>
         <short value="Individual responsible for the annotation"/>
         <definition value="The individual responsible for making the annotation."/>
         <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Annotation.author[x]"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/>
         </type>
         <type>
            <code value="string"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human value="SHALL have a contained resource if a local reference is provided"/>
            <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/>
            <xpath value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="N/A"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="Act.participant[typeCode=AUT].role"/>
         </mapping>
      </element>
      <element id="Condition.note.time">
         <path value="Condition.note.time"/>
         <short value="When the annotation was made"/>
         <definition value="Indicates when this particular annotation was made."/>
         <min value="0"/>
         <max value="1"/>
         <base>
            <path value="Annotation.time"/>
            <min value="0"/>
            <max value="1"/>
         </base>
         <type>
            <code value="dateTime"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <isSummary value="true"/>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="N/A"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="Act.effectiveTime"/>
         </mapping>
      </element>
      <element id="Condition.note.text">
         <path value="Condition.note.text"/>
         <short value="The annotation  - text content"/>
         <definition value="The text of the annotation."/>
         <comment value="Note that FHIR strings may not exceed 1MB in size"/>
         <min value="1"/>
         <max value="1"/>
         <base>
            <path value="Annotation.text"/>
            <min value="1"/>
            <max value="1"/>
         </base>
         <type>
            <code value="string"/>
         </type>
         <condition value="ele-1"/>
         <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() | (children().count() > id.count())"/>
            <xpath value="@value|f:*|h:div"/>
         </constraint>
         <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
         </mapping>
         <mapping>
            <identity value="v2"/>
            <map value="N/A"/>
         </mapping>
         <mapping>
            <identity value="rim"/>
            <map value="Act.text"/>
         </mapping>
      </element>
   </snapshot>
   <differential>
      <element id="Condition.meta.profile">
         <path value="Condition.meta.profile"/>
         <min value="1"/>
      </element>
      <element id="Condition.extension">
         <path value="Condition.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <rules value="open"/>
         </slicing>
      </element>
      <element id="Condition.extension:actualProblem">
         <path value="Condition.extension"/>
         <sliceName value="actualProblem"/>
         <max value="1"/>
         <type>
            <code value="Extension"/>
            <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ActualProblem-1"/>
         </type>
         <mustSupport value="true"/>
      </element>
      <element id="Condition.extension:actualProblem.url">
         <path value="Condition.extension.url"/>
         <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ActualProblem-1"/>
      </element>
      <element id="Condition.extension:actualProblem.value[x]">
         <path value="Condition.extension.value[x]"/>
         <type>
            <code value="base64Binary"/>
         </type>
         <type>
            <code value="boolean"/>
         </type>
         <type>
            <code value="code"/>
         </type>
         <type>
            <code value="date"/>
         </type>
         <type>
            <code value="dateTime"/>
         </type>
         <type>
            <code value="decimal"/>
         </type>
         <type>
            <code value="id"/>
         </type>
         <type>
            <code value="instant"/>
         </type>
         <type>
            <code value="integer"/>
         </type>
         <type>
            <code value="markdown"/>
         </type>
         <type>
            <code value="oid"/>
         </type>
         <type>
            <code value="positiveInt"/>
         </type>
         <type>
            <code value="string"/>
         </type>
         <type>
            <code value="time"/>
         </type>
         <type>
            <code value="unsignedInt"/>
         </type>
         <type>
            <code value="uri"/>
         </type>
         <type>
            <code value="Address"/>
         </type>
         <type>
            <code value="Age"/>
         </type>
         <type>
            <code value="Annotation"/>
         </type>
         <type>
            <code value="Attachment"/>
         </type>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <type>
            <code value="Coding"/>
         </type>
         <type>
            <code value="ContactPoint"/>
         </type>
         <type>
            <code value="Count"/>
         </type>
         <type>
            <code value="Distance"/>
         </type>
         <type>
            <code value="Duration"/>
         </type>
         <type>
            <code value="HumanName"/>
         </type>
         <type>
            <code value="Identifier"/>
         </type>
         <type>
            <code value="Money"/>
         </type>
         <type>
            <code value="Period"/>
         </type>
         <type>
            <code value="Quantity"/>
         </type>
         <type>
            <code value="Range"/>
         </type>
         <type>
            <code value="Ratio"/>
         </type>
         <type>
            <code value="Reference"/>
         </type>
         <type>
            <code value="SampledData"/>
         </type>
         <type>
            <code value="Signature"/>
         </type>
         <type>
            <code value="Timing"/>
         </type>
         <type>
            <code value="Meta"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Immunization-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Specimen-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-AllergyIntolerance-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProcedureRequest-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1"/>
         </type>
      </element>
      <element id="Condition.extension:relatedProblemHeader">
         <path value="Condition.extension"/>
         <sliceName value="relatedProblemHeader"/>
         <type>
            <code value="Extension"/>
            <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-RelatedProblemHeader-1"/>
         </type>
         <mustSupport value="true"/>
      </element>
      <element id="Condition.extension:relatedProblemHeader.url">
         <path value="Condition.extension.url"/>
         <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-RelatedProblemHeader-1"/>
      </element>
      <element id="Condition.extension:relatedProblemHeader.value[x]">
         <path value="Condition.extension.value[x]"/>
         <type>
            <code value="base64Binary"/>
         </type>
         <type>
            <code value="boolean"/>
         </type>
         <type>
            <code value="code"/>
         </type>
         <type>
            <code value="date"/>
         </type>
         <type>
            <code value="dateTime"/>
         </type>
         <type>
            <code value="decimal"/>
         </type>
         <type>
            <code value="id"/>
         </type>
         <type>
            <code value="instant"/>
         </type>
         <type>
            <code value="integer"/>
         </type>
         <type>
            <code value="markdown"/>
         </type>
         <type>
            <code value="oid"/>
         </type>
         <type>
            <code value="positiveInt"/>
         </type>
         <type>
            <code value="string"/>
         </type>
         <type>
            <code value="time"/>
         </type>
         <type>
            <code value="unsignedInt"/>
         </type>
         <type>
            <code value="uri"/>
         </type>
         <type>
            <code value="Address"/>
         </type>
         <type>
            <code value="Age"/>
         </type>
         <type>
            <code value="Annotation"/>
         </type>
         <type>
            <code value="Attachment"/>
         </type>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <type>
            <code value="Coding"/>
         </type>
         <type>
            <code value="ContactPoint"/>
         </type>
         <type>
            <code value="Count"/>
         </type>
         <type>
            <code value="Distance"/>
         </type>
         <type>
            <code value="Duration"/>
         </type>
         <type>
            <code value="HumanName"/>
         </type>
         <type>
            <code value="Identifier"/>
         </type>
         <type>
            <code value="Money"/>
         </type>
         <type>
            <code value="Period"/>
         </type>
         <type>
            <code value="Quantity"/>
         </type>
         <type>
            <code value="Range"/>
         </type>
         <type>
            <code value="Ratio"/>
         </type>
         <type>
            <code value="Reference"/>
         </type>
         <type>
            <code value="SampledData"/>
         </type>
         <type>
            <code value="Signature"/>
         </type>
         <type>
            <code value="Timing"/>
         </type>
         <type>
            <code value="Meta"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Immunization-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Specimen-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-AllergyIntolerance-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProcedureRequest-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1"/>
         </type>
      </element>
      <element id="Condition.extension:problemSignificance">
         <path value="Condition.extension"/>
         <sliceName value="problemSignificance"/>
         <min value="1"/>
         <max value="1"/>
         <type>
            <code value="Extension"/>
            <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ProblemSignificance-1"/>
         </type>
         <mustSupport value="true"/>
      </element>
      <element id="Condition.extension:problemSignificance.url">
         <path value="Condition.extension.url"/>
         <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ProblemSignificance-1"/>
      </element>
      <element id="Condition.extension:relatedClinicalContent">
         <path value="Condition.extension"/>
         <sliceName value="relatedClinicalContent"/>
         <type>
            <code value="Extension"/>
            <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-RelatedClinicalContent-1"/>
         </type>
         <mustSupport value="true"/>
      </element>
      <element id="Condition.extension:relatedClinicalContent.url">
         <path value="Condition.extension.url"/>
         <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-RelatedClinicalContent-1"/>
      </element>
      <element id="Condition.extension:relatedClinicalContent.value[x]">
         <path value="Condition.extension.value[x]"/>
         <type>
            <code value="base64Binary"/>
         </type>
         <type>
            <code value="boolean"/>
         </type>
         <type>
            <code value="code"/>
         </type>
         <type>
            <code value="date"/>
         </type>
         <type>
            <code value="dateTime"/>
         </type>
         <type>
            <code value="decimal"/>
         </type>
         <type>
            <code value="id"/>
         </type>
         <type>
            <code value="instant"/>
         </type>
         <type>
            <code value="integer"/>
         </type>
         <type>
            <code value="markdown"/>
         </type>
         <type>
            <code value="oid"/>
         </type>
         <type>
            <code value="positiveInt"/>
         </type>
         <type>
            <code value="string"/>
         </type>
         <type>
            <code value="time"/>
         </type>
         <type>
            <code value="unsignedInt"/>
         </type>
         <type>
            <code value="uri"/>
         </type>
         <type>
            <code value="Address"/>
         </type>
         <type>
            <code value="Age"/>
         </type>
         <type>
            <code value="Annotation"/>
         </type>
         <type>
            <code value="Attachment"/>
         </type>
         <type>
            <code value="CodeableConcept"/>
         </type>
         <type>
            <code value="Coding"/>
         </type>
         <type>
            <code value="ContactPoint"/>
         </type>
         <type>
            <code value="Count"/>
         </type>
         <type>
            <code value="Distance"/>
         </type>
         <type>
            <code value="Duration"/>
         </type>
         <type>
            <code value="HumanName"/>
         </type>
         <type>
            <code value="Identifier"/>
         </type>
         <type>
            <code value="Money"/>
         </type>
         <type>
            <code value="Period"/>
         </type>
         <type>
            <code value="Quantity"/>
         </type>
         <type>
            <code value="Range"/>
         </type>
         <type>
            <code value="Ratio"/>
         </type>
         <type>
            <code value="Reference"/>
         </type>
         <type>
            <code value="SampledData"/>
         </type>
         <type>
            <code value="Signature"/>
         </type>
         <type>
            <code value="Timing"/>
         </type>
         <type>
            <code value="Meta"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Immunization-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Observation-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Specimen-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-AllergyIntolerance-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProcedureRequest-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-List-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1"/>
         </type>
      </element>
      <element id="Condition.identifier">
         <path value="Condition.identifier"/>
         <min value="1"/>
      </element>
      <element id="Condition.identifier.system">
         <path value="Condition.identifier.system"/>
         <min value="1"/>
      </element>
      <element id="Condition.identifier.value">
         <path value="Condition.identifier.value"/>
         <min value="1"/>
      </element>
      <element id="Condition.identifier.assigner">
         <path value="Condition.identifier.assigner"/>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"/>
         </type>
      </element>
      <element id="Condition.clinicalStatus">
         <path value="Condition.clinicalStatus"/>
         <short value="active | inactive"/>
         <min value="1"/>
      </element>
      <element id="Condition.category">
         <path value="Condition.category"/>
         <short value="problem-list-item | encounter-diagnosis | presenting-complaint"/>
         <min value="1"/>
         <max value="1"/>
         <binding>
            <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
               <valueString value="ConditionCategory"/>
            </extension>
            <strength value="extensible"/>
            <valueSetReference>
               <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-ConditionCategory-1"/>
            </valueSetReference>
         </binding>
      </element>
      <element id="Condition.category.coding.system">
         <path value="Condition.category.coding.system"/>
         <min value="1"/>
         <fixedUri value="http://hl7.org/fhir/condition-category"/>
      </element>
      <element id="Condition.category.coding.code">
         <path value="Condition.category.coding.code"/>
         <min value="1"/>
         <fixedCode value="problem-list-item"/>
      </element>
      <element id="Condition.category.coding.display">
         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
         </extension>
         <path value="Condition.category.coding.display"/>
         <min value="1"/>
         <fixedString value="Problem List Item"/>
      </element>
      <element id="Condition.code">
         <path value="Condition.code"/>
         <min value="1"/>
      </element>
      <element id="Condition.code.coding">
         <path value="Condition.code.coding"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="system"/>
            </discriminator>
            <ordered value="false"/>
            <rules value="open"/>
         </slicing>
      </element>
      <element id="Condition.code.coding:snomedCT">
         <path value="Condition.code.coding"/>
         <sliceName value="snomedCT"/>
         <max value="1"/>
         <binding>
            <strength value="required"/>
            <description value="A code from the SNOMED Clinical Terminology UK"/>
            <valueSetReference>
               <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-ConditionCode-1"/>
            </valueSetReference>
         </binding>
      </element>
      <element id="Condition.code.coding:snomedCT.extension">
         <path value="Condition.code.coding.extension"/>
         <slicing>
            <discriminator>
               <type value="value"/>
               <path value="url"/>
            </discriminator>
            <rules value="open"/>
         </slicing>
      </element>
      <element id="Condition.code.coding:snomedCT.extension:snomedCTDescriptionID">
         <path value="Condition.code.coding.extension"/>
         <sliceName value="snomedCTDescriptionID"/>
         <short value="The SNOMED CT Description ID for the display"/>
         <definition value="The SNOMED CT Description ID for the display."/>
         <max value="1"/>
         <type>
            <code value="Extension"/>
            <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"/>
         </type>
      </element>
      <element id="Condition.code.coding:snomedCT.extension:snomedCTDescriptionID.url">
         <path value="Condition.code.coding.extension.url"/>
         <fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"/>
      </element>
      <element id="Condition.code.coding:snomedCT.system">
         <path value="Condition.code.coding.system"/>
         <min value="1"/>
         <fixedUri value="http://snomed.info/sct"/>
      </element>
      <element id="Condition.code.coding:snomedCT.version">
         <path value="Condition.code.coding.version"/>
         <max value="0"/>
      </element>
      <element id="Condition.code.coding:snomedCT.code">
         <path value="Condition.code.coding.code"/>
         <min value="1"/>
      </element>
      <element id="Condition.code.coding:snomedCT.display">
         <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
         </extension>
         <path value="Condition.code.coding.display"/>
         <min value="1"/>
      </element>
      <element id="Condition.subject">
         <path value="Condition.subject"/>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"/>
         </type>
      </element>
      <element id="Condition.context">
         <path value="Condition.context"/>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Encounter-1"/>
         </type>
         <mustSupport value="true"/>
      </element>
      <element id="Condition.onset[x]">
         <path value="Condition.onset[x]"/>
         <mustSupport value="true"/>
      </element>
      <element id="Condition.abatement[x]">
         <path value="Condition.abatement[x]"/>
         <mustSupport value="true"/>
      </element>
      <element id="Condition.assertedDate">
         <path value="Condition.assertedDate"/>
         <min value="1"/>
      </element>
      <element id="Condition.asserter">
         <path value="Condition.asserter"/>
         <min value="1"/>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"/>
         </type>
      </element>
      <element id="Condition.note">
         <path value="Condition.note"/>
         <mustSupport value="true"/>
      </element>
      <element id="Condition.note.author[x]">
         <path value="Condition.note.author[x]"/>
         <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/>
         </type>
         <type>
            <code value="string"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"/>
         </type>
         <type>
            <code value="Reference"/>
            <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"/>
         </type>
      </element>
   </differential>
</StructureDefinition>