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.
<StructureDefinition xmlns="http://hl7.org/fhir">
<id value="CareConnect-GPC-Specimen-1"></id>
<text>
<status value="generated"></status>
</text>
<url value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Specimen-1"></url>
<version value="1.3.0"></version>
<name value="CareConnect-GPC-Specimen-1"></name>
<status value="draft"></status>
<date value="2020-02-17"></date>
<publisher value="HL7 UK"></publisher>
<contact>
<name value="INTEROPen"></name>
<telecom>
<system value="email"></system>
<value value="admin@interopen.org"></value>
<use value="work"></use>
</telecom>
</contact>
<description value="Specimen"></description>
<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"></copyright>
<fhirVersion value="3.0.1"></fhirVersion>
<kind value="resource"></kind>
<abstract value="false"></abstract>
<type value="Specimen"></type>
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Specimen"></baseDefinition>
<derivation value="constraint"></derivation>
<snapshot>
<element id="Specimen">
<path value="Specimen"></path>
<short value="Sample for analysis"></short>
<definition value="A sample to be used for analysis."></definition>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Resource"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<constraint>
<key value="dom-2"></key>
<severity value="error"></severity>
<human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"></human>
<expression value="contained.contained.empty()"></expression>
<xpath value="not(parent::f:contained and f:contained)"></xpath>
</constraint>
<constraint>
<key value="dom-1"></key>
<severity value="error"></severity>
<human value="If the resource is contained in another resource, it SHALL NOT contain any narrative"></human>
<expression value="contained.text.empty()"></expression>
<xpath value="not(parent::f:contained and f:text)"></xpath>
</constraint>
<constraint>
<key value="dom-4"></key>
<severity value="error"></severity>
<human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"></human>
<expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"></expression>
<xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"></xpath>
</constraint>
<constraint>
<key value="dom-3"></key>
<severity value="error"></severity>
<human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource"></human>
<expression value="contained.where(('#'+id in %resource.descendants().reference).not()).empty()"></expression>
<xpath value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="Entity. Role, or Act"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Role[classCode=SPEC]"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="clinical.diagnostics"></map>
</mapping>
</element>
<element id="Specimen.id">
<path value="Specimen.id"></path>
<short value="Logical id of this artifact"></short>
<definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Resource.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="id"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.meta">
<path value="Specimen.meta"></path>
<short value="Metadata about the resource"></short>
<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."></definition>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Resource.meta"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Meta"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.meta.id">
<path value="Specimen.meta.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.meta.extension">
<path value="Specimen.meta.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.meta.versionId">
<path value="Specimen.meta.versionId"></path>
<short value="Version specific identifier"></short>
<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."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Meta.versionId"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="id"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.meta.lastUpdated">
<path value="Specimen.meta.lastUpdated"></path>
<short value="When the resource version last changed"></short>
<definition value="When the resource last changed - e.g. when the version changed."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Meta.lastUpdated"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="instant"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.meta.profile">
<path value="Specimen.meta.profile"></path>
<short value="Profiles this resource claims to conform to"></short>
<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]()."></definition>
<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."></comment>
<min value="1"></min>
<max value="*"></max>
<base>
<path value="Meta.profile"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="uri"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.meta.security">
<path value="Specimen.meta.security"></path>
<short value="Security Labels applied to this resource"></short>
<definition value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."></definition>
<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."></comment>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Meta.security"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Coding"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="SecurityLabels"></valueString>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
<valueBoolean value="true"></valueBoolean>
</extension>
<strength value="extensible"></strength>
<description value="Security Labels from the Healthcare Privacy and Security Classification System."></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/security-labels"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CV"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding rdfs:subClassOf dt:CDCoding"></map>
</mapping>
</element>
<element id="Specimen.meta.tag">
<path value="Specimen.meta.tag"></path>
<short value="Tags applied to this resource"></short>
<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."></definition>
<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."></comment>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Meta.tag"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Coding"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="Tags"></valueString>
</extension>
<strength value="example"></strength>
<description value="Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones""></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/common-tags"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CV"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding rdfs:subClassOf dt:CDCoding"></map>
</mapping>
</element>
<element id="Specimen.implicitRules">
<path value="Specimen.implicitRules"></path>
<short value="A set of rules under which this content was created"></short>
<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."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Resource.implicitRules"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.language">
<path value="Specimen.language"></path>
<short value="Language of the resource content"></short>
<definition value="The base language in which the resource is written."></definition>
<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)."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Resource.language"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="code"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
<valueReference>
<reference value="http://hl7.org/fhir/ValueSet/all-languages"></reference>
</valueReference>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="Language"></valueString>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
<valueBoolean value="true"></valueBoolean>
</extension>
<strength value="extensible"></strength>
<description value="A human language."></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/languages"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.text">
<path value="Specimen.text"></path>
<short value="Text summary of the resource, for human interpretation"></short>
<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."></definition>
<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."></comment>
<alias value="narrative"></alias>
<alias value="html"></alias>
<alias value="xhtml"></alias>
<alias value="display"></alias>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="DomainResource.text"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Narrative"></code>
</type>
<condition value="ele-1"></condition>
<condition value="dom-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Act.text?"></map>
</mapping>
</element>
<element id="Specimen.contained">
<path value="Specimen.contained"></path>
<short value="Contained, inline Resources"></short>
<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."></definition>
<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."></comment>
<alias value="inline resources"></alias>
<alias value="anonymous resources"></alias>
<alias value="contained resources"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="DomainResource.contained"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Resource"></code>
</type>
<mapping>
<identity value="rim"></identity>
<map value="Entity. Role, or Act"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.extension">
<path value="Specimen.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="DomainResource.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.modifierExtension">
<path value="Specimen.modifierExtension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Extensions that cannot be ignored"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="DomainResource.modifierExtension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.identifier">
<path value="Specimen.identifier"></path>
<short value="External Identifier"></short>
<definition value="Id for specimen."></definition>
<min value="1"></min>
<max value="*"></max>
<base>
<path value="Specimen.identifier"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Identifier"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<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]"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="Identifier"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SPM-2"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".id"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="id"></map>
</mapping>
</element>
<element id="Specimen.identifier.id">
<path value="Specimen.identifier.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.identifier.extension">
<path value="Specimen.identifier.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.identifier.use">
<path value="Specimen.identifier.use"></path>
<short value="usual | official | temp | secondary (If known)"></short>
<definition value="The purpose of this identifier."></definition>
<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."></comment>
<requirements value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.use"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="code"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierUse"></valueString>
</extension>
<strength value="required"></strength>
<description value="Identifies the purpose for this identifier, if known ."></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/identifier-use"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="N/A"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Role.code or implied by context"></map>
</mapping>
</element>
<element id="Specimen.identifier.type">
<path value="Specimen.identifier.type"></path>
<short value="Description of identifier"></short>
<definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose."></definition>
<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."></comment>
<requirements value="Allows users to make use of identifiers when the identifier system is not known."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.type"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="CodeableConcept"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierType"></valueString>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
<valueBoolean value="true"></valueBoolean>
</extension>
<strength value="extensible"></strength>
<description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose."></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/identifier-type"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.5"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Role.code or implied by context"></map>
</mapping>
</element>
<element id="Specimen.identifier.system">
<path value="Specimen.identifier.system"></path>
<short value="The namespace for the identifier value"></short>
<definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique."></definition>
<comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier"></comment>
<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."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Identifier.system"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<example>
<label value="General"></label>
<valueUri value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"></valueUri>
</example>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.4 / EI-2-4"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II.root or Role.id.root"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./IdentifierType"></map>
</mapping>
</element>
<element id="Specimen.identifier.value">
<path value="Specimen.identifier.value"></path>
<short value="The value that is unique"></short>
<definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system."></definition>
<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)."></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Identifier.value"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<example>
<label value="General"></label>
<valueString value="123456"></valueString>
</example>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.1 / EI.1"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./Value"></map>
</mapping>
</element>
<element id="Specimen.identifier.period">
<path value="Specimen.identifier.period"></path>
<short value="Time period when id is/was valid for use"></short>
<definition value="Time period during which identifier is/was valid for use."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.period"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Period"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="per-1"></key>
<severity value="error"></severity>
<human value="If present, start SHALL have a lower value than end"></human>
<expression value="start.empty() or end.empty() or (start <= end)"></expression>
<xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="DR"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.7 + CX.8"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Role.effectiveTime or implied by context"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./StartDate and ./EndDate"></map>
</mapping>
</element>
<element id="Specimen.identifier.assigner">
<path value="Specimen.identifier.assigner"></path>
<short value="Organization that issued id (may be just text)"></short>
<definition value="Organization that issued/manages the identifier."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.assigner"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<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, '#')])"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.4 / (CX.4,CX.9,CX.10)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./IdentifierIssuingAuthority"></map>
</mapping>
</element>
<element id="Specimen.accessionIdentifier">
<path value="Specimen.accessionIdentifier"></path>
<short value="A business level identifier for the specimen supplied by the performing organisation. eg. lab performing the test."></short>
<definition value="The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures."></definition>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.accessionIdentifier"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Identifier"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mustSupport value="true"></mustSupport>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<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]"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="Identifier"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SPM-30 (v2.7+)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".participation[typeCode=SBJ].act[classCode=ACSN, moodCode=EVN].id"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="id"></map>
</mapping>
</element>
<element id="Specimen.accessionIdentifier.id">
<path value="Specimen.accessionIdentifier.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.accessionIdentifier.extension">
<path value="Specimen.accessionIdentifier.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.accessionIdentifier.use">
<path value="Specimen.accessionIdentifier.use"></path>
<short value="usual | official | temp | secondary (If known)"></short>
<definition value="The purpose of this identifier."></definition>
<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."></comment>
<requirements value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.use"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="code"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierUse"></valueString>
</extension>
<strength value="required"></strength>
<description value="Identifies the purpose for this identifier, if known ."></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/identifier-use"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="N/A"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Role.code or implied by context"></map>
</mapping>
</element>
<element id="Specimen.accessionIdentifier.type">
<path value="Specimen.accessionIdentifier.type"></path>
<short value="Description of identifier"></short>
<definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose."></definition>
<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."></comment>
<requirements value="Allows users to make use of identifiers when the identifier system is not known."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.type"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="CodeableConcept"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierType"></valueString>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
<valueBoolean value="true"></valueBoolean>
</extension>
<strength value="extensible"></strength>
<description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose."></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/identifier-type"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.5"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Role.code or implied by context"></map>
</mapping>
</element>
<element id="Specimen.accessionIdentifier.system">
<path value="Specimen.accessionIdentifier.system"></path>
<short value="The namespace for the identifier value"></short>
<definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique."></definition>
<comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier"></comment>
<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."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.system"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<example>
<label value="General"></label>
<valueUri value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"></valueUri>
</example>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.4 / EI-2-4"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II.root or Role.id.root"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./IdentifierType"></map>
</mapping>
</element>
<element id="Specimen.accessionIdentifier.value">
<path value="Specimen.accessionIdentifier.value"></path>
<short value="The value that is unique"></short>
<definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system."></definition>
<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)."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.value"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<example>
<label value="General"></label>
<valueString value="123456"></valueString>
</example>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.1 / EI.1"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./Value"></map>
</mapping>
</element>
<element id="Specimen.accessionIdentifier.period">
<path value="Specimen.accessionIdentifier.period"></path>
<short value="Time period when id is/was valid for use"></short>
<definition value="Time period during which identifier is/was valid for use."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.period"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Period"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="per-1"></key>
<severity value="error"></severity>
<human value="If present, start SHALL have a lower value than end"></human>
<expression value="start.empty() or end.empty() or (start <= end)"></expression>
<xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="DR"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.7 + CX.8"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Role.effectiveTime or implied by context"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./StartDate and ./EndDate"></map>
</mapping>
</element>
<element id="Specimen.accessionIdentifier.assigner">
<path value="Specimen.accessionIdentifier.assigner"></path>
<short value="Organization that issued id (may be just text)"></short>
<definition value="Organization that issued/manages the identifier."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.assigner"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<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, '#')])"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.4 / (CX.4,CX.9,CX.10)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./IdentifierIssuingAuthority"></map>
</mapping>
</element>
<element id="Specimen.status">
<path value="Specimen.status"></path>
<short value="available | unavailable | unsatisfactory | entered-in-error"></short>
<definition value="The availability of the specimen."></definition>
<comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.status"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="code"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mustSupport value="true"></mustSupport>
<isModifier value="true"></isModifier>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="SpecimenStatus"></valueString>
</extension>
<strength value="required"></strength>
<description value="Codes providing the status/availability of a specimen."></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/specimen-status"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SPM-20"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="status"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="status"></map>
</mapping>
</element>
<element id="Specimen.type">
<path value="Specimen.type"></path>
<short value="Kind of material that forms the specimen"></short>
<definition value="The kind of material that forms the specimen."></definition>
<comment value="The type can change the way that a specimen is handled, and drives what kind of analyses can properly be performed on the specimen. It is frequently used in diagnostic work flow decision making systems."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.type"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="CodeableConcept"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mustSupport value="true"></mustSupport>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="SpecimenType"></valueString>
</extension>
<strength value="example"></strength>
<description value="The type of the specimen."></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/v2-0487"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SPM-4 and possibly SPM-5"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".code"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="what"></map>
</mapping>
</element>
<element id="Specimen.type.id">
<path value="Specimen.type.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.type.extension">
<path value="Specimen.type.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.type.coding">
<path value="Specimen.type.coding"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="system"></path>
</discriminator>
<rules value="open"></rules>
</slicing>
<short value="Code defined by a terminology system"></short>
<definition value="A reference to a code defined by a terminology system."></definition>
<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."></comment>
<requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."></requirements>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="CodeableConcept.coding"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Coding"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CV"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding rdfs:subClassOf dt:CDCoding"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.1-8, C*E.10-22"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="union(., ./translation)"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"></map>
</mapping>
</element>
<element id="Specimen.type.coding:snomedCT">
<path value="Specimen.type.coding"></path>
<sliceName value="snomedCT"></sliceName>
<short value="Code defined by a terminology system"></short>
<definition value="A reference to a code defined by a terminology system."></definition>
<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."></comment>
<requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."></requirements>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="CodeableConcept.coding"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Coding"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<binding>
<strength value="extensible"></strength>
<description value="A code from the SNOMED Clinical Terminology UK"></description>
<valueSetReference>
<reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-SpecimenType-1"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CV"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding rdfs:subClassOf dt:CDCoding"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.1-8, C*E.10-22"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="union(., ./translation)"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"></map>
</mapping>
</element>
<element id="Specimen.type.coding:snomedCT.id">
<path value="Specimen.type.coding.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.type.coding:snomedCT.extension">
<path value="Specimen.type.coding.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.type.coding:snomedCT.extension:snomedCTDescriptionID">
<path value="Specimen.type.coding.extension"></path>
<sliceName value="snomedCTDescriptionID"></sliceName>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
<profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"></profile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.type.coding:snomedCT.extension:snomedCTDescriptionID.id">
<path value="Specimen.type.coding.extension.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.type.coding:snomedCT.extension:snomedCTDescriptionID.extension">
<path value="Specimen.type.coding.extension.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.type.coding:snomedCT.extension:snomedCTDescriptionID.url">
<path value="Specimen.type.coding.extension.url"></path>
<representation value="xmlAttr"></representation>
<short value="identifies the meaning of the extension"></short>
<definition value="Source of the definition for the extension code - a logical name or a URL."></definition>
<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."></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Extension.url"></path>
<min value="1"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"></fixedUri>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.type.coding:snomedCT.extension:snomedCTDescriptionID.value[x]">
<path value="Specimen.type.coding.extension.value[x]"></path>
<short value="Value of extension"></short>
<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)."></definition>
<comment value="A stream of bytes, base64 encoded"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Extension.value[x]"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="base64Binary"></code>
</type>
<type>
<code value="boolean"></code>
</type>
<type>
<code value="code"></code>
</type>
<type>
<code value="date"></code>
</type>
<type>
<code value="dateTime"></code>
</type>
<type>
<code value="decimal"></code>
</type>
<type>
<code value="id"></code>
</type>
<type>
<code value="instant"></code>
</type>
<type>
<code value="integer"></code>
</type>
<type>
<code value="markdown"></code>
</type>
<type>
<code value="oid"></code>
</type>
<type>
<code value="positiveInt"></code>
</type>
<type>
<code value="string"></code>
</type>
<type>
<code value="time"></code>
</type>
<type>
<code value="unsignedInt"></code>
</type>
<type>
<code value="uri"></code>
</type>
<type>
<code value="Address"></code>
</type>
<type>
<code value="Age"></code>
</type>
<type>
<code value="Annotation"></code>
</type>
<type>
<code value="Attachment"></code>
</type>
<type>
<code value="CodeableConcept"></code>
</type>
<type>
<code value="Coding"></code>
</type>
<type>
<code value="ContactPoint"></code>
</type>
<type>
<code value="Count"></code>
</type>
<type>
<code value="Distance"></code>
</type>
<type>
<code value="Duration"></code>
</type>
<type>
<code value="HumanName"></code>
</type>
<type>
<code value="Identifier"></code>
</type>
<type>
<code value="Money"></code>
</type>
<type>
<code value="Period"></code>
</type>
<type>
<code value="Quantity"></code>
</type>
<type>
<code value="Range"></code>
</type>
<type>
<code value="Ratio"></code>
</type>
<type>
<code value="Reference"></code>
</type>
<type>
<code value="SampledData"></code>
</type>
<type>
<code value="Signature"></code>
</type>
<type>
<code value="Timing"></code>
</type>
<type>
<code value="Meta"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.type.coding:snomedCT.system">
<path value="Specimen.type.coding.system"></path>
<short value="Identity of the terminology system"></short>
<definition value="The identification of the code system that defines the meaning of the symbol in the code."></definition>
<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."></comment>
<requirements value="Need to be unambiguous about the source of the definition of the symbol."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Coding.system"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.3"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./codeSystem"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"></map>
</mapping>
</element>
<element id="Specimen.type.coding:snomedCT.version">
<path value="Specimen.type.coding.version"></path>
<short value="Version of the system - if relevant"></short>
<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."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Coding.version"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.7"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./codeSystemVersion"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"></map>
</mapping>
</element>
<element id="Specimen.type.coding:snomedCT.code">
<path value="Specimen.type.coding.code"></path>
<short value="Symbol in syntax defined by the system"></short>
<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)."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<requirements value="Need to refer to a particular code in the system."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Coding.code"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="code"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.1"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./code"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"></map>
</mapping>
</element>
<element id="Specimen.type.coding:snomedCT.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="Specimen.type.coding.display"></path>
<short value="Representation defined by the system"></short>
<definition value="A representation of the meaning of the code in the system, following the rules of the system."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Coding.display"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.2 - but note this is not well followed"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CV.displayName"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"></map>
</mapping>
</element>
<element id="Specimen.type.coding:snomedCT.userSelected">
<path value="Specimen.type.coding.userSelected"></path>
<short value="If this coding was chosen directly by the user"></short>
<definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."></definition>
<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."></comment>
<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."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Coding.userSelected"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="boolean"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="Sometimes implied by being first"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD.codingRationale"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<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 ]"></map>
</mapping>
</element>
<element id="Specimen.type.text">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="Specimen.type.text"></path>
<short value="Plain text representation of the concept"></short>
<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."></definition>
<comment value="Very often the text is the same as a displayName of one of the codings."></comment>
<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."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="CodeableConcept.text"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.9. But note many systems use C*E.2 for this"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./originalText[mediaType/code="text/plain"]/data"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"></map>
</mapping>
</element>
<element id="Specimen.subject">
<path value="Specimen.subject"></path>
<short value="A reference to the Patient who the observation is about."></short>
<definition value="Where the specimen came from. This may be from the patient(s) or from the environment or a device."></definition>
<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."></comment>
<requirements value="Must know the subject context."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Specimen.subject"></path>
<min value="1"></min>
<max value="1"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Group"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<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, '#')])"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".scoper or .scoper.playsRole"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="who.focus"></map>
</mapping>
</element>
<element id="Specimen.receivedTime">
<path value="Specimen.receivedTime"></path>
<short value="The time when specimen was received for processing"></short>
<definition value="Time when specimen was received for processing or testing."></definition>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.receivedTime"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="dateTime"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mustSupport value="true"></mustSupport>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SPM-18"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".participation[typeCode=SBJ].act[code=SPCREC, moodCode=EVN].effectiveTime"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="when.done"></map>
</mapping>
</element>
<element id="Specimen.parent">
<path value="Specimen.parent"></path>
<short value="Specimen from which this specimen originated"></short>
<definition value="Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen."></definition>
<comment value="The parent specimen could be the source from which the current specimen is derived by some processing step (e.g. an aliquot or isolate or extracted nucleic acids from clinical samples) or one of many specimens that were combined to create a pooled sample."></comment>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Specimen.parent"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Specimen-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<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, '#')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".scoper (if parent) .player.scopesRole[classCode=SPEC].player (if child)"></map>
</mapping>
</element>
<element id="Specimen.request">
<path value="Specimen.request"></path>
<short value="Why the specimen was collected"></short>
<definition value="Details concerning a test or procedure request that required a specimen to be collected."></definition>
<comment value="The request may be explicit or implied such with a ProcedureRequest that requires a blood draw."></comment>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Specimen.request"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProcedureRequest-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<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, '#')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="ORC? OBR-2/3?"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="outboundRelationship[typeCode=FLFS].target"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="why"></map>
</mapping>
</element>
<element id="Specimen.collection">
<path value="Specimen.collection"></path>
<short value="Details of when/how the specimen was collected."></short>
<definition value="Details concerning the specimen collection."></definition>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.collection"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="BackboneElement"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mustSupport value="true"></mustSupport>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SPM-14"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".participation[typeCode=SBJ].act[classCode=SPECCOLLECT, moodCode=EVN]"></map>
</mapping>
</element>
<element id="Specimen.collection.id">
<path value="Specimen.collection.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.collection.extension">
<path value="Specimen.collection.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.collection.extension:fastingStatus">
<path value="Specimen.collection.extension"></path>
<sliceName value="fastingStatus"></sliceName>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
<profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-FastingStatus-1"></profile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mustSupport value="true"></mustSupport>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.collection.extension:fastingStatus.id">
<path value="Specimen.collection.extension.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.collection.extension:fastingStatus.extension">
<path value="Specimen.collection.extension.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.collection.extension:fastingStatus.url">
<path value="Specimen.collection.extension.url"></path>
<representation value="xmlAttr"></representation>
<short value="identifies the meaning of the extension"></short>
<definition value="Source of the definition for the extension code - a logical name or a URL."></definition>
<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."></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Extension.url"></path>
<min value="1"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-FastingStatus-1"></fixedUri>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.collection.extension:fastingStatus.value[x]">
<path value="Specimen.collection.extension.value[x]"></path>
<short value="Value of extension"></short>
<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)."></definition>
<comment value="A stream of bytes, base64 encoded"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Extension.value[x]"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="base64Binary"></code>
</type>
<type>
<code value="boolean"></code>
</type>
<type>
<code value="code"></code>
</type>
<type>
<code value="date"></code>
</type>
<type>
<code value="dateTime"></code>
</type>
<type>
<code value="decimal"></code>
</type>
<type>
<code value="id"></code>
</type>
<type>
<code value="instant"></code>
</type>
<type>
<code value="integer"></code>
</type>
<type>
<code value="markdown"></code>
</type>
<type>
<code value="oid"></code>
</type>
<type>
<code value="positiveInt"></code>
</type>
<type>
<code value="string"></code>
</type>
<type>
<code value="time"></code>
</type>
<type>
<code value="unsignedInt"></code>
</type>
<type>
<code value="uri"></code>
</type>
<type>
<code value="Address"></code>
</type>
<type>
<code value="Age"></code>
</type>
<type>
<code value="Annotation"></code>
</type>
<type>
<code value="Attachment"></code>
</type>
<type>
<code value="CodeableConcept"></code>
</type>
<type>
<code value="Coding"></code>
</type>
<type>
<code value="ContactPoint"></code>
</type>
<type>
<code value="Count"></code>
</type>
<type>
<code value="Distance"></code>
</type>
<type>
<code value="Duration"></code>
</type>
<type>
<code value="HumanName"></code>
</type>
<type>
<code value="Identifier"></code>
</type>
<type>
<code value="Money"></code>
</type>
<type>
<code value="Period"></code>
</type>
<type>
<code value="Quantity"></code>
</type>
<type>
<code value="Range"></code>
</type>
<type>
<code value="Ratio"></code>
</type>
<type>
<code value="Reference"></code>
</type>
<type>
<code value="SampledData"></code>
</type>
<type>
<code value="Signature"></code>
</type>
<type>
<code value="Timing"></code>
</type>
<type>
<code value="Meta"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.collection.modifierExtension">
<path value="Specimen.collection.modifierExtension"></path>
<short value="Extensions that cannot be ignored"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<alias value="modifiers"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="BackboneElement.modifierExtension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.collection.collector">
<path value="Specimen.collection.collector"></path>
<short value="Reference to the resource for the Practitioner that collected the specimen."></short>
<definition value="Person who collected the specimen."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.collection.collector"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<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, '#')])"></xpath>
</constraint>
<mustSupport value="true"></mustSupport>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="PRT"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".participation[typeCode=PFM].role"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="who.actor"></map>
</mapping>
</element>
<element id="Specimen.collection.collected[x]">
<path value="Specimen.collection.collected[x]"></path>
<short value="The date and time when the specimen was collected."></short>
<definition value="Time when specimen was collected from subject - the physiologically relevant time."></definition>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.collection.collected[x]"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="dateTime"></code>
</type>
<type>
<code value="Period"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mustSupport value="true"></mustSupport>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SPM-17"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".effectiveTime"></map>
</mapping>
<mapping>
<identity value="w5"></identity>
<map value="when.init"></map>
</mapping>
</element>
<element id="Specimen.collection.quantity">
<path value="Specimen.collection.quantity"></path>
<short value="The quantity of specimen collected"></short>
<definition value="The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample."></definition>
<comment value="The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.collection.quantity"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Quantity"></code>
<profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"></profile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="qty-3"></key>
<severity value="error"></severity>
<human value="If a code for the unit is present, the system SHALL also be present"></human>
<expression value="code.empty() or system.exists()"></expression>
<xpath value="not(exists(f:code)) or exists(f:system)"></xpath>
</constraint>
<constraint>
<key value="sqty-1"></key>
<severity value="error"></severity>
<human value="The comparator is not used on a SimpleQuantity"></human>
<expression value="comparator.empty()"></expression>
<xpath value="not(exists(f:comparator))"></xpath>
</constraint>
<mustSupport value="true"></mustSupport>
<isModifier value="false"></isModifier>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SN (see also Range) or CQ"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="PQ, IVL<PQ>, MO, CO, depending on the values"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SPM-12"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".participation[typeCode=SBJ].role[classCode=SPEC].player.quantity"></map>
</mapping>
</element>
<element id="Specimen.collection.method">
<path value="Specimen.collection.method"></path>
<short value="Technique used to perform collection"></short>
<definition value="A coded value specifying the technique that is used to perform the procedure."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.collection.method"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="CodeableConcept"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="SpecimenCollectionMethod"></valueString>
</extension>
<strength value="example"></strength>
<description value="The technique that is used to perform the procedure"></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/specimen-collection-method"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SPM-7"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".methodCode"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite">
<path value="Specimen.collection.bodySite"></path>
<short value="Anatomical collection site"></short>
<definition value="Anatomical location from which the specimen was collected (if subject is a patient). This is the target site. This element is not used for environmental specimens."></definition>
<comment value="If the use case requires BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately) then use the standard extension [body-site-instance](extension-body-site-instance.html)."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.collection.bodySite"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="CodeableConcept"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mustSupport value="true"></mustSupport>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="BodySite"></valueString>
</extension>
<strength value="example"></strength>
<description value="Codes describing anatomical locations. May include laterality."></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/body-site"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SPM-8 and SPM-9"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".targetSiteCode"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.id">
<path value="Specimen.collection.bodySite.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.extension">
<path value="Specimen.collection.bodySite.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding">
<path value="Specimen.collection.bodySite.coding"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="system"></path>
</discriminator>
<rules value="open"></rules>
</slicing>
<short value="Code defined by a terminology system"></short>
<definition value="A reference to a code defined by a terminology system."></definition>
<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."></comment>
<requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."></requirements>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="CodeableConcept.coding"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Coding"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CV"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding rdfs:subClassOf dt:CDCoding"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.1-8, C*E.10-22"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="union(., ./translation)"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT">
<path value="Specimen.collection.bodySite.coding"></path>
<sliceName value="snomedCT"></sliceName>
<short value="Code defined by a terminology system"></short>
<definition value="A reference to a code defined by a terminology system."></definition>
<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."></comment>
<requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."></requirements>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="CodeableConcept.coding"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Coding"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<binding>
<strength value="extensible"></strength>
<description value="A code from the SNOMED Clinical Terminology UK"></description>
<valueSetReference>
<reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-SpecimenBodySite-1"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CV"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding rdfs:subClassOf dt:CDCoding"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.1-8, C*E.10-22"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="union(., ./translation)"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.id">
<path value="Specimen.collection.bodySite.coding.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.extension">
<path value="Specimen.collection.bodySite.coding.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.extension:snomedCTDescriptionID">
<path value="Specimen.collection.bodySite.coding.extension"></path>
<sliceName value="snomedCTDescriptionID"></sliceName>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
<profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"></profile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.extension:snomedCTDescriptionID.id">
<path value="Specimen.collection.bodySite.coding.extension.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.extension:snomedCTDescriptionID.extension">
<path value="Specimen.collection.bodySite.coding.extension.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.extension:snomedCTDescriptionID.url">
<path value="Specimen.collection.bodySite.coding.extension.url"></path>
<representation value="xmlAttr"></representation>
<short value="identifies the meaning of the extension"></short>
<definition value="Source of the definition for the extension code - a logical name or a URL."></definition>
<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."></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Extension.url"></path>
<min value="1"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"></fixedUri>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.extension:snomedCTDescriptionID.value[x]">
<path value="Specimen.collection.bodySite.coding.extension.value[x]"></path>
<short value="Value of extension"></short>
<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)."></definition>
<comment value="A stream of bytes, base64 encoded"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Extension.value[x]"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="base64Binary"></code>
</type>
<type>
<code value="boolean"></code>
</type>
<type>
<code value="code"></code>
</type>
<type>
<code value="date"></code>
</type>
<type>
<code value="dateTime"></code>
</type>
<type>
<code value="decimal"></code>
</type>
<type>
<code value="id"></code>
</type>
<type>
<code value="instant"></code>
</type>
<type>
<code value="integer"></code>
</type>
<type>
<code value="markdown"></code>
</type>
<type>
<code value="oid"></code>
</type>
<type>
<code value="positiveInt"></code>
</type>
<type>
<code value="string"></code>
</type>
<type>
<code value="time"></code>
</type>
<type>
<code value="unsignedInt"></code>
</type>
<type>
<code value="uri"></code>
</type>
<type>
<code value="Address"></code>
</type>
<type>
<code value="Age"></code>
</type>
<type>
<code value="Annotation"></code>
</type>
<type>
<code value="Attachment"></code>
</type>
<type>
<code value="CodeableConcept"></code>
</type>
<type>
<code value="Coding"></code>
</type>
<type>
<code value="ContactPoint"></code>
</type>
<type>
<code value="Count"></code>
</type>
<type>
<code value="Distance"></code>
</type>
<type>
<code value="Duration"></code>
</type>
<type>
<code value="HumanName"></code>
</type>
<type>
<code value="Identifier"></code>
</type>
<type>
<code value="Money"></code>
</type>
<type>
<code value="Period"></code>
</type>
<type>
<code value="Quantity"></code>
</type>
<type>
<code value="Range"></code>
</type>
<type>
<code value="Ratio"></code>
</type>
<type>
<code value="Reference"></code>
</type>
<type>
<code value="SampledData"></code>
</type>
<type>
<code value="Signature"></code>
</type>
<type>
<code value="Timing"></code>
</type>
<type>
<code value="Meta"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.system">
<path value="Specimen.collection.bodySite.coding.system"></path>
<short value="Identity of the terminology system"></short>
<definition value="The identification of the code system that defines the meaning of the symbol in the code."></definition>
<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."></comment>
<requirements value="Need to be unambiguous about the source of the definition of the symbol."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Coding.system"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.3"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./codeSystem"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.version">
<path value="Specimen.collection.bodySite.coding.version"></path>
<short value="Version of the system - if relevant"></short>
<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."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Coding.version"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.7"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./codeSystemVersion"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.code">
<path value="Specimen.collection.bodySite.coding.code"></path>
<short value="Symbol in syntax defined by the system"></short>
<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)."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<requirements value="Need to refer to a particular code in the system."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Coding.code"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="code"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.1"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./code"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="Specimen.collection.bodySite.coding.display"></path>
<short value="Representation defined by the system"></short>
<definition value="A representation of the meaning of the code in the system, following the rules of the system."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."></requirements>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Coding.display"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.2 - but note this is not well followed"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CV.displayName"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.userSelected">
<path value="Specimen.collection.bodySite.coding.userSelected"></path>
<short value="If this coding was chosen directly by the user"></short>
<definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."></definition>
<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."></comment>
<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."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Coding.userSelected"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="boolean"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="Sometimes implied by being first"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD.codingRationale"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<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 ]"></map>
</mapping>
</element>
<element id="Specimen.collection.bodySite.text">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="Specimen.collection.bodySite.text"></path>
<short value="Plain text representation of the concept"></short>
<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."></definition>
<comment value="Very often the text is the same as a displayName of one of the codings."></comment>
<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."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="CodeableConcept.text"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="C*E.9. But note many systems use C*E.2 for this"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="./originalText[mediaType/code="text/plain"]/data"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"></map>
</mapping>
</element>
<element id="Specimen.processing">
<path value="Specimen.processing"></path>
<short value="Processing and processing step details"></short>
<definition value="Details concerning processing and processing steps for the specimen."></definition>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Specimen.processing"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="BackboneElement"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".participation[typeCode=SBJ].act[code=SPCTRT, moodCode=EVN]"></map>
</mapping>
</element>
<element id="Specimen.processing.id">
<path value="Specimen.processing.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.processing.extension">
<path value="Specimen.processing.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.processing.modifierExtension">
<path value="Specimen.processing.modifierExtension"></path>
<short value="Extensions that cannot be ignored"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<alias value="modifiers"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="BackboneElement.modifierExtension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.processing.description">
<path value="Specimen.processing.description"></path>
<short value="Textual description of procedure"></short>
<definition value="Textual description of procedure."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.processing.description"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".text"></map>
</mapping>
</element>
<element id="Specimen.processing.procedure">
<path value="Specimen.processing.procedure"></path>
<short value="Indicates the treatment step applied to the specimen"></short>
<definition value="A coded value specifying the procedure used to process the specimen."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.processing.procedure"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="CodeableConcept"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="SpecimenProcessingProcedure"></valueString>
</extension>
<strength value="example"></strength>
<description value="Type indicating the technique used to process the specimen"></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/specimen-processing-procedure"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".code"></map>
</mapping>
</element>
<element id="Specimen.processing.additive">
<path value="Specimen.processing.additive"></path>
<short value="Material used in the processing step"></short>
<definition value="Material used in the processing step."></definition>
<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."></comment>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Specimen.processing.additive"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<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, '#')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SPM-6"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".participation[typeCode=CSM].role[classCode=ADTV].code"></map>
</mapping>
</element>
<element id="Specimen.processing.time[x]">
<path value="Specimen.processing.time[x]"></path>
<short value="Date and time of specimen processing"></short>
<definition value="A record of the time or period when the specimen processing occurred. For example the time of sample fixation or the period of time the sample was in formalin."></definition>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.processing.time[x]"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="dateTime"></code>
</type>
<type>
<code value="Period"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".effectiveTime"></map>
</mapping>
</element>
<element id="Specimen.container">
<path value="Specimen.container"></path>
<short value="Direct container of specimen (tube/slide, etc.)"></short>
<definition value="The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here."></definition>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Specimen.container"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="BackboneElement"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".player.scopingRole[classCode=CONT].scoper"></map>
</mapping>
</element>
<element id="Specimen.container.id">
<path value="Specimen.container.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.container.extension">
<path value="Specimen.container.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.container.modifierExtension">
<path value="Specimen.container.modifierExtension"></path>
<short value="Extensions that cannot be ignored"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<alias value="modifiers"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="BackboneElement.modifierExtension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.container.identifier">
<path value="Specimen.container.identifier"></path>
<short value="Id for the container"></short>
<definition value="Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances."></definition>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Specimen.container.identifier"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Identifier"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<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]"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="Identifier"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SAC-3"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".id"></map>
</mapping>
</element>
<element id="Specimen.container.identifier.id">
<path value="Specimen.container.identifier.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.container.identifier.extension">
<path value="Specimen.container.identifier.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.container.identifier.use">
<path value="Specimen.container.identifier.use"></path>
<short value="usual | official | temp | secondary (If known)"></short>
<definition value="The purpose of this identifier."></definition>
<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."></comment>
<requirements value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.use"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="code"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isModifier value="true"></isModifier>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierUse"></valueString>
</extension>
<strength value="required"></strength>
<description value="Identifies the purpose for this identifier, if known ."></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/identifier-use"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="N/A"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Role.code or implied by context"></map>
</mapping>
</element>
<element id="Specimen.container.identifier.type">
<path value="Specimen.container.identifier.type"></path>
<short value="Description of identifier"></short>
<definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose."></definition>
<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."></comment>
<requirements value="Allows users to make use of identifiers when the identifier system is not known."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.type"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="CodeableConcept"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="IdentifierType"></valueString>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
<valueBoolean value="true"></valueBoolean>
</extension>
<strength value="extensible"></strength>
<description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose."></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/identifier-type"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.5"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Role.code or implied by context"></map>
</mapping>
</element>
<element id="Specimen.container.identifier.system">
<path value="Specimen.container.identifier.system"></path>
<short value="The namespace for the identifier value"></short>
<definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique."></definition>
<comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier"></comment>
<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."></requirements>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.system"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="uri"></code>
</type>
<example>
<label value="General"></label>
<valueUri value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"></valueUri>
</example>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.4 / EI-2-4"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II.root or Role.id.root"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./IdentifierType"></map>
</mapping>
</element>
<element id="Specimen.container.identifier.value">
<path value="Specimen.container.identifier.value"></path>
<short value="The value that is unique"></short>
<definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system."></definition>
<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)."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.value"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<example>
<label value="General"></label>
<valueString value="123456"></valueString>
</example>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.1 / EI.1"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./Value"></map>
</mapping>
</element>
<element id="Specimen.container.identifier.period">
<path value="Specimen.container.identifier.period"></path>
<short value="Time period when id is/was valid for use"></short>
<definition value="Time period during which identifier is/was valid for use."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.period"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Period"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="per-1"></key>
<severity value="error"></severity>
<human value="If present, start SHALL have a lower value than end"></human>
<expression value="start.empty() or end.empty() or (start <= end)"></expression>
<xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="DR"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.7 + CX.8"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Role.effectiveTime or implied by context"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./StartDate and ./EndDate"></map>
</mapping>
</element>
<element id="Specimen.container.identifier.assigner">
<path value="Specimen.container.identifier.assigner"></path>
<short value="Organization that issued id (may be just text)"></short>
<definition value="Organization that issued/manages the identifier."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Identifier.assigner"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<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, '#')])"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CX.4 / (CX.4,CX.9,CX.10)"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"></map>
</mapping>
<mapping>
<identity value="servd"></identity>
<map value="./IdentifierIssuingAuthority"></map>
</mapping>
</element>
<element id="Specimen.container.description">
<path value="Specimen.container.description"></path>
<short value="Textual description of the container"></short>
<definition value="Textual description of the container."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.container.description"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".desc"></map>
</mapping>
</element>
<element id="Specimen.container.type">
<path value="Specimen.container.type"></path>
<short value="Kind of container directly associated with specimen"></short>
<definition value="The type of container associated with the specimen (e.g. slide, aliquot, etc.)."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.container.type"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="CodeableConcept"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="SpecimenContainerType"></valueString>
</extension>
<strength value="example"></strength>
<description value="Type of specimen container"></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/specimen-container-type"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SPM-27"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".code"></map>
</mapping>
</element>
<element id="Specimen.container.capacity">
<path value="Specimen.container.capacity"></path>
<short value="Container volume or size"></short>
<definition value="The capacity (volume or other measure) the container may contain."></definition>
<comment value="The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.container.capacity"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Quantity"></code>
<profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"></profile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="qty-3"></key>
<severity value="error"></severity>
<human value="If a code for the unit is present, the system SHALL also be present"></human>
<expression value="code.empty() or system.exists()"></expression>
<xpath value="not(exists(f:code)) or exists(f:system)"></xpath>
</constraint>
<constraint>
<key value="sqty-1"></key>
<severity value="error"></severity>
<human value="The comparator is not used on a SimpleQuantity"></human>
<expression value="comparator.empty()"></expression>
<xpath value="not(exists(f:comparator))"></xpath>
</constraint>
<isModifier value="false"></isModifier>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SN (see also Range) or CQ"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="PQ, IVL<PQ>, MO, CO, depending on the values"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="one of: SAC 16, SAC17 and SAC 20, or SAC 21 and SAC 20"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".quantity"></map>
</mapping>
</element>
<element id="Specimen.container.specimenQuantity">
<path value="Specimen.container.specimenQuantity"></path>
<short value="Quantity of specimen within container"></short>
<definition value="The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type."></definition>
<comment value="The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.container.specimenQuantity"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="Quantity"></code>
<profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"></profile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="qty-3"></key>
<severity value="error"></severity>
<human value="If a code for the unit is present, the system SHALL also be present"></human>
<expression value="code.empty() or system.exists()"></expression>
<xpath value="not(exists(f:code)) or exists(f:system)"></xpath>
</constraint>
<constraint>
<key value="sqty-1"></key>
<severity value="error"></severity>
<human value="The comparator is not used on a SimpleQuantity"></human>
<expression value="comparator.empty()"></expression>
<xpath value="not(exists(f:comparator))"></xpath>
</constraint>
<isModifier value="false"></isModifier>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SN (see also Range) or CQ"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="PQ, IVL<PQ>, MO, CO, depending on the values"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SAC-23 (value) SAC-24 (units"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".playedRole[classCode=CONT].quantity"></map>
</mapping>
</element>
<element id="Specimen.container.additive[x]">
<path value="Specimen.container.additive[x]"></path>
<short value="Additive associated with container"></short>
<definition value="Introduced substance to preserve, maintain or enhance the specimen. Examples: Formalin, Citrate, EDTA."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.container.additive[x]"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="CodeableConcept"></code>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<binding>
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
<valueString value="SpecimenContainerAdditive"></valueString>
</extension>
<strength value="example"></strength>
<description value="Substance added to specimen container"></description>
<valueSetReference>
<reference value="http://hl7.org/fhir/ValueSet/v2-0371"></reference>
</valueSetReference>
</binding>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="CE/CNE/CWE"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="CD"></map>
</mapping>
<mapping>
<identity value="orim"></identity>
<map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="SAC-27"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".scopesRole[classCode=ADTV].player"></map>
</mapping>
</element>
<element id="Specimen.note">
<path value="Specimen.note"></path>
<short value="Notes/comments relating to the specimen."></short>
<definition value="To communicate any details or issues about the specimen or during the specimen collection. (for example: broken vial, sent with patient, frozen)."></definition>
<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)."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Specimen.note"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Annotation"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mustSupport value="true"></mustSupport>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="N/A"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Act"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="OBX"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="annotation"].value"></map>
</mapping>
</element>
<element id="Specimen.note.id">
<path value="Specimen.note.id"></path>
<representation value="xmlAttr"></representation>
<short value="xml:id (or equivalent in JSON)"></short>
<definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Element.id"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
</element>
<element id="Specimen.note.extension">
<path value="Specimen.note.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<description value="Extensions are always sliced by (at least) url"></description>
<rules value="open"></rules>
</slicing>
<short value="Additional Content defined by implementations"></short>
<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."></definition>
<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."></comment>
<alias value="extensions"></alias>
<alias value="user content"></alias>
<min value="0"></min>
<max value="*"></max>
<base>
<path value="Element.extension"></path>
<min value="0"></min>
<max value="*"></max>
</base>
<type>
<code value="Extension"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ext-1"></key>
<severity value="error"></severity>
<human value="Must have either extensions or value[x], not both"></human>
<expression value="extension.exists() != value.exists()"></expression>
<xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="N/A"></map>
</mapping>
</element>
<element id="Specimen.note.author[x]">
<path value="Specimen.note.author[x]"></path>
<short value="Individual responsible for the annotation"></short>
<definition value="The individual responsible for making the annotation."></definition>
<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."></comment>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Annotation.author[x]"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"></targetProfile>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<constraint>
<key value="ref-1"></key>
<severity value="error"></severity>
<human value="SHALL have a contained resource if a local reference is provided"></human>
<expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"></expression>
<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, '#')])"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="N/A"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Act.participant[typeCode=AUT].role"></map>
</mapping>
</element>
<element id="Specimen.note.time">
<path value="Specimen.note.time"></path>
<short value="When the annotation was made"></short>
<definition value="Indicates when this particular annotation was made."></definition>
<min value="0"></min>
<max value="1"></max>
<base>
<path value="Annotation.time"></path>
<min value="0"></min>
<max value="1"></max>
</base>
<type>
<code value="dateTime"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<isSummary value="true"></isSummary>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="N/A"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Act.effectiveTime"></map>
</mapping>
</element>
<element id="Specimen.note.text">
<path value="Specimen.note.text"></path>
<short value="The annotation - text content"></short>
<definition value="The text of the annotation."></definition>
<comment value="Note that FHIR strings may not exceed 1MB in size"></comment>
<min value="1"></min>
<max value="1"></max>
<base>
<path value="Annotation.text"></path>
<min value="1"></min>
<max value="1"></max>
</base>
<type>
<code value="string"></code>
</type>
<condition value="ele-1"></condition>
<constraint>
<key value="ele-1"></key>
<severity value="error"></severity>
<human value="All FHIR elements must have a @value or children"></human>
<expression value="hasValue() | (children().count() > id.count())"></expression>
<xpath value="@value|f:*|h:div"></xpath>
</constraint>
<mapping>
<identity value="rim"></identity>
<map value="n/a"></map>
</mapping>
<mapping>
<identity value="v2"></identity>
<map value="N/A"></map>
</mapping>
<mapping>
<identity value="rim"></identity>
<map value="Act.text"></map>
</mapping>
</element>
</snapshot>
<differential>
<element id="Specimen.meta.profile">
<path value="Specimen.meta.profile"></path>
<min value="1"></min>
</element>
<element id="Specimen.identifier">
<path value="Specimen.identifier"></path>
<min value="1"></min>
</element>
<element id="Specimen.identifier.system">
<path value="Specimen.identifier.system"></path>
<min value="1"></min>
</element>
<element id="Specimen.identifier.value">
<path value="Specimen.identifier.value"></path>
<min value="1"></min>
</element>
<element id="Specimen.accessionIdentifier">
<path value="Specimen.accessionIdentifier"></path>
<short value="A business level identifier for the specimen supplied by the performing organisation. eg. lab performing the test."></short>
<mustSupport value="true"></mustSupport>
</element>
<element id="Specimen.accessionIdentifier.assigner">
<path value="Specimen.accessionIdentifier.assigner"></path>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"></targetProfile>
</type>
</element>
<element id="Specimen.status">
<path value="Specimen.status"></path>
<mustSupport value="true"></mustSupport>
</element>
<element id="Specimen.type">
<path value="Specimen.type"></path>
<mustSupport value="true"></mustSupport>
</element>
<element id="Specimen.type.coding">
<path value="Specimen.type.coding"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="system"></path>
</discriminator>
<rules value="open"></rules>
</slicing>
</element>
<element id="Specimen.type.coding:snomedCT">
<path value="Specimen.type.coding"></path>
<sliceName value="snomedCT"></sliceName>
<binding>
<strength value="extensible"></strength>
<description value="A code from the SNOMED Clinical Terminology UK"></description>
<valueSetReference>
<reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-SpecimenType-1"></reference>
</valueSetReference>
</binding>
</element>
<element id="Specimen.type.coding:snomedCT.extension">
<path value="Specimen.type.coding.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<rules value="open"></rules>
</slicing>
</element>
<element id="Specimen.type.coding:snomedCT.extension:snomedCTDescriptionID">
<path value="Specimen.type.coding.extension"></path>
<sliceName value="snomedCTDescriptionID"></sliceName>
<type>
<code value="Extension"></code>
<profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"></profile>
</type>
</element>
<element id="Specimen.type.coding:snomedCT.extension:snomedCTDescriptionID.url">
<path value="Specimen.type.coding.extension.url"></path>
<fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"></fixedUri>
</element>
<element id="Specimen.type.coding:snomedCT.system">
<path value="Specimen.type.coding.system"></path>
<min value="1"></min>
</element>
<element id="Specimen.type.coding:snomedCT.code">
<path value="Specimen.type.coding.code"></path>
<min value="1"></min>
</element>
<element id="Specimen.type.coding:snomedCT.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="Specimen.type.coding.display"></path>
<min value="1"></min>
</element>
<element id="Specimen.subject">
<path value="Specimen.subject"></path>
<short value="A reference to the Patient who the observation is about."></short>
<type>
<code value="Reference"></code>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Group"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Substance"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"></targetProfile>
</type>
</element>
<element id="Specimen.receivedTime">
<path value="Specimen.receivedTime"></path>
<mustSupport value="true"></mustSupport>
</element>
<element id="Specimen.parent">
<path value="Specimen.parent"></path>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Specimen-1"></targetProfile>
</type>
</element>
<element id="Specimen.request">
<path value="Specimen.request"></path>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-ProcedureRequest-1"></targetProfile>
</type>
</element>
<element id="Specimen.collection">
<path value="Specimen.collection"></path>
<short value="Details of when/how the specimen was collected."></short>
<mustSupport value="true"></mustSupport>
</element>
<element id="Specimen.collection.extension">
<path value="Specimen.collection.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<rules value="open"></rules>
</slicing>
</element>
<element id="Specimen.collection.extension:fastingStatus">
<path value="Specimen.collection.extension"></path>
<sliceName value="fastingStatus"></sliceName>
<type>
<code value="Extension"></code>
<profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-FastingStatus-1"></profile>
</type>
<mustSupport value="true"></mustSupport>
</element>
<element id="Specimen.collection.extension:fastingStatus.url">
<path value="Specimen.collection.extension.url"></path>
<fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-FastingStatus-1"></fixedUri>
</element>
<element id="Specimen.collection.collector">
<path value="Specimen.collection.collector"></path>
<short value="Reference to the resource for the Practitioner that collected the specimen."></short>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"></targetProfile>
</type>
<mustSupport value="true"></mustSupport>
</element>
<element id="Specimen.collection.collected[x]">
<path value="Specimen.collection.collected[x]"></path>
<short value="The date and time when the specimen was collected."></short>
<mustSupport value="true"></mustSupport>
</element>
<element id="Specimen.collection.quantity">
<path value="Specimen.collection.quantity"></path>
<mustSupport value="true"></mustSupport>
</element>
<element id="Specimen.collection.bodySite">
<path value="Specimen.collection.bodySite"></path>
<mustSupport value="true"></mustSupport>
</element>
<element id="Specimen.collection.bodySite.coding">
<path value="Specimen.collection.bodySite.coding"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="system"></path>
</discriminator>
<rules value="open"></rules>
</slicing>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT">
<path value="Specimen.collection.bodySite.coding"></path>
<sliceName value="snomedCT"></sliceName>
<binding>
<strength value="extensible"></strength>
<description value="A code from the SNOMED Clinical Terminology UK"></description>
<valueSetReference>
<reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-SpecimenBodySite-1"></reference>
</valueSetReference>
</binding>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.extension">
<path value="Specimen.collection.bodySite.coding.extension"></path>
<slicing>
<discriminator>
<type value="value"></type>
<path value="url"></path>
</discriminator>
<rules value="open"></rules>
</slicing>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.extension:snomedCTDescriptionID">
<path value="Specimen.collection.bodySite.coding.extension"></path>
<sliceName value="snomedCTDescriptionID"></sliceName>
<type>
<code value="Extension"></code>
<profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"></profile>
</type>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.extension:snomedCTDescriptionID.url">
<path value="Specimen.collection.bodySite.coding.extension.url"></path>
<fixedUri value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"></fixedUri>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.system">
<path value="Specimen.collection.bodySite.coding.system"></path>
<min value="1"></min>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.code">
<path value="Specimen.collection.bodySite.coding.code"></path>
<min value="1"></min>
</element>
<element id="Specimen.collection.bodySite.coding:snomedCT.display">
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
<valueBoolean value="true"></valueBoolean>
</extension>
<path value="Specimen.collection.bodySite.coding.display"></path>
<min value="1"></min>
</element>
<element id="Specimen.container.identifier.assigner">
<path value="Specimen.container.identifier.assigner"></path>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"></targetProfile>
</type>
</element>
<element id="Specimen.note">
<path value="Specimen.note"></path>
<short value="Notes/comments relating to the specimen."></short>
<max value="1"></max>
<mustSupport value="true"></mustSupport>
</element>
<element id="Specimen.note.author[x]">
<path value="Specimen.note.author[x]"></path>
<type>
<code value="string"></code>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"></targetProfile>
</type>
<type>
<code value="Reference"></code>
<targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"></targetProfile>
</type>
</element>
</differential>
</StructureDefinition>