PackagesCanonicalsLogsProblems
    Packages
    ca.on.oh-olis@2.0.0-0.0.1
    http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Specimen
description: A sample to be used for analysis.
package_name: ca.on.oh-olis
derivation: constraint
name: Specimen
type: Specimen
elements:
  request:
    type: Reference
    mustSupport: true
    refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-ServiceRequest']
    index: 12
    elements:
      reference: {mustSupport: true, index: 13}
    required: [reference]
  receivedTime: {mustSupport: true, index: 11}
  meta:
    mustSupport: true
    index: 1
    elements:
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Specimen|2.0.0'}
        index: 2
    required: [profile]
  type:
    binding: {strength: required, valueSet: 'http://ehealthontario.ca/fhir/ValueSet/ca-on-lab-specimen-source'}
    mustSupport: true
    index: 3
    elements:
      coding:
        mustSupport: true
        index: 4
        elements:
          system:
            pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/CodeSystem/ca-on-lab-specimen-codes'}
            mustSupport: true
            index: 5
          code: {mustSupport: true, index: 6}
          display: {mustSupport: true, index: 7}
        required: [display, system, code]
      text: {mustSupport: false, index: 8}
  note:
    short: any additional comments related to the specimen
    mustSupport: true
    index: 40
    elements:
      text: {mustSupport: true, index: 41}
  id: {mustSupport: true, index: 0}
  container:
    mustSupport: true
    index: 26
    extensions:
      NumberOfContainers:
        url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-container-sample-num
        type: Extension
        index: 28
        elements:
          url:
            pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-container-sample-num'}
            index: 29
    elements:
      extension:
        index: 27
        slicing:
          rules: open
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            NumberOfContainers:
              match: {url: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-container-sample-num'}
              schema:
                type: Extension
                url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-container-sample-num
                index: 28
                elements:
                  url:
                    pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-ext-container-sample-num'}
                    index: 29
      identifier:
        mustSupport: true
        array: true
        max: 3
        index: 30
        elements:
          type:
            mustSupport: true
            index: 31
            elements:
              coding:
                mustSupport: true
                index: 32
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                    mustSupport: true
                    index: 33
                  code:
                    pattern: {type: Code, value: SID}
                    mustSupport: true
                    index: 34
                  display:
                    pattern: {type: String, value: Specimen ID}
                    mustSupport: true
                    index: 35
                required: [display, system, code]
            required: [coding]
          system: {mustSupport: true, index: 36}
          value: {mustSupport: true, index: 37}
          assigner:
            type: Reference
            mustSupport: true
            refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Organization']
            index: 38
            elements:
              reference: {mustSupport: true, index: 39}
            required: [reference]
        required: [value, type]
  collection:
    mustSupport: true
    index: 14
    elements:
      collector:
        type: Reference
        mustSupport: true
        refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Practitioner', 'http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-PractitionerRole']
        index: 15
        elements:
          reference: {short: Resource id of the reference to the specimen collector, mustSupport: true, index: 16}
        required: [reference]
      collected:
        mustSupport: true
        choices: []
        index: 18
      quantity:
        mustSupport: true
        index: 19
        elements:
          value: {mustSupport: true, index: 20}
          unit: {mustSupport: true, index: 21}
        required: [value, unit]
      bodySite:
        mustSupport: true
        index: 22
        elements:
          coding:
            index: 23
            elements:
              system:
                pattern: {type: Uri, value: 'http://ehealthontario.ca/fhir/NamingSystem/lab/specimen-source'}
                index: 24
          text: {mustSupport: true, index: 25}
        required: [text]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Patient']
    index: 9
    elements:
      reference: {mustSupport: true, index: 10}
    required: [reference]
package_version: 2.0.0-0.0.1
class: profile
kind: resource
url: http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-Specimen
base: http://hl7.org/fhir/StructureDefinition/Specimen
version: 2.0.0
required: [id, request, meta]