ee-vris-supply-delivery
type: StructureDefinition
node role: treeRoot
id:
  v: ee-vris-supply-delivery
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition ee-vris-supply-delivery Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> SupplyDelivery 0..* SupplyDelivery Delivery of bulk Supplies #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:suppliedPackage 0..1 Reference(PackagedProductDefinition: EE VRIS Package) (ee KUI on vaja viidata pakendile. Äkki saaks identifikaatorite järgi viidata? Või alati on üks BDP 1 pakend? Arutelukoht!) URL: https://fhir.ee/vris/StructureDefinition/ee-vris-supplied-package #xD; identifier 0..* Identifier (ee Liikumise identifikaator. Selle järgi saab jälgida materjali. Varasemad materjali liikumised tulevad selle kaudu.) #xD; basedOn 0..0 Fulfills plan, proposal or order #xD; partOf 0..0 Part of referenced event #xD; status 0..1 code (ee Võtan vastu checkbox? |in-progress| = pole veel vastu võetud; |completed| = vastu võetud.) #xD; patient 0..1 Reference(Patient) (ee KAS seda on vaja? Liigub ainult materjal ja materjali küljes on viide KELLELE) #xD; type 0..1 CodeableConcept Always biologicallyderivedproduct Required Pattern: At least the following #xD; coding 1..* Coding Code defined by a terminology system Fixed Value: (Complex) #xD; code 1..1 code Symbol in syntax defined by the system Fixed Value: biologicallyderivedproduct #xD; suppliedItem 1..* BackboneElement (ee MIDA liigutatakse. Bioloogiline materjal. KAS on vaja viidet ka pakendile või piisab BDP viitest?) #xD; quantity 0..1 SimpleQuantity(5.0.0) (ee Kogus, dooside arv, mida liigutatakse.) #xD; Slices for item[x] 1..1 CodeableConcept, Reference(Medication | Substance | Device | BiologicallyDerivedProduct | NutritionProduct | InventoryItem) Medication, Substance, Device or Biologically Derived Product supplied Slice: Unordered, Open by type:$this #xD; item[x]:itemReference 0..1 Reference(BiologicallyDerivedProduct: EE VRIS Embryo | BiologicallyDerivedProduct: EE VRIS Sperm |…
url:
  v: https://fhir.ee/vris/StructureDefinition/ee-vris-supply-delivery
version:
  v: 0.1.0
name:
  v: EEVRISSupplyDelivery
title:
  v: SupplyDelivery: EE VRIS Biological material movement
status:
  v: draft
date:
  v: 2026-07-16T13:10:38+00:00
publisher:
  v: TEHIK
contact:
  name:
    v: TEHIK
  telecom:
    system:
      v: url
    value:
      v: https://www.tehik.ee
  telecom:
    system:
      v: email
contact:
  name:
    v: TEHIK Andmekorraldus
  telecom:
    system:
      v: email
    use:
      v: work
description:
  v: Use this profile for describing when the biological material (sperm, oocyte, embryo) is transferred from one place to another. (ee Eestis annetatud bioloogiline materjali (sperma, munarakud, embrüo) liikumine TTO-sse/sealt välja
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
    code:
      v: EE
    display:
      v: Estonia
fhir version:
  v: 5.0.0
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
  name:
    v: HL7 V2 Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: SupplyDelivery
base definition:
  v: http://hl7.org/fhir/StructureDefinition/SupplyDelivery
  link: http://hl7.org/fhir/StructureDefinition/SupplyDelivery
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 5.0.0
  element:
    id:
      v: SupplyDelivery
    path:
      v: SupplyDelivery
    short:
      v: Delivery of bulk Supplies
    definition:
      v: Record of delivery of what is supplied.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: SupplyDelivery
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: 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:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      extension:
        value: boolean
      extension:
        value: markdown
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    must support:
      v: false
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity, Role, or Act,Supply[moodCode=RQO]
    mapping:
      identity:
        v: workflow
      map:
        v: Event
    mapping:
      identity:
        v: w5
      map:
        v: workflow.order

boolean
v: true

markdown
v: 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.

id:
  v: SupplyDelivery.id
path:
  v: SupplyDelivery.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: SupplyDelivery.meta
path:
  v: SupplyDelivery.meta
short:
  v: Metadata about the resource
definition:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: SupplyDelivery.implicitRules
path:
  v: SupplyDelivery.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: 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:
  v: 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 its narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation
is summary:
  v: true

id:
  v: SupplyDelivery.language
path:
  v: SupplyDelivery.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: 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:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: Language
  strength:
    v: required
  description:
    v: IETF language tag for a human language
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages|5.0.0
    link: 5.0
    link: .0
  additional:
    purpose:
      v: starter
    value set:
      v: http://hl7.org/fhir/ValueSet/languages|5.0.0
      link: 5.0
      link: .0

id:
  v: SupplyDelivery.text
path:
  v: SupplyDelivery.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: 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 "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have a 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 information is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
condition:
  v: dom-6
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: SupplyDelivery.contained
path:
  v: SupplyDelivery.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.
comment:
  v: 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:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
condition:
  v: dom-2
condition:
  v: dom-4
condition:
  v: dom-3
condition:
  v: dom-5
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SupplyDelivery.extension
path:
  v: SupplyDelivery.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false

id:
  v: SupplyDelivery.extension:suppliedPackage
path:
  v: SupplyDelivery.extension
slice name:
  v: suppliedPackage
short:
  v: (ee KUI on vaja viidata pakendile. Äkki saaks identifikaatorite järgi viidata? Või alati on üks BDP 1 pakend? Arutelukoht!)
definition:
  v: Pakendi viide
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: https://fhir.ee/vris/StructureDefinition/ee-vris-supplied-package
    link: https://fhir.ee/vris/StructureDefinition/ee-vris-supplied-package
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false

id:
  v: SupplyDelivery.modifierExtension
path:
  v: SupplyDelivery.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: 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 managable, 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:
  v: 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:
  v: 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/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SupplyDelivery.identifier
path:
  v: SupplyDelivery.identifier
short:
  v: (ee Liikumise identifikaator. Selle järgi saab jälgida materjali. Varasemad materjali liikumised tulevad selle kaudu.)
definition:
  v: Identifier for the supply delivery event that is used to identify it across multiple disparate systems.
comment:
  v: This identifier is typically assigned by the supplier, and may be used to reference the delivery when exchanging information about it with other systems.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SupplyDelivery.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.identifier
mapping:
  identity:
    v: rim
  map:
    v: .id

id:
  v: SupplyDelivery.basedOn
path:
  v: SupplyDelivery.basedOn
short:
  v: Fulfills plan, proposal or order
definition:
  v: A plan, proposal or order that is fulfilled in whole or in part by this event.
requirements:
  v: Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: SupplyDelivery.basedOn
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/SupplyRequest|5.0.0
    link: 5.0
    link: .0
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.basedOn
mapping:
  identity:
    v: v2
  map:
    v: ORC in proximity to EVN segment
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=FLFS].target

id:
  v: SupplyDelivery.partOf
path:
  v: SupplyDelivery.partOf
short:
  v: Part of referenced event
definition:
  v: A larger event of which this particular event is a component or step.
comment:
  v: Not to be used to link an event to an Encounter - use Event.context for that. [The allowed reference resources may be adjusted as appropriate for the event resource].
requirements:
  v: E.g. Drug administration as part of a procedure, procedure as part of observation, etc.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: SupplyDelivery.partOf
  min:
    v: 0
  max:
    v: *
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy
    value: boolean
      v: true
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/SupplyDelivery|5.0.0
    link: 5.0
    link: .0
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Contract|5.0.0
    link: 5.0
    link: .0
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.partOf
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .inboundRelationship[typeCode=COMP].source[moodCode=EVN]

id:
  v: SupplyDelivery.status
path:
  v: SupplyDelivery.status
short:
  v: (ee Võtan vastu checkbox? |in-progress| = pole veel vastu võetud; |completed| = vastu võetud.)
definition:
  v: A code specifying the state of the dispense event.
comment:
  v: This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SupplyDelivery.status
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: 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
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: SupplyDeliveryStatus
  strength:
    v: required
  description:
    v: Status of the supply delivery.
  value set:
    v: http://hl7.org/fhir/ValueSet/supplydelivery-status|5.0.0
    link: 5.0
    link: .0
mapping:
  identity:
    v: workflow
  map:
    v: Event.status
mapping:
  identity:
    v: rim
  map:
    v: .statusCode, also existence of fulfillment events

id:
  v: SupplyDelivery.patient
path:
  v: SupplyDelivery.patient
short:
  v: (ee KAS seda on vaja? Liigub ainult materjal ja materjali küljes on viide KELLELE)
definition:
  v: A link to a resource representing the person whom the delivered item is for.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SupplyDelivery.patient
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient|5.0.0
    link: 5.0
    link: .0
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.subject
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=SBJ].role

id:
  v: SupplyDelivery.type
path:
  v: SupplyDelivery.type
short:
  v: Always biologicallyderivedproduct
definition:
  v: Indicates the type of supply being provided. Examples include: Medication, Device, Biologically Derived Product.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SupplyDelivery.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
pattern: CodeableConcept
  coding:
    code:
      v: biologicallyderivedproduct
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: SupplyDeliverySupplyItemType
  strength:
    v: required
  description:
    v: The type of supply dispense.
  value set:
    v: http://hl7.org/fhir/ValueSet/supplydelivery-supplyitemtype|5.0.0
    link: 5.0
    link: .0
mapping:
  identity:
    v: workflow
  map:
    v: Event.code
mapping:
  identity:
    v: rim
  map:
    v: .code

id:
  v: SupplyDelivery.suppliedItem
path:
  v: SupplyDelivery.suppliedItem
short:
  v: (ee MIDA liigutatakse. Bioloogiline materjal. KAS on vaja viidet ka pakendile või piisab BDP viitest?)
definition:
  v: The item that is being delivered or has been supplied.
min:
  v: 1
max:
  v: *
base:
  path:
    v: SupplyDelivery.suppliedItem
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRD].role

id:
  v: SupplyDelivery.suppliedItem.id
path:
  v: SupplyDelivery.suppliedItem.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SupplyDelivery.suppliedItem.extension
path:
  v: SupplyDelivery.suppliedItem.extension
short:
  v: Additional content defined by implementations
definition:
  v: 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 managable, 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SupplyDelivery.suppliedItem.modifierExtension
path:
  v: SupplyDelivery.suppliedItem.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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 managable, 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:
  v: 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:
  v: 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/R5/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SupplyDelivery.suppliedItem.quantity
path:
  v: SupplyDelivery.suppliedItem.quantity
short:
  v: (ee Kogus, dooside arv, mida liigutatakse.)
definition:
  v: The amount of the item that has been supplied. Unit of measure may be included.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SupplyDelivery.suppliedItem.quantity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|5.0.0
    link: 5.0
    link: .0
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .quantity

id:
  v: SupplyDelivery.suppliedItem.item[x]
path:
  v: SupplyDelivery.suppliedItem.item[x]
slicing:
  discriminator:
    type:
      v: type
    path:
      v: $this
  ordered:
    v: false
  rules:
    v: open
short:
  v: Medication, Substance, Device or Biologically Derived Product supplied
definition:
  v: Identifies the medication, substance, device or biologically derived product being supplied. This is either a link to a resource representing the details of the item or a code that identifies the item from a known list.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: SupplyDelivery.suppliedItem.item[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Medication|5.0.0
    link: 5.0
    link: .0
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Substance|5.0.0
    link: 5.0
    link: .0
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Device|5.0.0
    link: 5.0
    link: .0
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProduct|5.0.0
    link: 5.0
    link: .0
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/NutritionProduct|5.0.0
    link: 5.0
    link: .0
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/InventoryItem|5.0.0
    link: 5.0
    link: .0
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: SupplyDeliverySupplyItemType
  strength:
    v: example
  description:
    v: The item that was delivered.
  value set:
    v: http://hl7.org/fhir/ValueSet/supplydelivery-supplyitemtype|5.0.0
    link: 5.0
    link: .0
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRD].role

id:
  v: SupplyDelivery.suppliedItem.item[x]:itemReference
path:
  v: SupplyDelivery.suppliedItem.item[x]
slice name:
  v: itemReference
short:
  v: Medication, Substance, Device or Biologically Derived Product supplied
definition:
  v: Identifies the medication, substance, device or biologically derived product being supplied. This is either a link to a resource representing the details of the item or a code that identifies the item from a known list.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: SupplyDelivery.suppliedItem.item[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: https://fhir.ee/vris/StructureDefinition/ee-vris-embryo
    link: https://fhir.ee/vris/StructureDefinition/ee-vris-embryo
  target profile:
    v: https://fhir.ee/vris/StructureDefinition/ee-vris-sperm
    link: https://fhir.ee/vris/StructureDefinition/ee-vris-sperm
  target profile:
    v: https://fhir.ee/vris/StructureDefinition/ee-vris-oocyte
    link: https://fhir.ee/vris/StructureDefinition/ee-vris-oocyte
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PRD].role

id:
  v: SupplyDelivery.occurrence[x]
path:
  v: SupplyDelivery.occurrence[x]
short:
  v: (ee Üle andmise/vastu võtmise kuupäev. AEG, millal sündmus aset leiab)
definition:
  v: The date or time(s) the activity occurred.
comment:
  v: [The list of types may be constrained as appropriate for the type of event].
min:
  v: 1
max:
  v: 1
base:
  path:
    v: SupplyDelivery.occurrence[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
type:
  code:
    v: Period
type:
  code:
    v: Timing
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.occurrence[x]
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.done[x]
mapping:
  identity:
    v: v2
  map:
    v: Varies by domain
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: SupplyDelivery.supplier
path:
  v: SupplyDelivery.supplier
short:
  v: (ee PÄRITOLU. KES saadab. Viide SPD Organizationile, mille alt tuleb ka aadress ning riik.)
definition:
  v: The individual or organization responsible for supplying the delivery.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: SupplyDelivery.supplier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner|5.0.0
    link: 5.0
    link: .0
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole|5.0.0
    link: 5.0
    link: .0
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization|5.0.0
    link: 5.0
    link: .0
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.performer
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=PFM].role

id:
  v: SupplyDelivery.supplier.id
path:
  v: SupplyDelivery.supplier.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SupplyDelivery.supplier.extension
path:
  v: SupplyDelivery.supplier.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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 managable, 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SupplyDelivery.supplier.reference
path:
  v: SupplyDelivery.supplier.reference
short:
  v: (ee VÕI referents SPD Organizationile????)
definition:
  v: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
comment:
  v: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ref-2
condition:
  v: ref-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SupplyDelivery.supplier.type
path:
  v: SupplyDelivery.supplier.type
short:
  v: Type the reference refers to (e.g. "Patient") - must be a resource in resources
definition:
  v: The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).
comment:
  v: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a known RESTful URL) or by resolving the target of the reference.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: FHIRResourceTypeExt
  strength:
    v: extensible
  description:
    v: Aa resource (or, for logical models, the URI of the logical model).
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types|5.0.0
    link: 5.0
    link: .0
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SupplyDelivery.supplier.identifier
path:
  v: SupplyDelivery.supplier.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any). This element only allows for a single identifier. In the case where additional identifers are required, use the [http://hl7.org/fhir/StructureDefinition/additionalIdentifier](http://hl7.org/fhir/extensions/StructureDefinition-additionalIdentifier.html) extension.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
condition:
  v: ref-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: SupplyDelivery.supplier.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value: boolean
    v: true
path:
  v: SupplyDelivery.supplier.display
short:
  v: (ee TEKSTIna riigikood VÕI referents SDP Organizationile????)
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ref-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SupplyDelivery.destination
path:
  v: SupplyDelivery.destination
short:
  v: (ee SIHTKOHT. MIS asukoht vastu võtab)
definition:
  v: Identification of the facility/location where the delivery was shipped to.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: SupplyDelivery.destination
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Location|5.0.0
    link: 5.0
    link: .0
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=DST].role

id:
  v: SupplyDelivery.receiver
path:
  v: SupplyDelivery.receiver
short:
  v: (ee KES või MIS organisatsioon vastu võtab. Kas kohustuslik on Organization või Location, mis vastu võtab?)
definition:
  v: Identifies the individual or organization that received the delivery.
min:
  v: 0
max:
  v: *
base:
  path:
    v: SupplyDelivery.receiver
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner|5.0.0
    link: 5.0
    link: .0
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole|5.0.0
    link: 5.0
    link: .0
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization|5.0.0
    link: 5.0
    link: .0
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: .participation[typeCode=RCV].role

id:
  v: SupplyDelivery.receiver.id
path:
  v: SupplyDelivery.receiver.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SupplyDelivery.receiver.extension
path:
  v: SupplyDelivery.receiver.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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 managable, 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: SupplyDelivery.receiver.reference
path:
  v: SupplyDelivery.receiver.reference
short:
  v: (ee VIIDE SPD-le)
definition:
  v: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
comment:
  v: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ref-2
condition:
  v: ref-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SupplyDelivery.receiver.type
path:
  v: SupplyDelivery.receiver.type
short:
  v: Type the reference refers to (e.g. "Patient") - must be a resource in resources
definition:
  v: The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent. The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. "Patient" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).
comment:
  v: This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a known RESTful URL) or by resolving the target of the reference.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: FHIRResourceTypeExt
  strength:
    v: extensible
  description:
    v: Aa resource (or, for logical models, the URI of the logical model).
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types|5.0.0
    link: 5.0
    link: .0
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: SupplyDelivery.receiver.identifier
path:
  v: SupplyDelivery.receiver.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any). This element only allows for a single identifier. In the case where additional identifers are required, use the [http://hl7.org/fhir/StructureDefinition/additionalIdentifier](http://hl7.org/fhir/extensions/StructureDefinition-additionalIdentifier.html) extension.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
condition:
  v: ref-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: SupplyDelivery.receiver.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value: boolean
    v: true
path:
  v: SupplyDelivery.receiver.display
short:
  v: (ee KUI viide puudub, tekstina)
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
condition:
  v: ref-2
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

element:
  id:
    v: SupplyDelivery
  path:
    v: SupplyDelivery
element:
  id:
    v: SupplyDelivery.extension
  path:
    v: SupplyDelivery.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
element:
  id:
    v: SupplyDelivery.extension:suppliedPackage
  path:
    v: SupplyDelivery.extension
  slice name:
    v: suppliedPackage
  short:
    v: (ee KUI on vaja viidata pakendile. Äkki saaks identifikaatorite järgi viidata? Või alati on üks BDP 1 pakend? Arutelukoht!)
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: https://fhir.ee/vris/StructureDefinition/ee-vris-supplied-package
      link: https://fhir.ee/vris/StructureDefinition/ee-vris-supplied-package
element:
  id:
    v: SupplyDelivery.identifier
  path:
    v: SupplyDelivery.identifier
  short:
    v: (ee Liikumise identifikaator. Selle järgi saab jälgida materjali. Varasemad materjali liikumised tulevad selle kaudu.)
element:
  id:
    v: SupplyDelivery.basedOn
  path:
    v: SupplyDelivery.basedOn
  max:
    v: 0
element:
  id:
    v: SupplyDelivery.partOf
  path:
    v: SupplyDelivery.partOf
  max:
    v: 0
element:
  id:
    v: SupplyDelivery.status
  path:
    v: SupplyDelivery.status
  short:
    v: (ee Võtan vastu checkbox? |in-progress| = pole veel vastu võetud; |completed| = vastu võetud.)
element:
  id:
    v: SupplyDelivery.patient
  path:
    v: SupplyDelivery.patient
  short:
    v: (ee KAS seda on vaja? Liigub ainult materjal ja materjali küljes on viide KELLELE)
element:
  id:
    v: SupplyDelivery.type
  path:
    v: SupplyDelivery.type
  short:
    v: Always biologicallyderivedproduct
  pattern: CodeableConcept
    coding:
      code:
        v: biologicallyderivedproduct
element:
  id:
    v: SupplyDelivery.suppliedItem
  path:
    v: SupplyDelivery.suppliedItem
  short:
    v: (ee MIDA liigutatakse. Bioloogiline materjal. KAS on vaja viidet ka pakendile või piisab BDP viitest?)
  min:
    v: 1
element:
  id:
    v: SupplyDelivery.suppliedItem.quantity
  path:
    v: SupplyDelivery.suppliedItem.quantity
  short:
    v: (ee Kogus, dooside arv, mida liigutatakse.)
element:
  id:
    v: SupplyDelivery.suppliedItem.item[x]
  path:
    v: SupplyDelivery.suppliedItem.item[x]
  slicing:
    discriminator:
      type:
        v: type
      path:
        v: $this
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 1
element:
  id:
    v: SupplyDelivery.suppliedItem.item[x]:itemReference
  path:
    v: SupplyDelivery.suppliedItem.item[x]
  slice name:
    v: itemReference
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Reference
    target profile:
      v: https://fhir.ee/vris/StructureDefinition/ee-vris-embryo
      link: https://fhir.ee/vris/StructureDefinition/ee-vris-embryo
    target profile:
      v: https://fhir.ee/vris/StructureDefinition/ee-vris-sperm
      link: https://fhir.ee/vris/StructureDefinition/ee-vris-sperm
    target profile:
      v: https://fhir.ee/vris/StructureDefinition/ee-vris-oocyte
      link: https://fhir.ee/vris/StructureDefinition/ee-vris-oocyte
element:
  id:
    v: SupplyDelivery.occurrence[x]
  path:
    v: SupplyDelivery.occurrence[x]
  short:
    v: (ee Üle andmise/vastu võtmise kuupäev. AEG, millal sündmus aset leiab)
  min:
    v: 1
element:
  id:
    v: SupplyDelivery.supplier
  path:
    v: SupplyDelivery.supplier
  short:
    v: (ee PÄRITOLU. KES saadab. Viide SPD Organizationile, mille alt tuleb ka aadress ning riik.)
  min:
    v: 1
element:
  id:
    v: SupplyDelivery.supplier.reference
  path:
    v: SupplyDelivery.supplier.reference
  short:
    v: (ee VÕI referents SPD Organizationile????)
element:
  id:
    v: SupplyDelivery.supplier.display
  path:
    v: SupplyDelivery.supplier.display
  short:
    v: (ee TEKSTIna riigikood VÕI referents SDP Organizationile????)
element:
  id:
    v: SupplyDelivery.destination
  path:
    v: SupplyDelivery.destination
  short:
    v: (ee SIHTKOHT. MIS asukoht vastu võtab)
  min:
    v: 1
element:
  id:
    v: SupplyDelivery.receiver
  path:
    v: SupplyDelivery.receiver
  short:
    v: (ee KES või MIS organisatsioon vastu võtab. Kas kohustuslik on Organization või Location, mis vastu võtab?)
element:
  id:
    v: SupplyDelivery.receiver.reference
  path:
    v: SupplyDelivery.receiver.reference
  short:
    v: (ee VIIDE SPD-le)
element:
  id:
    v: SupplyDelivery.receiver.display
  path:
    v: SupplyDelivery.receiver.display

v: (ee KUI viide puudub, tekstina)