PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.au.base@1.0.1
    http://hl7.org.au/fhir/StructureDefinition/au-specimen
{
  "description": "Australian realm Base Specimen profile.",
  "_filename": "StructureDefinition-au-specimen.json",
  "package_name": "hl7.fhir.au.base",
  "date": "2018-10-08T00:00:00+11:00",
  "derivation": "constraint",
  "meta": {
    "lastUpdated": "2018-10-09T06:34:11.248+11:00"
  },
  "publisher": "Health Level Seven Australia (Orders and Observations WG)",
  "fhirVersion": "3.0.1",
  "name": "AUBaseSpecimen",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  }, {
    "uri": "http://hl7.org/fhir/w5",
    "name": "W5 Mapping",
    "identity": "w5"
  }, {
    "uri": "http://hl7.org/v2",
    "name": "HL7 v2 Mapping",
    "identity": "v2"
  } ],
  "abstract": false,
  "type": "Specimen",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "AU Base Specimen",
  "package_version": "1.0.1",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "dom-2",
        "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
        "xpath": "not(parent::f:contained and f:contained)",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.contained.empty()"
      }, {
        "key": "dom-1",
        "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative",
        "xpath": "not(parent::f:contained and f:text)",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.text.empty()"
      }, {
        "key": "dom-4",
        "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
        "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"
      }, {
        "key": "dom-3",
        "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource",
        "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))",
        "source": "DomainResource",
        "severity": "error",
        "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()"
      } ],
      "path": "Specimen",
      "min": 0,
      "definition": "A sample to be used for analysis.",
      "short": "Australian context specimen information",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "Role[classCode=SPEC]",
        "identity": "rim"
      }, {
        "map": "clinical.diagnostics",
        "identity": "w5"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode": "draft"
      } ],
      "max": "*",
      "id": "Specimen",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Specimen"
      }
    }, {
      "path": "Specimen.id",
      "min": 0,
      "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
      "short": "Logical id of this artifact",
      "type": [ {
        "code": "id"
      } ],
      "max": "1",
      "id": "Specimen.id",
      "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.id"
      },
      "isSummary": true
    }, {
      "path": "Specimen.meta",
      "min": 0,
      "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
      "short": "Metadata about the resource",
      "type": [ {
        "code": "Meta"
      } ],
      "max": "1",
      "id": "Specimen.meta",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.meta"
      },
      "isSummary": true
    }, {
      "path": "Specimen.implicitRules",
      "min": 0,
      "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
      "isModifier": true,
      "short": "A set of rules under which this content was created",
      "type": [ {
        "code": "uri"
      } ],
      "max": "1",
      "id": "Specimen.implicitRules",
      "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.implicitRules"
      },
      "isSummary": true
    }, {
      "path": "Specimen.language",
      "min": 0,
      "definition": "The base language in which the resource is written.",
      "short": "Language of the resource content",
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "extensible",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
          "valueReference": {
            "reference": "http://hl7.org/fhir/ValueSet/all-languages"
          }
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "Language"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean": true
        } ],
        "description": "A human language.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/languages"
        }
      },
      "max": "1",
      "id": "Specimen.language",
      "comment": "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).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Resource.language"
      }
    }, {
      "path": "Specimen.text",
      "min": 0,
      "definition": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
      "short": "Text summary of the resource, for human interpretation",
      "mapping": [ {
        "map": "Act.text?",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Narrative"
      } ],
      "alias": [ "narrative", "html", "xhtml", "display" ],
      "max": "1",
      "id": "Specimen.text",
      "condition": [ "dom-1" ],
      "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded in formation is added later.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "DomainResource.text"
      }
    }, {
      "path": "Specimen.contained",
      "min": 0,
      "definition": "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.",
      "short": "Contained, inline Resources",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Resource"
      } ],
      "alias": [ "inline resources", "anonymous resources", "contained resources" ],
      "max": "*",
      "id": "Specimen.contained",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.contained"
      }
    }, {
      "path": "Specimen.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Specimen.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.extension"
      }
    }, {
      "path": "Specimen.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Specimen.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "DomainResource.modifierExtension"
      }
    }, {
      "path": "Specimen.identifier",
      "min": 0,
      "definition": "Id for specimen.",
      "short": "External Identifier",
      "mapping": [ {
        "map": "SPM-2",
        "identity": "v2"
      }, {
        "map": ".id",
        "identity": "rim"
      }, {
        "map": "id",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "*",
      "id": "Specimen.identifier",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Specimen.identifier"
      },
      "isSummary": true
    }, {
      "path": "Specimen.accessionIdentifier",
      "min": 0,
      "definition": "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.",
      "short": "Identifier assigned by the lab",
      "mapping": [ {
        "map": "SPM-30 (v2.7+)",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=SBJ].act[classCode=ACSN, moodCode=EVN].id",
        "identity": "rim"
      }, {
        "map": "id",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "1",
      "id": "Specimen.accessionIdentifier",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.accessionIdentifier"
      },
      "isSummary": true
    }, {
      "path": "Specimen.status",
      "min": 0,
      "definition": "The availability of the specimen.",
      "isModifier": true,
      "short": "available | unavailable | unsatisfactory | entered-in-error",
      "mapping": [ {
        "map": "SPM-20",
        "identity": "v2"
      }, {
        "map": "status",
        "identity": "rim"
      }, {
        "map": "status",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "code"
      } ],
      "binding": {
        "strength": "required",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SpecimenStatus"
        } ],
        "description": "Codes providing the status/availability of a specimen.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/specimen-status"
        }
      },
      "max": "1",
      "id": "Specimen.status",
      "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.status"
      },
      "isSummary": true
    }, {
      "path": "Specimen.type",
      "min": 0,
      "definition": "The kind of material that forms the specimen.",
      "short": "Kind of material that forms the specimen",
      "mapping": [ {
        "map": "SPM-4 and possibly SPM-5",
        "identity": "v2"
      }, {
        "map": ".code",
        "identity": "rim"
      }, {
        "map": "what",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SpecimenType"
        } ],
        "description": "The type of the specimen.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/v2-0487"
        }
      },
      "max": "1",
      "id": "Specimen.type",
      "comment": "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.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.type"
      },
      "isSummary": true
    }, {
      "path": "Specimen.type.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Specimen.type.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Specimen.type.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Specimen.type.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Specimen.type.coding",
      "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "short": "Code defined by a terminology system",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Coding"
      } ],
      "max": "*",
      "id": "Specimen.type.coding",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "Specimen.type.coding",
      "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "short": "Specimen Type (SNOMED CT)",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "sliceName": "snomedSpecimenType",
      "binding": {
        "strength": "required",
        "valueSetReference": {
          "reference": "https://healthterminologies.gov.au/fhir/ValueSet/specimen-type-1"
        }
      },
      "max": "1",
      "id": "Specimen.type.coding:snomedSpecimenType",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "Specimen.type.text",
      "requirements": "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": 0,
      "definition": "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.",
      "short": "Plain text representation of the concept",
      "mapping": [ {
        "map": "C*E.9. But note many systems use C*E.2 for this",
        "identity": "v2"
      }, {
        "map": "./originalText[mediaType/code=\"text/plain\"]/data",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Specimen.type.text",
      "comment": "Very often the text is the same as a displayName of one of the codings.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CodeableConcept.text"
      },
      "isSummary": true
    }, {
      "path": "Specimen.subject",
      "requirements": "Must know the subject context.",
      "min": 1,
      "definition": "Where the specimen came from. This may be from the patient(s) or from the environment or a device.",
      "short": "Where the specimen came from. This may be from the patient(s) or from the environment or a device",
      "mapping": [ {
        "map": ".scoper  or  .scoper.playsRole",
        "identity": "rim"
      }, {
        "map": "who.focus",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Substance"
      } ],
      "max": "1",
      "id": "Specimen.subject",
      "base": {
        "max": "1",
        "min": 1,
        "path": "Specimen.subject"
      },
      "isSummary": true
    }, {
      "path": "Specimen.receivedTime",
      "min": 0,
      "definition": "Time when specimen was received for processing or testing.",
      "short": "The time when specimen was received for processing",
      "mapping": [ {
        "map": "SPM-18",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=SBJ].act[code=SPCREC, moodCode=EVN].effectiveTime",
        "identity": "rim"
      }, {
        "map": "when.done",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "dateTime"
      } ],
      "max": "1",
      "id": "Specimen.receivedTime",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.receivedTime"
      },
      "isSummary": true
    }, {
      "path": "Specimen.parent",
      "min": 0,
      "definition": "Reference to the parent (source) specimen which is used when the specimen was either derived from or a component of another specimen.",
      "short": "Specimen from which this specimen originated",
      "mapping": [ {
        "map": ".scoper (if parent) .player.scopesRole[classCode=SPEC].player (if child)",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-specimen"
      } ],
      "max": "*",
      "id": "Specimen.parent",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Specimen.parent"
      }
    }, {
      "path": "Specimen.request",
      "min": 0,
      "definition": "Details concerning a test or procedure request that required a specimen to be collected.",
      "short": "Why the specimen was collected",
      "mapping": [ {
        "map": "ORC? OBR-2/3?",
        "identity": "v2"
      }, {
        "map": "outboundRelationship[typeCode=FLFS].target",
        "identity": "rim"
      }, {
        "map": "why",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
      } ],
      "max": "*",
      "id": "Specimen.request",
      "comment": "The request may be explicit or implied such with a ProcedureRequest that requires a blood draw.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Specimen.request"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "Specimen.collection",
      "min": 0,
      "definition": "Details concerning the specimen collection.",
      "short": "Collection details",
      "mapping": [ {
        "map": "SPM-14",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=SBJ].act[classCode=SPECCOLLECT, moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "1",
      "id": "Specimen.collection",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.collection"
      }
    }, {
      "path": "Specimen.collection.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Specimen.collection.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Specimen.collection.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Specimen.collection.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Specimen.collection.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Specimen.collection.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "Specimen.collection.collector",
      "min": 0,
      "definition": "Person who collected the specimen.",
      "short": "Who collected the specimen",
      "mapping": [ {
        "map": "PRT",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=PFM].role",
        "identity": "rim"
      }, {
        "map": "who.actor",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
      } ],
      "max": "1",
      "id": "Specimen.collection.collector",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.collection.collector"
      },
      "isSummary": true
    }, {
      "path": "Specimen.collection.collected[x]",
      "min": 0,
      "definition": "Time when specimen was collected from subject - the physiologically relevant time.",
      "short": "Collection time",
      "mapping": [ {
        "map": "SPM-17",
        "identity": "v2"
      }, {
        "map": ".effectiveTime",
        "identity": "rim"
      }, {
        "map": "when.init",
        "identity": "w5"
      } ],
      "type": [ {
        "code": "dateTime"
      }, {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Specimen.collection.collected[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.collection.collected[x]"
      },
      "isSummary": true
    }, {
      "path": "Specimen.collection.quantity",
      "min": 0,
      "definition": "The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample.",
      "short": "The quantity of specimen collected",
      "mapping": [ {
        "map": "SPM-12",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=SBJ].role[classCode=SPEC].player.quantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "max": "1",
      "id": "Specimen.collection.quantity",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.collection.quantity"
      }
    }, {
      "path": "Specimen.collection.method",
      "min": 0,
      "definition": "A coded value specifying the technique that is used to perform the procedure.",
      "short": "Technique used to perform collection",
      "mapping": [ {
        "map": "SPM-7",
        "identity": "v2"
      }, {
        "map": ".methodCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SpecimenCollectionMethod"
        } ],
        "description": "The  technique that is used to perform the procedure",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/specimen-collection-method"
        }
      },
      "max": "1",
      "id": "Specimen.collection.method",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.collection.method"
      }
    }, {
      "path": "Specimen.collection.method.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Specimen.collection.method.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Specimen.collection.method.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Specimen.collection.method.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Specimen.collection.method.coding",
      "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "short": "Code defined by a terminology system",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Coding"
      } ],
      "max": "*",
      "id": "Specimen.collection.method.coding",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "Specimen.collection.method.coding",
      "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "short": "Specimen Collection Procedure (SNOMED CT)",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "sliceName": "snomedSpecimenCollectionProcedure",
      "binding": {
        "strength": "required",
        "description": "SNOMED CT Specimen Collection Procedure",
        "valueSetReference": {
          "reference": "https://healthterminologies.gov.au/fhir/ValueSet/specimen-collection-procedure-1"
        }
      },
      "max": "1",
      "id": "Specimen.collection.method.coding:snomedSpecimenCollectionProcedure",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "Specimen.collection.method.text",
      "requirements": "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": 0,
      "definition": "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.",
      "short": "Plain text representation of the concept",
      "mapping": [ {
        "map": "C*E.9. But note many systems use C*E.2 for this",
        "identity": "v2"
      }, {
        "map": "./originalText[mediaType/code=\"text/plain\"]/data",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Specimen.collection.method.text",
      "comment": "Very often the text is the same as a displayName of one of the codings.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CodeableConcept.text"
      },
      "isSummary": true
    }, {
      "path": "Specimen.collection.bodySite",
      "min": 0,
      "definition": "Anatomical location from which the specimen was collected (if subject is a patient). This is the target site.  This element is not used for environmental specimens.",
      "short": "Anatomical collection site",
      "mapping": [ {
        "map": "SPM-8 and SPM-9",
        "identity": "v2"
      }, {
        "map": ".targetSiteCode",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "BodySite"
        } ],
        "description": "Codes describing anatomical locations. May include laterality.",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/body-site"
        }
      },
      "max": "1",
      "id": "Specimen.collection.bodySite",
      "comment": "If the use case requires  BodySite to be handled as a separate resource instead of an inline coded element (e.g. to identify and track separately)  then use the standard extension [body-site-instance](extension-body-site-instance.html).",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.collection.bodySite"
      }
    }, {
      "path": "Specimen.collection.bodySite.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Specimen.collection.bodySite.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Specimen.collection.bodySite.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Specimen.collection.bodySite.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Specimen.collection.bodySite.coding",
      "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "short": "Code defined by a terminology system",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Coding"
      } ],
      "max": "*",
      "id": "Specimen.collection.bodySite.coding",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "Specimen.collection.bodySite.coding",
      "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "short": "Body Site (SNOMED CT)",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "sliceName": "snomedBodySite",
      "binding": {
        "strength": "required",
        "description": "SNOMED CT Body Site",
        "valueSetReference": {
          "reference": "https://healthterminologies.gov.au/fhir/ValueSet/body-site-1"
        }
      },
      "max": "1",
      "id": "Specimen.collection.bodySite.coding:snomedBodySite",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "Specimen.collection.bodySite.text",
      "requirements": "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": 0,
      "definition": "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.",
      "short": "Plain text representation of the concept",
      "mapping": [ {
        "map": "C*E.9. But note many systems use C*E.2 for this",
        "identity": "v2"
      }, {
        "map": "./originalText[mediaType/code=\"text/plain\"]/data",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Specimen.collection.bodySite.text",
      "comment": "Very often the text is the same as a displayName of one of the codings.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CodeableConcept.text"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "Specimen.processing",
      "min": 0,
      "definition": "Details concerning processing and processing steps for the specimen.",
      "short": "Processing and processing step details",
      "mapping": [ {
        "map": ".participation[typeCode=SBJ].act[code=SPCTRT, moodCode=EVN]",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Specimen.processing",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Specimen.processing"
      }
    }, {
      "path": "Specimen.processing.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Specimen.processing.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Specimen.processing.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Specimen.processing.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Specimen.processing.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Specimen.processing.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "Specimen.processing.description",
      "min": 0,
      "definition": "Textual description of procedure.",
      "short": "Textual description of procedure",
      "mapping": [ {
        "map": ".text",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Specimen.processing.description",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.processing.description"
      }
    }, {
      "path": "Specimen.processing.procedure",
      "min": 0,
      "definition": "A coded value specifying the procedure used to process the specimen.",
      "short": "Indicates the treatment step  applied to the specimen",
      "mapping": [ {
        "map": ".code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SpecimenProcessingProcedure"
        } ],
        "description": "Type indicating the technique used to process the specimen",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/specimen-processing-procedure"
        }
      },
      "max": "1",
      "id": "Specimen.processing.procedure",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.processing.procedure"
      }
    }, {
      "path": "Specimen.processing.additive",
      "min": 0,
      "definition": "Material used in the processing step.",
      "short": "Material used in the processing step",
      "mapping": [ {
        "map": "SPM-6",
        "identity": "v2"
      }, {
        "map": ".participation[typeCode=CSM].role[classCode=ADTV].code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Substance"
      } ],
      "max": "*",
      "id": "Specimen.processing.additive",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Specimen.processing.additive"
      }
    }, {
      "path": "Specimen.processing.time[x]",
      "min": 0,
      "definition": "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.",
      "short": "Date and time of specimen processing",
      "mapping": [ {
        "map": ".effectiveTime",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "dateTime"
      }, {
        "code": "Period"
      } ],
      "max": "1",
      "id": "Specimen.processing.time[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.processing.time[x]"
      }
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "Element",
        "severity": "error",
        "expression": "hasValue() | (children().count() > id.count())"
      } ],
      "path": "Specimen.container",
      "min": 0,
      "definition": "The container holding the specimen.  The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.",
      "short": "Direct container of specimen (tube/slide, etc.)",
      "mapping": [ {
        "map": ".player.scopingRole[classCode=CONT].scoper",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "BackboneElement"
      } ],
      "max": "*",
      "id": "Specimen.container",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Specimen.container"
      }
    }, {
      "path": "Specimen.container.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Specimen.container.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Specimen.container.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Specimen.container.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Specimen.container.modifierExtension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
      "isModifier": true,
      "short": "Extensions that cannot be ignored",
      "mapping": [ {
        "map": "N/A",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content", "modifiers" ],
      "max": "*",
      "id": "Specimen.container.modifierExtension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "BackboneElement.modifierExtension"
      },
      "isSummary": true
    }, {
      "path": "Specimen.container.identifier",
      "min": 0,
      "definition": "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.",
      "short": "Id for the container",
      "mapping": [ {
        "map": "SAC-3",
        "identity": "v2"
      }, {
        "map": ".id",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Identifier"
      } ],
      "max": "*",
      "id": "Specimen.container.identifier",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Specimen.container.identifier"
      },
      "isSummary": true
    }, {
      "path": "Specimen.container.description",
      "min": 0,
      "definition": "Textual description of the container.",
      "short": "Textual description of the container",
      "mapping": [ {
        "map": ".desc",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "max": "1",
      "id": "Specimen.container.description",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.container.description"
      }
    }, {
      "path": "Specimen.container.type",
      "min": 0,
      "definition": "The type of container associated with the specimen (e.g. slide, aliquot, etc.).",
      "short": "Kind of container directly associated with specimen",
      "mapping": [ {
        "map": "SPM-27",
        "identity": "v2"
      }, {
        "map": ".code",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SpecimenContainerType"
        } ],
        "description": "Type of specimen container",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/specimen-container-type"
        }
      },
      "max": "1",
      "id": "Specimen.container.type",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.container.type"
      }
    }, {
      "path": "Specimen.container.type.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "short": "xml:id (or equivalent in JSON)",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Specimen.container.type.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      }
    }, {
      "path": "Specimen.container.type.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "short": "Additional Content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Specimen.container.type.extension",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      }
    }, {
      "path": "Specimen.container.type.coding",
      "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "short": "Code defined by a terminology system",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Coding"
      } ],
      "max": "*",
      "id": "Specimen.container.type.coding",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "Specimen.container.type.coding",
      "requirements": "Allows for translations and alternate encodings within a code system.  Also supports communication of the same instance to systems requiring different encodings.",
      "min": 0,
      "definition": "A reference to a code defined by a terminology system.",
      "short": "Specimen Container Type (SNOMED CT)",
      "mapping": [ {
        "map": "C*E.1-8, C*E.10-22",
        "identity": "v2"
      }, {
        "map": "union(., ./translation)",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "Coding"
      } ],
      "sliceName": "snomedSpecimenContainerType",
      "binding": {
        "strength": "required",
        "description": "SNOMED CT Specimen Container Type",
        "valueSetReference": {
          "reference": "https://healthterminologies.gov.au/fhir/ValueSet/specimen-container-type-1"
        }
      },
      "max": "1",
      "id": "Specimen.container.type.coding:snomedSpecimenContainerType",
      "comment": "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.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CodeableConcept.coding"
      },
      "isSummary": true
    }, {
      "path": "Specimen.container.type.text",
      "requirements": "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": 0,
      "definition": "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.",
      "short": "Plain text representation of the concept",
      "mapping": [ {
        "map": "C*E.9. But note many systems use C*E.2 for this",
        "identity": "v2"
      }, {
        "map": "./originalText[mediaType/code=\"text/plain\"]/data",
        "identity": "rim"
      }, {
        "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText",
        "identity": "orim"
      } ],
      "type": [ {
        "code": "string"
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
        "valueBoolean": true
      } ],
      "max": "1",
      "id": "Specimen.container.type.text",
      "comment": "Very often the text is the same as a displayName of one of the codings.",
      "base": {
        "max": "1",
        "min": 0,
        "path": "CodeableConcept.text"
      },
      "isSummary": true
    }, {
      "path": "Specimen.container.capacity",
      "min": 0,
      "definition": "The capacity (volume or other measure) the container may contain.",
      "short": "Container volume or size",
      "mapping": [ {
        "map": "one of: SAC 16, SAC17 and SAC 20, or SAC 21 and SAC 20",
        "identity": "v2"
      }, {
        "map": ".quantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "max": "1",
      "id": "Specimen.container.capacity",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.container.capacity"
      }
    }, {
      "path": "Specimen.container.specimenQuantity",
      "min": 0,
      "definition": "The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type.",
      "short": "Quantity of specimen within container",
      "mapping": [ {
        "map": "SAC-23 (value) SAC-24 (units",
        "identity": "v2"
      }, {
        "map": ".playedRole[classCode=CONT].quantity",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
      } ],
      "max": "1",
      "id": "Specimen.container.specimenQuantity",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.container.specimenQuantity"
      }
    }, {
      "path": "Specimen.container.additive[x]",
      "min": 0,
      "definition": "Introduced substance to preserve, maintain or enhance the specimen. Examples: Formalin, Citrate, EDTA.",
      "short": "Additive associated with container",
      "mapping": [ {
        "map": "SAC-27",
        "identity": "v2"
      }, {
        "map": ".scopesRole[classCode=ADTV].player",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "CodeableConcept"
      }, {
        "code": "Reference",
        "targetProfile": "http://hl7.org/fhir/StructureDefinition/Substance"
      } ],
      "binding": {
        "strength": "example",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString": "SpecimenContainerAdditive"
        } ],
        "description": "Substance added to specimen container",
        "valueSetReference": {
          "reference": "http://hl7.org/fhir/ValueSet/v2-0371"
        }
      },
      "max": "1",
      "id": "Specimen.container.additive[x]",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Specimen.container.additive[x]"
      }
    }, {
      "path": "Specimen.note",
      "min": 0,
      "definition": "To communicate any details or issues about the specimen or during the specimen collection. (for example: broken vial, sent with patient, frozen).",
      "short": "Comments",
      "mapping": [ {
        "map": "OBX",
        "identity": "v2"
      }, {
        "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Annotation"
      } ],
      "max": "*",
      "id": "Specimen.note",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Specimen.note"
      }
    } ]
  },
  "status": "draft",
  "id": "60f5d69a-70ac-47da-82c7-4cba2555e641",
  "kind": "resource",
  "url": "http://hl7.org.au/fhir/StructureDefinition/au-specimen",
  "version": "0.1",
  "differential": {
    "element": [ {
      "id": "Specimen",
      "path": "Specimen",
      "short": "Australian context specimen information",
      "extension": [ {
        "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
        "valueCode": "draft"
      } ]
    }, {
      "id": "Specimen.type",
      "path": "Specimen.type"
    }, {
      "id": "Specimen.type.coding",
      "path": "Specimen.type.coding",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      }
    }, {
      "id": "Specimen.type.coding:snomedSpecimenType",
      "max": "1",
      "path": "Specimen.type.coding",
      "short": "Specimen Type (SNOMED CT)",
      "binding": {
        "strength": "required",
        "valueSetReference": {
          "reference": "https://healthterminologies.gov.au/fhir/ValueSet/specimen-type-1"
        }
      },
      "sliceName": "snomedSpecimenType"
    }, {
      "id": "Specimen.parent",
      "path": "Specimen.parent",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://hl7.org.au/fhir/StructureDefinition/au-specimen"
      } ]
    }, {
      "id": "Specimen.collection",
      "path": "Specimen.collection"
    }, {
      "id": "Specimen.collection.method",
      "path": "Specimen.collection.method"
    }, {
      "id": "Specimen.collection.method.coding",
      "path": "Specimen.collection.method.coding",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      }
    }, {
      "id": "Specimen.collection.method.coding:snomedSpecimenCollectionProcedure",
      "max": "1",
      "path": "Specimen.collection.method.coding",
      "short": "Specimen Collection Procedure (SNOMED CT)",
      "binding": {
        "strength": "required",
        "description": "SNOMED CT Specimen Collection Procedure",
        "valueSetReference": {
          "reference": "https://healthterminologies.gov.au/fhir/ValueSet/specimen-collection-procedure-1"
        }
      },
      "sliceName": "snomedSpecimenCollectionProcedure"
    }, {
      "id": "Specimen.collection.bodySite",
      "path": "Specimen.collection.bodySite"
    }, {
      "id": "Specimen.collection.bodySite.coding",
      "path": "Specimen.collection.bodySite.coding",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      }
    }, {
      "id": "Specimen.collection.bodySite.coding:snomedBodySite",
      "max": "1",
      "path": "Specimen.collection.bodySite.coding",
      "short": "Body Site (SNOMED CT)",
      "binding": {
        "strength": "required",
        "description": "SNOMED CT Body Site",
        "valueSetReference": {
          "reference": "https://healthterminologies.gov.au/fhir/ValueSet/body-site-1"
        }
      },
      "sliceName": "snomedBodySite"
    }, {
      "id": "Specimen.container",
      "path": "Specimen.container"
    }, {
      "id": "Specimen.container.type",
      "path": "Specimen.container.type"
    }, {
      "id": "Specimen.container.type.coding",
      "path": "Specimen.container.type.coding",
      "slicing": {
        "rules": "open",
        "ordered": false,
        "discriminator": [ {
          "path": "system",
          "type": "value"
        } ]
      }
    }, {
      "id": "Specimen.container.type.coding:snomedSpecimenContainerType",
      "max": "1",
      "path": "Specimen.container.type.coding",
      "short": "Specimen Container Type (SNOMED CT)",
      "binding": {
        "strength": "required",
        "description": "SNOMED CT Specimen Container Type",
        "valueSetReference": {
          "reference": "https://healthterminologies.gov.au/fhir/ValueSet/specimen-container-type-1"
        }
      },
      "sliceName": "snomedSpecimenContainerType"
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "use": "work",
      "value": "http://hl7.org.au/fhir",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Specimen"
}