FHIR Osiris Implementation Guide
1.1.0 - trial-implementation

Publication Build: This will be filled in by the publication tooling

## Resource Profile: BiologicalSample - XML Profile

Draft as of 2025-04-03

XML representation of the onco-biological-sample resource profile.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="onco-biological-sample"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition onco-biological-sample</b></p><a name="onco-biological-sample"> </a><a name="hconco-biological-sample"> </a><a name="onco-biological-sample-en-US"> </a><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Le nom logique de lélément">Nom</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Drapeaux</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description et contraintes</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Ressource" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen">Specimen</a><a name="Specimen"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/specimen.html">Specimen</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Sample for analysis</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck13.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_extension_simple.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Extension simple" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.extension">Slices pour extension</a><a name="Specimen.extension"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/extensibility.html#Extension">Extension</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Extension</span><br/><span style="font-weight:bold">Slice: </span>Unordered, Open by value:url</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck135.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.extension:BiologicalSampleOrigin" title="Extension URL = https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/BiologicalSampleOrigin">extension:BiologicalSampleOrigin</a><a name="Specimen.extension.2"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">(Complex)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">The origin of the sample<br/><span style="font-weight:bold">URL: </span><a href="StructureDefinition-BiologicalSampleOrigin.html">https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/BiologicalSampleOrigin</a></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1343.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> Slices pour value[x]<a name="Specimen.extension.value_x_"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Content/Rules for all slices</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck13424.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.extension:BiologicalSampleOrigin.value[x]:valueCodeableConcept" title="Slice valueCodeableConcept">value[x]:valueCodeableConcept</a><a name="Specimen.extension.value_x_.2"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The origin of the sample</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck125.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.extension:BasedOnCondition" title="Extension URL = https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/BasedOnCondition">extension:BasedOnCondition</a><a name="Specimen.extension.3"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">0..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">(Complex)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Tumur Pathology Event concerned by the sample<br/><span style="font-weight:bold">URL: </span><a href="StructureDefinition-BasedOnCondition.html">https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/BasedOnCondition</a></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1243.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slice.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: white; background-color: inherit" title="Slice Definition" class="hierarchy"/> Slices pour value[x]<a name="Specimen.extension.value_x_.3"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Content/Rules for all slices</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck12424.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.extension:BasedOnCondition.value[x]:valueReference" title="Slice valueReference">value[x]:valueReference</a><a name="Specimen.extension.value_x_.4"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-tumor-pathology-event.html">Tumor Pathology Event</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Value of extension</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.identifier" title="Unique identifier of the sample within the health center (barcode, text identifier).">identifier</a><a name="Specimen.identifier"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Identifier">Identifier</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Identifier of the biological sample</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.type" title="Information indicating the nature of the sample.">type</a><a name="Specimen.type"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">The nature of the sample<br/><span style="font-weight:bold">Binding: </span><a href="ValueSet-BiologicalSampleNature.html" title="https://ig-osiris.cancer.fr/ig/osiris/ValueSet/BiologicalSampleNature">Biological Sample Nature Value Set</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#preferred" title="Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant.">preferred</a>)</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.subject">subject</a><a name="Specimen.subject"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-onco-patient.html">Oncology Patient</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance or a device</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.parent" title="Unique identifier of the parent sample (barcode, text identifier). For example, an aliquot or a sample extracted from another sample (e.g. histological number).">parent</a><a name="Specimen.parent"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span>..1</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-onco-biological-sample.html">Biological Sample</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Identifier of the parent biological sample</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.collection">collection</a><a name="Specimen.collection"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck113.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic" href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.collection.collected[x]">Slices pour collected[x]</a><a name="Specimen.collection.collected_x_"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="font-style: italic">1</span><span style="font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic" href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">Collection time</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Open by type:$this</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1124.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.collection.collected[x]:collectedDateTime" title="Slice collectedDateTime: The date of sample collection.">collected[x]:collectedDateTime</a><a name="Specimen.collection.collected_x_.2"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Collection date</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck111.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.collection.quantity" title="The percentage of tumor cells quantified in the tumor sample.">quantity</a><a name="Specimen.collection.quantity"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#SimpleQuantity" title="Quantity">SimpleQuantity</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Percentage of tumor cells</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.collection.quantity.value">value</a><a name="Specimen.collection.quantity.value"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#decimal">decimal</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Numerical value (with implicit precision)</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1110.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.collection.quantity.unit">unit</a><a name="Specimen.collection.quantity.unit"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Unit representation</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">%</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.collection.quantity.code">code</a><a name="Specimen.collection.quantity.code"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#code">code</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Coded form of the unit</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">C4055283</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.collection.bodySite" title="Anatomical location of the tumor specimen according to the International Classification of Diseases for Oncology.">bodySite</a><a name="Specimen.collection.bodySite"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">1..<span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Topography of the tumor sample<br/><span style="font-weight:bold">Binding: </span><a href="ValueSet-Topography.html" title="https://ig-osiris.cancer.fr/ig/osiris/ValueSet/Topography">Topography Value Set</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#preferred" title="Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant.">preferred</a>)</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.condition" title="The storage temperature of the sample.">condition</a><a name="Specimen.condition"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span>..1</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#CodeableConcept">CodeableConcept</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy">Storage method<br/><span style="font-weight:bold">Binding: </span><a href="ValueSet-StorageTemperature.html" title="https://ig-osiris.cancer.fr/ig/osiris/ValueSet/StorageTemperature">Storage temperature Value Set</a> (<a href="http://hl7.org/fhir/R4/terminologies.html#extensible" title="To be conformant, the concept in this element SHALL be from the specified value set if any of the codes within the value set can apply to the concept being communicated.  If the value set does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead.">extensible</a>)</td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-onco-biological-sample-definitions.html#Specimen.condition.text">text</a><a name="Specimen.condition.text"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Plain text representation of the concept</span><br/><span style="font-weight:bold">Required Pattern: </span><span style="color: darkgreen">Storage temperature of the sample.</span></td></tr>
    <tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
      </text>
      <url
           value="https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/onco-biological-sample"/>
      <version value="1.1.0"/>
      <name value="BiologicalSample"/>
      <title value="Biological Sample"/>
      <status value="draft"/>
      <date value="2025-04-03T14:14:07+02:00"/>
      <publisher value="institutcancer"/>
      <contact>
        <name value="institutcancer"/>
        <telecom>
          <system value="url"/>
          <value value="http://cancer.fr"/>
        </telecom>
        <telecom>
          <system value="email"/>
          <value value="osiris@institutcancer.fr"/>
        </telecom>
      </contact>
      <contact>
        <name value="Aurélien JOBARD"/>
        <telecom>
          <system value="email"/>
          <value value="osiris@institutcancer.fr"/>
        </telecom>
      </contact>
      <description
                   value="Description of a biological sample coming from an oncology Patient, with its storage condition."/>
      <fhirVersion value="4.0.1"/>
      <mapping>
        <identity value="fhir-osiris"/>
        <uri value="Patient"/>
        <name value="Fhir-osiris to osiris"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <uri value="http://hl7.org/v3"/>
        <name value="RIM Mapping"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <uri value="http://hl7.org/fhir/fivews"/>
        <name value="FiveWs Pattern Mapping"/>
      </mapping>
      <mapping>
        <identity value="v2"/>
        <uri value="http://hl7.org/v2"/>
        <name value="HL7 v2 Mapping"/>
      </mapping>
      <kind value="resource"/>
      <abstract value="false"/>
      <type value="Specimen"/>
      <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Specimen"/>
      <derivation value="constraint"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="4.0.1"/>
        </extension>
        <element id="Specimen">
          <path value="Specimen"/>
          <short value="Sample for analysis"/>
          <definition value="A sample to be used for analysis."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Specimen"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <constraint>
            <key value="dom-2"/>
            <severity value="error"/>
            <human
                   value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/>
            <expression value="contained.contained.empty()"/>
            <xpath value="not(parent::f:contained and f:contained)"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-3"/>
            <severity value="error"/>
            <human
                   value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource"/>
            <expression
                        value="contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"/>
            <xpath
                   value="not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-4"/>
            <severity value="error"/>
            <human
                   value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/>
            <expression
                        value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/>
            <xpath
                   value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-5"/>
            <severity value="error"/>
            <human
                   value="If a resource is contained in another resource, it SHALL NOT have a security label"/>
            <expression value="contained.meta.security.empty()"/>
            <xpath value="not(exists(f:contained/*/f:meta/f:security))"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
              <valueBoolean value="true"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation">
              <valueMarkdown
                             value="When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."/>
            </extension>
            <key value="dom-6"/>
            <severity value="warning"/>
            <human
                   value="A resource should have narrative for robust management"/>
            <expression value="text.`div`.exists()"/>
            <xpath value="exists(f:text/h:div)"/>
            <source
                    value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="fhir-osiris"/>
            <map value="BiologicalSample"/>
            <comment value="Biological sample description"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Entity. Role, or Act"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Role[classCode=SPEC]"/>
          </mapping>
        </element>
        <element id="Specimen.id">
          <path value="Specimen.id"/>
          <short value="Logical id of this artifact"/>
          <definition
                      value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/>
          <comment
                   value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="id"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Specimen.meta">
          <path value="Specimen.meta"/>
          <short value="Metadata about the resource"/>
          <definition
                      value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.meta"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Meta"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Specimen.implicitRules">
          <path value="Specimen.implicitRules"/>
          <short value="A set of rules under which this content was created"/>
          <definition
                      value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc."/>
          <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. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.implicitRules"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation"/>
          <isSummary value="true"/>
        </element>
        <element id="Specimen.language">
          <path value="Specimen.language"/>
          <short value="Language of the resource content"/>
          <definition
                      value="The base language in which the resource is written."/>
          <comment
                   value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.language"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
              <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Language"/>
            </extension>
            <strength value="preferred"/>
            <description value="A human language."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/languages"/>
          </binding>
        </element>
        <element id="Specimen.text">
          <path value="Specimen.text"/>
          <short value="Text summary of the resource, for human interpretation"/>
          <definition
                      value="A human-readable narrative that contains a summary of the resource and can 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 &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."/>
          <comment
                   value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a &quot;text blob&quot; or where text is additionally entered raw or narrated and encoded information is added later."/>
          <alias value="narrative"/>
          <alias value="html"/>
          <alias value="xhtml"/>
          <alias value="display"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Narrative"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="Act.text?"/>
          </mapping>
        </element>
        <element id="Specimen.contained">
          <path value="Specimen.contained"/>
          <short value="Contained, inline Resources"/>
          <definition
                      value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."/>
          <comment
                   value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels."/>
          <alias value="inline resources"/>
          <alias value="anonymous resources"/>
          <alias value="contained resources"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.contained"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Specimen.extension">
          <path value="Specimen.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <ordered value="false"/>
            <rules value="open"/>
          </slicing>
          <short value="Extension"/>
          <definition value="An Extension"/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Specimen.extension:BiologicalSampleOrigin">
          <path value="Specimen.extension"/>
          <sliceName value="BiologicalSampleOrigin"/>
          <short value="The origin of the sample"/>
          <definition value="Allows you to indicate the origin of the sample."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/BiologicalSampleOrigin"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
        </element>
        <element id="Specimen.extension:BiologicalSampleOrigin.id">
          <path value="Specimen.extension.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Specimen.extension:BiologicalSampleOrigin.extension">
          <path value="Specimen.extension.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Extension"/>
          <definition value="An Extension"/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Specimen.extension:BiologicalSampleOrigin.url">
          <path value="Specimen.extension.url"/>
          <representation value="xmlAttr"/>
          <short value="identifies the meaning of the extension"/>
          <definition
                      value="Source of the definition for the extension code - a logical name or a URL."/>
          <comment
                   value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Extension.url"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="uri"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <fixedUri
                    value="https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/BiologicalSampleOrigin"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Specimen.extension:BiologicalSampleOrigin.value[x]">
          <path value="Specimen.extension.value[x]"/>
          <slicing>
            <discriminator>
              <type value="type"/>
              <path value="$this"/>
            </discriminator>
            <ordered value="false"/>
            <rules value="closed"/>
          </slicing>
          <short value="Value of extension"/>
          <definition
                      value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Extension.value[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element
                 id="Specimen.extension:BiologicalSampleOrigin.value[x]:valueCodeableConcept">
          <path value="Specimen.extension.value[x]"/>
          <sliceName value="valueCodeableConcept"/>
          <short value="The origin of the sample"/>
          <definition value="Allows you to indicate the origin of the sample."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Extension.value[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="https://ig-osiris.cancer.fr/ig/osiris/ValueSet/BiologicalSampleOrigin"/>
          </binding>
          <mapping>
            <identity value="fhir-osiris"/>
            <map value="OSIRIS_pivot_BiologicalSample.BiologicalSample_Origin"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element
                 id="Specimen.extension:BiologicalSampleOrigin.value[x]:valueCodeableConcept.id">
          <path value="Specimen.extension.value[x].id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element
                 id="Specimen.extension:BiologicalSampleOrigin.value[x]:valueCodeableConcept.extension">
          <path value="Specimen.extension.value[x].extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element
                 id="Specimen.extension:BiologicalSampleOrigin.value[x]:valueCodeableConcept.coding">
          <path value="Specimen.extension.value[x].coding"/>
          <short value="Code defined by a terminology system"/>
          <definition
                      value="A reference to a code defined by a terminology system."/>
          <comment
                   value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."/>
          <requirements
                        value="Allows for alternative encodings within a code system, and translations to other code systems."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.1-8, C*E.10-22"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="union(., ./translation)"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/>
          </mapping>
        </element>
        <element
                 id="Specimen.extension:BiologicalSampleOrigin.value[x]:valueCodeableConcept.text">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="Specimen.extension.value[x].text"/>
          <short value="Plain text representation of the concept"/>
          <definition
                      value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user."/>
          <comment
                   value="Very often the text is the same as a displayName of one of the codings."/>
          <requirements
                        value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <patternString value="Origin of the sample"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.9. But note many systems use C*E.2 for this"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="./originalText[mediaType/code=&quot;text/plain&quot;]/data"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/>
          </mapping>
        </element>
        <element id="Specimen.extension:BasedOnCondition">
          <path value="Specimen.extension"/>
          <sliceName value="BasedOnCondition"/>
          <short value="Tumur Pathology Event concerned by the sample"/>
          <definition value="Tumur Pathology Event concerned by the sample."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/BasedOnCondition"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
        </element>
        <element id="Specimen.extension:BasedOnCondition.id">
          <path value="Specimen.extension.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Specimen.extension:BasedOnCondition.extension">
          <path value="Specimen.extension.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Extension"/>
          <definition value="An Extension"/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Specimen.extension:BasedOnCondition.url">
          <path value="Specimen.extension.url"/>
          <representation value="xmlAttr"/>
          <short value="identifies the meaning of the extension"/>
          <definition
                      value="Source of the definition for the extension code - a logical name or a URL."/>
          <comment
                   value="The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Extension.url"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="uri"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <fixedUri
                    value="https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/BasedOnCondition"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Specimen.extension:BasedOnCondition.value[x]">
          <path value="Specimen.extension.value[x]"/>
          <slicing>
            <discriminator>
              <type value="type"/>
              <path value="$this"/>
            </discriminator>
            <ordered value="false"/>
            <rules value="closed"/>
          </slicing>
          <short value="Value of extension"/>
          <definition
                      value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Extension.value[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element
                 id="Specimen.extension:BasedOnCondition.value[x]:valueReference">
          <path value="Specimen.extension.value[x]"/>
          <sliceName value="valueReference"/>
          <short value="Value of extension"/>
          <definition
                      value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Extension.value[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/tumor-pathology-event"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="fhir-osiris"/>
            <map value="OSIRIS_pivot_BiologicalSample.TumorPathologyEvent_Ref"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Specimen.modifierExtension">
          <path value="Specimen.modifierExtension"/>
          <short value="Extensions that cannot be ignored"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer 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.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <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."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Specimen.identifier">
          <path value="Specimen.identifier"/>
          <short value="Identifier of the biological sample"/>
          <definition
                      value="Unique identifier of the sample within the health center (barcode, text identifier)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Specimen.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="fhir-osiris"/>
            <map
                 value="OSIRIS_pivot_BiologicalSample.BiologicalSample_ExternalAccession"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.identifier"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".id"/>
          </mapping>
        </element>
        <element id="Specimen.accessionIdentifier">
          <path value="Specimen.accessionIdentifier"/>
          <short value="Identifier assigned by the lab"/>
          <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."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.accessionIdentifier"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.identifier"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-30 (v2.7+)"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".participation[typeCode=SBJ].act[classCode=ACSN, moodCode=EVN].id"/>
          </mapping>
        </element>
        <element id="Specimen.status">
          <path value="Specimen.status"/>
          <short
                 value="available | unavailable | unsatisfactory | entered-in-error"/>
          <definition value="The availability of the specimen."/>
          <comment
                   value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.status"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SpecimenStatus"/>
            </extension>
            <strength value="required"/>
            <description
                         value="Codes providing the status/availability of a specimen."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/specimen-status|4.0.1"/>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.status"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-20"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="status"/>
          </mapping>
        </element>
        <element id="Specimen.type">
          <path value="Specimen.type"/>
          <short value="The nature of the sample"/>
          <definition value="Information indicating the nature of the sample."/>
          <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."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Specimen.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <strength value="preferred"/>
            <valueSet
                      value="https://ig-osiris.cancer.fr/ig/osiris/ValueSet/BiologicalSampleNature"/>
          </binding>
          <mapping>
            <identity value="fhir-osiris"/>
            <map value="OSIRIS_pivot_BiologicalSample.BiologicalSample_Nature"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.what[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-4 and possibly SPM-5"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".code"/>
          </mapping>
        </element>
        <element id="Specimen.subject">
          <path value="Specimen.subject"/>
          <short
                 value="Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance or a device"/>
          <definition
                      value="Where the specimen came from. This may be from patient(s), from a location (e.g., the source of an environmental sample), or a sampling of a substance or a device."/>
          <requirements value="Must know the subject context."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.subject"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/onco-patient"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="fhir-osiris"/>
            <map value="OSIRIS_pivot_BiologicalSample.Patient_Id"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.subject[x]"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".scoper  or  .scoper.playsRole"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.subject"/>
          </mapping>
        </element>
        <element id="Specimen.receivedTime">
          <path value="Specimen.receivedTime"/>
          <short value="The time when specimen was received for processing"/>
          <definition
                      value="Time when specimen was received for processing or testing."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.receivedTime"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.done[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-18"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".participation[typeCode=SBJ].act[code=SPCREC, moodCode=EVN].effectiveTime"/>
          </mapping>
        </element>
        <element id="Specimen.parent">
          <path value="Specimen.parent"/>
          <short value="Identifier of the parent biological sample"/>
          <definition
                      value="Unique identifier of the parent sample (barcode, text identifier). For example, an aliquot or a sample extracted from another sample (e.g. histological number)."/>
          <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."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.parent"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/onco-biological-sample"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="fhir-osiris"/>
            <map
                 value="OSIRIS_pivot_BiologicalSample.BiologicalSample_ParentExternalAccession"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".scoper (if parent) .player.scopesRole[classCode=SPEC].player (if child)"/>
          </mapping>
        </element>
        <element id="Specimen.request">
          <path value="Specimen.request"/>
          <short value="Why the specimen was collected"/>
          <definition
                      value="Details concerning a service request that required a specimen to be collected."/>
          <comment
                   value="The request may be explicit or implied such with a ServiceRequest that requires a blood draw."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Specimen.request"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.why[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="ORC? OBR-2/3?"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="outboundRelationship[typeCode=FLFS].target"/>
          </mapping>
        </element>
        <element id="Specimen.collection">
          <path value="Specimen.collection"/>
          <short value="Collection details"/>
          <definition value="Details concerning the specimen collection."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.collection"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-14"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".participation[typeCode=SBJ].act[classCode=SPECCOLLECT, moodCode=EVN]"/>
          </mapping>
        </element>
        <element id="Specimen.collection.id">
          <path value="Specimen.collection.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Specimen.collection.extension">
          <path value="Specimen.collection.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Specimen.collection.modifierExtension">
          <path value="Specimen.collection.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <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."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Specimen.collection.collector">
          <path value="Specimen.collection.collector"/>
          <short value="Who collected the specimen"/>
          <definition value="Person who collected the specimen."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.collection.collector"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.actor"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="PRT"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=PFM].role"/>
          </mapping>
        </element>
        <element id="Specimen.collection.collected[x]">
          <path value="Specimen.collection.collected[x]"/>
          <slicing>
            <discriminator>
              <type value="type"/>
              <path value="$this"/>
            </discriminator>
            <ordered value="false"/>
            <rules value="closed"/>
          </slicing>
          <short value="Collection time"/>
          <definition
                      value="Time when specimen was collected from subject - the physiologically relevant time."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Specimen.collection.collected[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.init"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-17"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".effectiveTime"/>
          </mapping>
        </element>
        <element id="Specimen.collection.collected[x]:collectedDateTime">
          <path value="Specimen.collection.collected[x]"/>
          <sliceName value="collectedDateTime"/>
          <short value="Collection date"/>
          <definition value="The date of sample collection."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Specimen.collection.collected[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="fhir-osiris"/>
            <map
                 value="OSIRIS_pivot_BiologicalSample.BiologicalSample_CollectDate"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.init"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-17"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".effectiveTime"/>
          </mapping>
        </element>
        <element id="Specimen.collection.duration">
          <path value="Specimen.collection.duration"/>
          <short value="How long it took to collect specimen"/>
          <definition
                      value="The span of time over which the collection of a specimen occurred."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.collection.duration"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Duration"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.init"/>
          </mapping>
        </element>
        <element id="Specimen.collection.quantity">
          <path value="Specimen.collection.quantity"/>
          <short value="Percentage of tumor cells"/>
          <definition
                      value="The percentage of tumor cells quantified in the tumor sample."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.collection.quantity"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-12"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".participation[typeCode=SBJ].role[classCode=SPEC].player.quantity"/>
          </mapping>
        </element>
        <element id="Specimen.collection.quantity.id">
          <path value="Specimen.collection.quantity.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Specimen.collection.quantity.extension">
          <path value="Specimen.collection.quantity.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Specimen.collection.quantity.value">
          <path value="Specimen.collection.quantity.value"/>
          <short value="Numerical value (with implicit precision)"/>
          <definition
                      value="The value of the measured amount. The value includes an implicit precision in the presentation of the value."/>
          <comment
                   value="The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."/>
          <requirements
                        value="Precision is handled implicitly in almost all cases of measurement."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Quantity.value"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="fhir-osiris"/>
            <map
                 value="OSIRIS_pivot_BiologicalSample.BiologicalSample_TumorCellularity"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SN.2  / CQ - N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"/>
          </mapping>
        </element>
        <element id="Specimen.collection.quantity.comparator">
          <path value="Specimen.collection.quantity.comparator"/>
          <short
                 value="&lt; | &lt;= | &gt;= | &gt; - how to understand the value"/>
          <definition value="Not allowed to be used in this context"/>
          <requirements
                        value="Need a framework for handling measures where the value is &lt;5ug/L or &gt;400mg/L due to the limitations of measuring methodology."/>
          <min value="0"/>
          <max value="0"/>
          <base>
            <path value="Quantity.comparator"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <meaningWhenMissing
                              value="If there is no comparator, then there is no modification of the value"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This is labeled as &quot;Is Modifier&quot; because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="QuantityComparator"/>
            </extension>
            <strength value="required"/>
            <description
                         value="How the Quantity should be understood and represented."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="SN.1  / CQ.1"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="IVL properties"/>
          </mapping>
        </element>
        <element id="Specimen.collection.quantity.unit">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="Specimen.collection.quantity.unit"/>
          <short value="Unit representation"/>
          <definition value="A human-readable form of the unit."/>
          <requirements
                        value="There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Quantity.unit"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <patternString value="%"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PQ.unit"/>
          </mapping>
        </element>
        <element id="Specimen.collection.quantity.system">
          <path value="Specimen.collection.quantity.system"/>
          <short value="System that defines coded unit form"/>
          <definition
                      value="The identification of the system that provides the coded form of the unit."/>
          <requirements
                        value="Need to know the system that defines the coded form of the unit."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Quantity.system"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <condition value="qty-3"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CO.codeSystem, PQ.translation.codeSystem"/>
          </mapping>
        </element>
        <element id="Specimen.collection.quantity.code">
          <path value="Specimen.collection.quantity.code"/>
          <short value="Coded form of the unit"/>
          <definition
                      value="A computer processable form of the unit in some unit representation system."/>
          <comment
                   value="The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency.  The context of use may additionally require a code from a particular system."/>
          <requirements
                        value="Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Quantity.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <patternCode value="C4055283"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="(see OBX.6 etc.) / CQ.2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="PQ.code, MO.currency, PQ.translation.code"/>
          </mapping>
        </element>
        <element id="Specimen.collection.method">
          <path value="Specimen.collection.method"/>
          <short value="Technique used to perform collection"/>
          <definition
                      value="A coded value specifying the technique that is used to perform the procedure."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.collection.method"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SpecimenCollectionMethod"/>
            </extension>
            <strength value="example"/>
            <description
                         value="The  technique that is used to perform the procedure."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/specimen-collection-method"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-7"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".methodCode"/>
          </mapping>
        </element>
        <element id="Specimen.collection.bodySite">
          <path value="Specimen.collection.bodySite"/>
          <short value="Topography of the tumor sample"/>
          <definition
                      value="Anatomical location of the tumor specimen according to the International Classification of Diseases for Oncology."/>
          <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 [bodySite](http://hl7.org/fhir/R4/extension-bodysite.html)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Specimen.collection.bodySite"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <strength value="preferred"/>
            <valueSet
                      value="https://ig-osiris.cancer.fr/ig/osiris/ValueSet/Topography"/>
          </binding>
          <mapping>
            <identity value="fhir-osiris"/>
            <map
                 value="OSIRIS_pivot_BiologicalSample.BiologicalSample_TopographyCode"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-8 and SPM-9"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".targetSiteCode"/>
          </mapping>
        </element>
        <element id="Specimen.collection.fastingStatus[x]">
          <path value="Specimen.collection.fastingStatus[x]"/>
          <short
                 value="Whether or how long patient abstained from food and/or drink"/>
          <definition
                      value="Abstinence or reduction from some or all food, drink, or both, for a period of time prior to sample collection."/>
          <comment
                   value="Representing fasting status using this element is preferred to representing it with an observation using a 'pre-coordinated code'  such as  LOINC 2005-7 (Calcium [Moles/​time] in 2 hour Urine --12 hours fasting), or  using  a component observation ` such as `Observation.component code`  = LOINC 49541-6 (Fasting status - Reported)."/>
          <requirements
                        value="Many diagnostic tests require fasting  to facilitate accurate interpretation."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.collection.fastingStatus[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <type>
            <code value="Duration"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FastingStatus"/>
            </extension>
            <strength value="extensible"/>
            <description
                         value="Codes describing the fasting status of the patient."/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v2-0916"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="OBR-"/>
          </mapping>
        </element>
        <element id="Specimen.processing">
          <path value="Specimen.processing"/>
          <short value="Processing and processing step details"/>
          <definition
                      value="Details concerning processing and processing steps for the specimen."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Specimen.processing"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".participation[typeCode=SBJ].act[code=SPCTRT, moodCode=EVN]"/>
          </mapping>
        </element>
        <element id="Specimen.processing.id">
          <path value="Specimen.processing.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Specimen.processing.extension">
          <path value="Specimen.processing.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Specimen.processing.modifierExtension">
          <path value="Specimen.processing.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <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."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Specimen.processing.description">
          <path value="Specimen.processing.description"/>
          <short value="Textual description of procedure"/>
          <definition value="Textual description of procedure."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.processing.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".text"/>
          </mapping>
        </element>
        <element id="Specimen.processing.procedure">
          <path value="Specimen.processing.procedure"/>
          <short value="Indicates the treatment step  applied to the specimen"/>
          <definition
                      value="A coded value specifying the procedure used to process the specimen."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.processing.procedure"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SpecimenProcessingProcedure"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Type indicating the technique used to process the specimen."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/specimen-processing-procedure"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value=".code"/>
          </mapping>
        </element>
        <element id="Specimen.processing.additive">
          <path value="Specimen.processing.additive"/>
          <short value="Material used in the processing step"/>
          <definition value="Material used in the processing step."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Specimen.processing.additive"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Substance"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=CSM].role[classCode=ADTV].code"/>
          </mapping>
        </element>
        <element id="Specimen.processing.time[x]">
          <path value="Specimen.processing.time[x]"/>
          <short value="Date and time of specimen processing"/>
          <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."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.processing.time[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <type>
            <code value="Period"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".effectiveTime"/>
          </mapping>
        </element>
        <element id="Specimen.container">
          <path value="Specimen.container"/>
          <short value="Direct container of specimen (tube/slide, etc.)"/>
          <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."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Specimen.container"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".player.scopingRole[classCode=CONT].scoper"/>
          </mapping>
        </element>
        <element id="Specimen.container.id">
          <path value="Specimen.container.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Specimen.container.extension">
          <path value="Specimen.container.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Specimen.container.modifierExtension">
          <path value="Specimen.container.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <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 in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <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."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Specimen.container.identifier">
          <path value="Specimen.container.identifier"/>
          <short value="Id for the container"/>
          <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."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Specimen.container.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="SAC-3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".id"/>
          </mapping>
        </element>
        <element id="Specimen.container.description">
          <path value="Specimen.container.description"/>
          <short value="Textual description of the container"/>
          <definition value="Textual description of the container."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.container.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".desc"/>
          </mapping>
        </element>
        <element id="Specimen.container.type">
          <path value="Specimen.container.type"/>
          <short value="Kind of container directly associated with specimen"/>
          <definition
                      value="The type of container associated with the specimen (e.g. slide, aliquot, etc.)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.container.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SpecimenContainerType"/>
            </extension>
            <strength value="example"/>
            <description value="Type of specimen container."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/specimen-container-type"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-27"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".code"/>
          </mapping>
        </element>
        <element id="Specimen.container.capacity">
          <path value="Specimen.container.capacity"/>
          <short value="Container volume or size"/>
          <definition
                      value="The capacity (volume or other measure) the container may contain."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.container.capacity"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="v2"/>
            <map value="one of: SAC 16, SAC17 and SAC 20, or SAC 21 and SAC 20"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".quantity"/>
          </mapping>
        </element>
        <element id="Specimen.container.specimenQuantity">
          <path value="Specimen.container.specimenQuantity"/>
          <short value="Quantity of specimen within container"/>
          <definition
                      value="The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.container.specimenQuantity"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
            <profile
                     value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="v2"/>
            <map value="SAC-23 (value) SAC-24 (units"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".playedRole[classCode=CONT].quantity"/>
          </mapping>
        </element>
        <element id="Specimen.container.additive[x]">
          <path value="Specimen.container.additive[x]"/>
          <short value="Additive associated with container"/>
          <definition
                      value="Introduced substance to preserve, maintain or enhance the specimen. Examples: Formalin, Citrate, EDTA."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.container.additive[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Substance"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SpecimenContainerAdditive"/>
            </extension>
            <strength value="example"/>
            <description value="Substance added to specimen container."/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v2-0371"/>
          </binding>
          <mapping>
            <identity value="v2"/>
            <map value="SAC-27"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".scopesRole[classCode=ADTV].player"/>
          </mapping>
        </element>
        <element id="Specimen.condition">
          <path value="Specimen.condition"/>
          <short value="Storage method"/>
          <definition value="The storage temperature of the sample."/>
          <comment
                   value="Specimen condition is an observation made about the specimen.  It's a point-in-time assessment.  It can be used to assess its quality or appropriateness for a specific test."/>
          <requirements
                        value="The specimen condition can be used to assess its quality or appropriateness for a specific test."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Specimen.condition"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="https://ig-osiris.cancer.fr/ig/osiris/ValueSet/StorageTemperature"/>
          </binding>
          <mapping>
            <identity value="fhir-osiris"/>
            <map
                 value="OSIRIS_pivot_BiologicalSample.BiologicalSample_StorageTemperature"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="SPM-24"/>
          </mapping>
        </element>
        <element id="Specimen.condition.id">
          <path value="Specimen.condition.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Specimen.condition.extension">
          <path value="Specimen.condition.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Specimen.condition.coding">
          <path value="Specimen.condition.coding"/>
          <short value="Code defined by a terminology system"/>
          <definition
                      value="A reference to a code defined by a terminology system."/>
          <comment
                   value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."/>
          <requirements
                        value="Allows for alternative encodings within a code system, and translations to other code systems."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.1-8, C*E.10-22"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="union(., ./translation)"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/>
          </mapping>
        </element>
        <element id="Specimen.condition.text">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="Specimen.condition.text"/>
          <short value="Plain text representation of the concept"/>
          <definition
                      value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user."/>
          <comment
                   value="Very often the text is the same as a displayName of one of the codings."/>
          <requirements
                        value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <patternString value="Storage temperature of the sample."/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.9. But note many systems use C*E.2 for this"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="./originalText[mediaType/code=&quot;text/plain&quot;]/data"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/>
          </mapping>
        </element>
        <element id="Specimen.note">
          <path value="Specimen.note"/>
          <short value="Comments"/>
          <definition
                      value="To communicate any details or issues about the specimen or during the specimen collection. (for example: broken vial, sent with patient, frozen)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Specimen.note"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Annotation"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="v2"/>
            <map value="OBX"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value"/>
          </mapping>
        </element>
      </snapshot>
      <differential>
        <element id="Specimen">
          <path value="Specimen"/>
          <mapping>
            <identity value="fhir-osiris"/>
            <map value="BiologicalSample"/>
            <comment value="Biological sample description"/>
          </mapping>
        </element>
        <element id="Specimen.extension">
          <path value="Specimen.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <ordered value="false"/>
            <rules value="open"/>
          </slicing>
          <min value="1"/>
        </element>
        <element id="Specimen.extension:BiologicalSampleOrigin">
          <path value="Specimen.extension"/>
          <sliceName value="BiologicalSampleOrigin"/>
          <short value="The origin of the sample"/>
          <definition value="Allows you to indicate the origin of the sample."/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/BiologicalSampleOrigin"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element
                 id="Specimen.extension:BiologicalSampleOrigin.value[x]:valueCodeableConcept">
          <path value="Specimen.extension.value[x]"/>
          <sliceName value="valueCodeableConcept"/>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <mapping>
            <identity value="fhir-osiris"/>
            <map value="OSIRIS_pivot_BiologicalSample.BiologicalSample_Origin"/>
          </mapping>
        </element>
        <element id="Specimen.extension:BasedOnCondition">
          <path value="Specimen.extension"/>
          <sliceName value="BasedOnCondition"/>
          <short value="Tumur Pathology Event concerned by the sample"/>
          <definition value="Tumur Pathology Event concerned by the sample."/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/BasedOnCondition"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element
                 id="Specimen.extension:BasedOnCondition.value[x]:valueReference">
          <path value="Specimen.extension.value[x]"/>
          <sliceName value="valueReference"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/tumor-pathology-event"/>
          </type>
          <mapping>
            <identity value="fhir-osiris"/>
            <map value="OSIRIS_pivot_BiologicalSample.TumorPathologyEvent_Ref"/>
          </mapping>
        </element>
        <element id="Specimen.identifier">
          <path value="Specimen.identifier"/>
          <short value="Identifier of the biological sample"/>
          <definition
                      value="Unique identifier of the sample within the health center (barcode, text identifier)."/>
          <min value="1"/>
          <max value="1"/>
          <mustSupport value="true"/>
          <mapping>
            <identity value="fhir-osiris"/>
            <map
                 value="OSIRIS_pivot_BiologicalSample.BiologicalSample_ExternalAccession"/>
          </mapping>
        </element>
        <element id="Specimen.type">
          <path value="Specimen.type"/>
          <short value="The nature of the sample"/>
          <definition value="Information indicating the nature of the sample."/>
          <min value="1"/>
          <mustSupport value="true"/>
          <binding>
            <strength value="preferred"/>
            <valueSet
                      value="https://ig-osiris.cancer.fr/ig/osiris/ValueSet/BiologicalSampleNature"/>
          </binding>
          <mapping>
            <identity value="fhir-osiris"/>
            <map value="OSIRIS_pivot_BiologicalSample.BiologicalSample_Nature"/>
          </mapping>
        </element>
        <element id="Specimen.subject">
          <path value="Specimen.subject"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/onco-patient"/>
          </type>
          <mustSupport value="true"/>
          <mapping>
            <identity value="fhir-osiris"/>
            <map value="OSIRIS_pivot_BiologicalSample.Patient_Id"/>
          </mapping>
        </element>
        <element id="Specimen.parent">
          <path value="Specimen.parent"/>
          <short value="Identifier of the parent biological sample"/>
          <definition
                      value="Unique identifier of the parent sample (barcode, text identifier). For example, an aliquot or a sample extracted from another sample (e.g. histological number)."/>
          <max value="1"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://ig-osiris.cancer.fr/ig/osiris/StructureDefinition/onco-biological-sample"/>
          </type>
          <mustSupport value="true"/>
          <mapping>
            <identity value="fhir-osiris"/>
            <map
                 value="OSIRIS_pivot_BiologicalSample.BiologicalSample_ParentExternalAccession"/>
          </mapping>
        </element>
        <element id="Specimen.collection.collected[x]">
          <path value="Specimen.collection.collected[x]"/>
          <slicing>
            <discriminator>
              <type value="type"/>
              <path value="$this"/>
            </discriminator>
            <ordered value="false"/>
            <rules value="open"/>
          </slicing>
          <min value="1"/>
        </element>
        <element id="Specimen.collection.collected[x]:collectedDateTime">
          <path value="Specimen.collection.collected[x]"/>
          <sliceName value="collectedDateTime"/>
          <short value="Collection date"/>
          <definition value="The date of sample collection."/>
          <min value="1"/>
          <max value="1"/>
          <type>
            <code value="dateTime"/>
          </type>
          <mustSupport value="true"/>
          <mapping>
            <identity value="fhir-osiris"/>
            <map
                 value="OSIRIS_pivot_BiologicalSample.BiologicalSample_CollectDate"/>
          </mapping>
        </element>
        <element id="Specimen.collection.quantity">
          <path value="Specimen.collection.quantity"/>
          <short value="Percentage of tumor cells"/>
          <definition
                      value="The percentage of tumor cells quantified in the tumor sample."/>
          <mustSupport value="true"/>
        </element>
        <element id="Specimen.collection.quantity.value">
          <path value="Specimen.collection.quantity.value"/>
          <mapping>
            <identity value="fhir-osiris"/>
            <map
                 value="OSIRIS_pivot_BiologicalSample.BiologicalSample_TumorCellularity"/>
          </mapping>
        </element>
        <element id="Specimen.collection.quantity.unit">
          <path value="Specimen.collection.quantity.unit"/>
          <patternString value="%"/>
        </element>
        <element id="Specimen.collection.quantity.code">
          <path value="Specimen.collection.quantity.code"/>
          <patternCode value="C4055283"/>
        </element>
        <element id="Specimen.collection.bodySite">
          <path value="Specimen.collection.bodySite"/>
          <short value="Topography of the tumor sample"/>
          <definition
                      value="Anatomical location of the tumor specimen according to the International Classification of Diseases for Oncology."/>
          <min value="1"/>
          <mustSupport value="true"/>
          <binding>
            <strength value="preferred"/>
            <valueSet
                      value="https://ig-osiris.cancer.fr/ig/osiris/ValueSet/Topography"/>
          </binding>
          <mapping>
            <identity value="fhir-osiris"/>
            <map
                 value="OSIRIS_pivot_BiologicalSample.BiologicalSample_TopographyCode"/>
          </mapping>
        </element>
        <element id="Specimen.condition">
          <path value="Specimen.condition"/>
          <short value="Storage method"/>
          <definition value="The storage temperature of the sample."/>
          <max value="1"/>
          <mustSupport value="true"/>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="https://ig-osiris.cancer.fr/ig/osiris/ValueSet/StorageTemperature"/>
          </binding>
          <mapping>
            <identity value="fhir-osiris"/>
            <map
                 value="OSIRIS_pivot_BiologicalSample.BiologicalSample_StorageTemperature"/>
          </mapping>
        </element>
        <element id="Specimen.condition.text">
          <path value="Specimen.condition.text"/>
          <patternString value="Storage temperature of the sample."/>
        </element>
      </differential>
    </StructureDefinition>