SHCPatchMedicationStatement
type: StructureDefinition
node role: treeRoot
id:
  v: SHCPatchMedicationStatement
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition SHCPatchMedicationStatement Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Parameters <a style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;; padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;" href="http://hl7.org/fhir/R4/conformance-rules.html#constraints" title="This element has or is affected by constraints ( shc-patch-medication-statement-01, shc-patch-medication-statement-02, shc-patch-medication-statement-03, shc-patch-medication-statement-04, shc-patch-medication-statement-05 )">C 0..* Parameters Parameters for patching MedicationStatement resource elements supported in Smart Health Checks Constraints: shc-patch-medication-statement-01, shc-patch-medication-statement-02, shc-patch-medication-statement-03, shc-patch-medication-statement-04, shc-patch-medication-statement-05 #xD; parameter SO 1..* BackboneElement Operation Parameter Obligations Actor SHALL:process SHC Host FHIR Server SHALL:populate SHC App #xD; name SO 1..1 string Name from the definition Fixed Value: operation Obligations Actor SHALL:process SHC Host FHIR Server SHALL:populate SHC App #xD; Slices for part 4..* Named part of a multi-part parameter Slice: Unordered, Open by value:name #xD; part:type SO 1..1 BackboneElement Patch operation to perform Obligations Actor SHALL:process SHC Host FHIR Server SHALL:populate SHC App #xD; name SO 1..1 string Name from the definition Fixed Value: type Obligations Actor SHALL:process SHC Host FHIR Server SHALL:populate SHC App #xD; value[x] SO 1..1 code If parameter is a data type Fixed Value: add Obligations Actor SHALL:process SHC Host FHIR Server SHALL:populate SHC App #xD; part:path SO 1..1 BackboneElement Where to perform the operation Obligations Actor SHALL:process SHC Host FHIR Server S…
url:
  v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  l: SHCPatchMedicationStatement
version:
  v: 0.4.0
name:
  v: SmartHealthChecksPatchMedicationStatement
title:
  v: Smart Health Checks Patch MedicationStatement
status:
  v: draft
date:
  v: 2025-12-18T05:29:19+00:00
publisher:
  v: AEHRC CSIRO
contact:
  name:
    v: AEHRC CSIRO
  telecom:
    system:
      v: url
    value:
      v: https://confluence.csiro.au/display/PCDQFPhase2/Primary+Care+Data+Quality+Foundations+-+Phase+2
description:
  v: This profile sets the expectations for a Parameters resource when used to patch MedicationStatement resources within Smart Health Checks.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: AU
    display:
      v: Australia
copyright:
  v: Copyright © 2022+ Australian Government Department of Health and Aged Care - All rights reserved. This content is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. See https://creativecommons.org/licenses/by-sa/4.0/.
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
    l: v2
  name:
    v: HL7 v2 Mapping
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: Parameters
  l: Parameters
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Parameters
  l: Parameters
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: Parameters
    path:
      v: Parameters
    short:
      v: Parameters for patching MedicationStatement resource elements supported in Smart Health Checks
    definition:
      v: This resource is a non-persisted resource used to pass information into and back from an [operation](http://hl7.org/fhir/R4/operations.html). It has no other use, and there is no RESTful endpoint associated with it.
    comment:
      v: The parameters that may be used are defined by the OperationDefinition resource.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Parameters
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: shc-patch-medication-statement-01
      severity:
        v: error
      human:
        v: When the part parameter named 'path' has a value of 'MedicationStatement' and the part parameter named 'name' has a value of 'status', the part parameter named 'value' SHALL have a value from the 'Medication Statement Status Limited' value set.
      expression:
        v: parameter.where(part.where(name='path').value = 'MedicationStatement' and part.where(name='name').value = 'status').exists() implies parameter.where(part.where(name='path').value = 'MedicationStatement' and part.where(name='name').value = 'status').part.where(name='value').value.memberOf('https://smartforms.csiro.au/ig/ValueSet/MedicationStatementStatusLimited')
      source:
        v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
        l: SHCPatchMedicationStatement
    constraint:
      key:
        v: shc-patch-medication-statement-02
      severity:
        v: error
      human:
        v: When the part parameter named 'path' has a value of 'MedicationStatement' and the part parameter named 'name' has a value of 'dosage', the part parameter named 'value' SHALL have a value of type Dosage.
      expression:
        v: parameter.where(part.where(name='path').value = 'MedicationStatement' and part.where(name='name').value = 'dosage').exists() implies parameter.where(part.where(name='path').value = 'MedicationStatement' and part.where(name='name').value = 'dosage').part.where(name='value').value is Dosage
      source:
        v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
        l: SHCPatchMedicationStatement
    constraint:
      key:
        v: shc-patch-medication-statement-03
      severity:
        v: error
      human:
        v: When the part parameter named 'path' has a value of 'MedicationStatement.dosage[0]' and the part parameter named 'name' has a value of 'text', the part parameter named 'value' SHALL have a value of type string.
      expression:
        v: parameter.where(part.where(name='path').value = 'MedicationStatement.dosage[0]' and part.where(name='name').value = 'text').exists() implies parameter.where(part.where(name='path').value = 'MedicationStatement.dosage[0]' and part.where(name='name').value = 'text').part.where(name='value').value is string
      source:
        v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
        l: SHCPatchMedicationStatement
    constraint:
      key:
        v: shc-patch-medication-statement-04
      severity:
        v: error
      human:
        v: When the part parameter named 'path' has a value of 'MedicationStatement' and the part parameter named 'name' has a value of 'note', the part parameter named 'value' SHALL have a value of type Annotation.
      expression:
        v: parameter.where(part.where(name='path').value = 'MedicationStatement' and part.where(name='name').value = 'note').exists() implies parameter.where(part.where(name='path').value = 'MedicationStatement' and part.where(name='name').value = 'note').part.where(name='value').value is Annotation
      source:
        v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
        l: SHCPatchMedicationStatement
    constraint:
      key:
        v: shc-patch-medication-statement-05
      severity:
        v: error
      human:
        v: When the part parameter named 'path' has a value of 'MedicationStatement.note[0]' and the part parameter named 'name' has a value of 'text', the part parameter named 'value' SHALL have a value of type markdown.
      expression:
        v: parameter.where(part.where(name='path').value = 'MedicationStatement.note[0]' and part.where(name='name').value = 'text').exists() implies parameter.where(part.where(name='path').value = 'MedicationStatement.note[0]' and part.where(name='name').value = 'text').part.where(name='value').value is markdown
      source:
        v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
        l: SHCPatchMedicationStatement
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: Entity. Role, or Act
    mapping:
      identity:
        v: v2
      map:
        v: n/a
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: Parameters.id
    path:
      v: Parameters.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: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Resource.id
      min:
        v: 0

v: 1

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    l: structuredefinition-fhir-type
  value: Url
    v: id
    l: id
code:
  v: http://hl7.org/fhirpath/System.String
  l: System.String

v: false

v: true

id:
  v: Parameters.meta
path:
  v: Parameters.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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.implicitRules
path:
  v: Parameters.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 it's 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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
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 it's meaning or interpretation
is summary:
  v: true

id:
  v: Parameters.language
path:
  v: Parameters.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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Canonical
      v: http://hl7.org/fhir/ValueSet/all-languages
      l: all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: preferred
  description:
    v: A human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/languages|4.0.1
    l: http://hl7.org/fhir/ValueSet/languages

id:
  v: Parameters.parameter
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter
short:
  v: Operation Parameter
definition:
  v: A parameter passed to or received from the operation.
min:
  v: 1
max:
  v: *
base:
  path:
    v: Parameters.parameter
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: inv-1
  severity:
    v: error
  human:
    v: A parameter must have one and only one of (value, resource, part)
  expression:
    v: (part.exists() and value.empty() and resource.empty()) or (part.empty() and (value.exists() xor resource.exists()))
  xpath:
    v: (exists(f:resource) or exists(f:part) or exists(f:*[starts-with(local-name(.), 'value')])) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:resource))) and not(exists(f:*[starts-with(local-name(.), 'value')])) and exists(f:part))) and not(exists(f:part) and exists(f:resource))
  source:
    v: http://hl7.org/fhir/StructureDefinition/Parameters
    l: Parameters
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.id
path:
  v: Parameters.parameter.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.extension
path:
  v: Parameters.parameter.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.modifierExtension
path:
  v: Parameters.parameter.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  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/R4/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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: 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: Parameters.parameter.name
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.name
short:
  v: Name from the definition
definition:
  v: The name of the parameter (reference to the operation definition).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
fixed: String
  v: operation
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.value[x]
path:
  v: Parameters.parameter.value[x]
short:
  v: If parameter is a data type
definition:
  v: If the parameter is a data type.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: base64Binary
    l: base64Binary
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: canonical
    l: canonical
type:
  code:
    v: code
    l: code
type:
  code:
    v: date
    l: date
type:
  code:
    v: dateTime
    l: dateTime
type:
  code:
    v: decimal
    l: decimal
type:
  code:
    v: id
    l: id
type:
  code:
    v: instant
    l: instant
type:
  code:
    v: integer
    l: integer
type:
  code:
    v: markdown
    l: markdown
type:
  code:
    v: oid
    l: oid
type:
  code:
    v: positiveInt
    l: positiveInt
type:
  code:
    v: string
    l: string
type:
  code:
    v: time
    l: time
type:
  code:
    v: unsignedInt
    l: unsignedInt
type:
  code:
    v: uri
    l: uri
type:
  code:
    v: url
    l: url
type:
  code:
    v: uuid
    l: uuid
type:
  code:
    v: Address
    l: Address
type:
  code:
    v: Age
    l: Age
type:
  code:
    v: Annotation
    l: Annotation
type:
  code:
    v: Attachment
    l: Attachment
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
type:
  code:
    v: Coding
    l: Coding
type:
  code:
    v: ContactPoint
    l: ContactPoint
type:
  code:
    v: Count
    l: Count
type:
  code:
    v: Distance
    l: Distance
type:
  code:
    v: Duration
    l: Duration
type:
  code:
    v: HumanName
    l: HumanName
type:
  code:
    v: Identifier
    l: Identifier
type:
  code:
    v: Money
    l: Money
type:
  code:
    v: Period
    l: Period
type:
  code:
    v: Quantity
    l: Quantity
type:
  code:
    v: Range
    l: Range
type:
  code:
    v: Ratio
    l: Ratio
type:
  code:
    v: Reference
    l: Reference
type:
  code:
    v: SampledData
    l: SampledData
type:
  code:
    v: Signature
    l: Signature
type:
  code:
    v: Timing
    l: Timing
type:
  code:
    v: ContactDetail
    l: ContactDetail
type:
  code:
    v: Contributor
    l: Contributor
type:
  code:
    v: DataRequirement
    l: DataRequirement
type:
  code:
    v: Expression
    l: Expression
type:
  code:
    v: ParameterDefinition
    l: ParameterDefinition
type:
  code:
    v: RelatedArtifact
    l: RelatedArtifact

code:
  v: TriggerDefinition
  l: TriggerDefinition

code:
  v: UsageContext
  l: UsageContext

code:
  v: Dosage
  l: Dosage

code:
  v: Meta
  l: Meta

v: inv-1

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())
xpath:
  v: @value|f:*|h:div
source:
  v: http://hl7.org/fhir/StructureDefinition/Element
  l: Element

v: false

v: true

id:
  v: Parameters.parameter.resource
path:
  v: Parameters.parameter.resource
short:
  v: If parameter is a whole resource
definition:
  v: If the parameter is a whole resource.
comment:
  v: When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.resource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Resource
    l: Resource
condition:
  v: inv-1
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part
path:
  v: Parameters.parameter.part
slicing:
  discriminator:
    type:
      v: value
    path:
      v: name
  ordered:
    v: false
  rules:
    v: open
short:
  v: Named part of a multi-part parameter
definition:
  v: A named part of a multi-part parameter.
comment:
  v: Only one level of nested parameters is allowed.
min:
  v: 4
max:
  v: *
base:
  path:
    v: Parameters.parameter.part
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/Parameters#Parameters.parameter
  l: Parameters.parameter
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part.id
path:
  v: Parameters.parameter.part.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part.extension
path:
  v: Parameters.parameter.part.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part.modifierExtension
path:
  v: Parameters.parameter.part.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  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/R4/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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: 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: Parameters.parameter.part.name
path:
  v: Parameters.parameter.part.name
short:
  v: Name from the definition
definition:
  v: The name of the parameter (reference to the operation definition).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part.value[x]
path:
  v: Parameters.parameter.part.value[x]
short:
  v: If parameter is a data type
definition:
  v: If the parameter is a data type.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: base64Binary
    l: base64Binary
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: canonical
    l: canonical
type:
  code:
    v: code
    l: code
type:
  code:
    v: date
    l: date
type:
  code:
    v: dateTime
    l: dateTime
type:
  code:
    v: decimal
    l: decimal
type:
  code:
    v: id
    l: id
type:
  code:
    v: instant
    l: instant
type:
  code:
    v: integer
    l: integer
type:
  code:
    v: markdown
    l: markdown
type:
  code:
    v: oid
    l: oid
type:
  code:
    v: positiveInt
    l: positiveInt
type:
  code:
    v: string
    l: string
type:
  code:
    v: time
    l: time
type:
  code:
    v: unsignedInt
    l: unsignedInt
type:
  code:
    v: uri
    l: uri
type:
  code:
    v: url
    l: url
type:
  code:
    v: uuid
    l: uuid
type:
  code:
    v: Address
    l: Address
type:
  code:
    v: Age
    l: Age
type:
  code:
    v: Annotation
    l: Annotation
type:
  code:
    v: Attachment
    l: Attachment
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
type:
  code:
    v: Coding
    l: Coding
type:
  code:
    v: ContactPoint
    l: ContactPoint
type:
  code:
    v: Count
    l: Count
type:
  code:
    v: Distance
    l: Distance
type:
  code:
    v: Duration
    l: Duration
type:
  code:
    v: HumanName
    l: HumanName
type:
  code:
    v: Identifier
    l: Identifier
type:
  code:
    v: Money
    l: Money
type:
  code:
    v: Period
    l: Period
type:
  code:
    v: Quantity
    l: Quantity
type:
  code:
    v: Range
    l: Range
type:
  code:
    v: Ratio
    l: Ratio
type:
  code:
    v: Reference
    l: Reference
type:
  code:
    v: SampledData
    l: SampledData
type:
  code:
    v: Signature
    l: Signature
type:
  code:
    v: Timing
    l: Timing
type:
  code:
    v: ContactDetail
    l: ContactDetail
type:
  code:
    v: Contributor
    l: Contributor
type:
  code:
    v: DataRequirement
    l: DataRequirement
type:
  code:
    v: Expression
    l: Expression
type:
  code:
    v: ParameterDefinition
    l: ParameterDefinition
type:
  code:
    v: RelatedArtifact
    l: RelatedArtifact

code:
  v: TriggerDefinition
  l: TriggerDefinition

code:
  v: UsageContext
  l: UsageContext

code:
  v: Dosage
  l: Dosage

code:
  v: Meta
  l: Meta

v: inv-1

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())
xpath:
  v: @value|f:*|h:div
source:
  v: http://hl7.org/fhir/StructureDefinition/Element
  l: Element

v: false

v: true

id:
  v: Parameters.parameter.part.resource
path:
  v: Parameters.parameter.part.resource
short:
  v: If parameter is a whole resource
definition:
  v: If the parameter is a whole resource.
comment:
  v: When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.resource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Resource
    l: Resource
condition:
  v: inv-1
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part.part
path:
  v: Parameters.parameter.part.part
short:
  v: Named part of a multi-part parameter
definition:
  v: A named part of a multi-part parameter.
comment:
  v: Only one level of nested parameters is allowed.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Parameters.parameter.part
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/Parameters#Parameters.parameter
  l: Parameters.parameter
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:type
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part
slice name:
  v: type
short:
  v: Patch operation to perform
definition:
  v: A named part of a multi-part parameter.
comment:
  v: Only one level of nested parameters is allowed.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.part
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:type.id
path:
  v: Parameters.parameter.part.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:type.extension
path:
  v: Parameters.parameter.part.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:type.modifierExtension
path:
  v: Parameters.parameter.part.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  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/R4/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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: 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: Parameters.parameter.part:type.name
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.name
short:
  v: Name from the definition
definition:
  v: The name of the parameter (reference to the operation definition).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
fixed: String
  v: type
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:type.value[x]
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
short:
  v: If parameter is a data type
definition:
  v: If the parameter is a data type.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
fixed: Code
  v: add
condition:
  v: inv-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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:type.resource
path:
  v: Parameters.parameter.part.resource
short:
  v: If parameter is a whole resource
definition:
  v: If the parameter is a whole resource.
comment:
  v: When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.resource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Resource
    l: Resource
condition:
  v: inv-1
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:type.part
path:
  v: Parameters.parameter.part.part
short:
  v: Named part of a multi-part parameter
definition:
  v: A named part of a multi-part parameter.
comment:
  v: Only one level of nested parameters is allowed.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Parameters.parameter.part
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/Parameters#Parameters.parameter
  l: Parameters.parameter
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:path
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part
slice name:
  v: path
short:
  v: Where to perform the operation
definition:
  v: A named part of a multi-part parameter.
comment:
  v: Only one level of nested parameters is allowed.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.part
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:path.id
path:
  v: Parameters.parameter.part.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:path.extension
path:
  v: Parameters.parameter.part.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:path.modifierExtension
path:
  v: Parameters.parameter.part.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  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/R4/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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: 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: Parameters.parameter.part:path.name
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.name
short:
  v: Name from the definition
definition:
  v: The name of the parameter (reference to the operation definition).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
fixed: String
  v: path
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:path.value[x]
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
short:
  v: If parameter is a data type
definition:
  v: If the parameter is a data type.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: inv-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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: https://smartforms.csiro.au/ig/ValueSet/SHCPatchMedicationStatementElementPath
    l: SHCPatchMedicationStatementElementPath

id:
  v: Parameters.parameter.part:path.resource
path:
  v: Parameters.parameter.part.resource
short:
  v: If parameter is a whole resource
definition:
  v: If the parameter is a whole resource.
comment:
  v: When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.resource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Resource
    l: Resource
condition:
  v: inv-1
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:path.part
path:
  v: Parameters.parameter.part.part
short:
  v: Named part of a multi-part parameter
definition:
  v: A named part of a multi-part parameter.
comment:
  v: Only one level of nested parameters is allowed.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Parameters.parameter.part
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/Parameters#Parameters.parameter
  l: Parameters.parameter
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:name
path:
  v: Parameters.parameter.part
slice name:
  v: name
short:
  v: Named part of a multi-part parameter
definition:
  v: A named part of a multi-part parameter.
comment:
  v: Only one level of nested parameters is allowed.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.part
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:name.id
path:
  v: Parameters.parameter.part.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:name.extension
path:
  v: Parameters.parameter.part.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:name.modifierExtension
path:
  v: Parameters.parameter.part.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  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/R4/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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: 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: Parameters.parameter.part:name.name
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.name
short:
  v: Name from the definition
definition:
  v: The name of the parameter (reference to the operation definition).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
fixed: String
  v: name
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:name.value[x]
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
short:
  v: If parameter is a data type
definition:
  v: If the parameter is a data type.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: inv-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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: https://smartforms.csiro.au/ig/ValueSet/SHCPatchMedicationStatementElementName
    l: SHCPatchMedicationStatementElementName

id:
  v: Parameters.parameter.part:name.resource
path:
  v: Parameters.parameter.part.resource
short:
  v: If parameter is a whole resource
definition:
  v: If the parameter is a whole resource.
comment:
  v: When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.resource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Resource
    l: Resource
condition:
  v: inv-1
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:name.part
path:
  v: Parameters.parameter.part.part
short:
  v: Named part of a multi-part parameter
definition:
  v: A named part of a multi-part parameter.
comment:
  v: Only one level of nested parameters is allowed.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Parameters.parameter.part
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/Parameters#Parameters.parameter
  l: Parameters.parameter
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:value
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part
slice name:
  v: value
short:
  v: Replacement value
definition:
  v: A named part of a multi-part parameter.
comment:
  v: Only one level of nested parameters is allowed.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.part
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:value.id
path:
  v: Parameters.parameter.part.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:value.extension
path:
  v: Parameters.parameter.part.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:value.modifierExtension
path:
  v: Parameters.parameter.part.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  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/R4/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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: 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: Parameters.parameter.part:value.name
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.name
short:
  v: Name from the definition
definition:
  v: The name of the parameter (reference to the operation definition).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
fixed: String
  v: value
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:value.value[x]
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
slicing:
  discriminator:
    type:
      v: type
    path:
      v: $this
  ordered:
    v: false
  rules:
    v: open
short:
  v: If parameter is a data type
definition:
  v: If the parameter is a data type.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
type:
  code:
    v: markdown
    l: markdown
type:
  code:
    v: string
    l: string
type:
  code:
    v: Annotation
    l: Annotation
type:
  code:
    v: Dosage
    l: Dosage
condition:
  v: inv-1
condition:
  v: shc-patch-medication-statement-01
condition:
  v: shc-patch-medication-statement-02
condition:
  v: shc-patch-medication-statement-03
condition:
  v: shc-patch-medication-statement-04
condition:
  v: shc-patch-medication-statement-05
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:value.value[x]:valueCode
path:
  v: Parameters.parameter.part.value[x]
slice name:
  v: valueCode
short:
  v: If parameter is a data type
definition:
  v: If the parameter is a data type.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
condition:
  v: inv-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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: required
  value set:
    v: https://smartforms.csiro.au/ig/ValueSet/MedicationStatementStatusLimited
    l: MedicationStatementStatusLimited

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
slice name:
  v: valueDosage
short:
  v: If parameter is a data type
definition:
  v: If the parameter is a data type.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Dosage
    l: Dosage
condition:
  v: inv-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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.id
path:
  v: Parameters.parameter.part.value[x].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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.extension
path:
  v: Parameters.parameter.part.value[x].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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.modifierExtension
path:
  v: Parameters.parameter.part.value[x].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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  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/R4/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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: 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: Parameters.parameter.part:value.value[x]:valueDosage.sequence
path:
  v: Parameters.parameter.part.value[x].sequence
short:
  v: The order of the dosage instructions
definition:
  v: Indicates the order in which the dosage instructions should be applied or interpreted.
requirements:
  v: If the sequence number of multiple Dosages is the same, then it is implied that the instructions are to be treated as concurrent. If the sequence number is different, then the Dosages are intended to be sequential.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.sequence
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
    l: integer
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: TQ1-1
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.text
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x].text
short:
  v: Free text dosage instructions e.g. SIG
definition:
  v: Free text dosage instructions e.g. SIG.
requirements:
  v: Free text dosage instructions can be used for cases where the instructions are too complex to code. The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated. If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing. Additional information about administration or preparation of the medication should be included as text.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Dosage.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: RXO-6; RXE-21
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.additionalInstruction
path:
  v: Parameters.parameter.part.value[x].additionalInstruction
short:
  v: Supplemental instruction or warnings to the patient - e.g. "with meals", "may cause drowsiness"
definition:
  v: Supplemental instructions to the patient on how to take the medication (e.g. "with meals" or"take half to one hour before food") or warnings for the patient about the medication (e.g. "may cause drowsiness" or "avoid exposure of skin to direct sunlight or sunlamps").
comment:
  v: Information about administration or preparation of the medication (e.g. "infuse as rapidly as possibly via intraperitoneal port" or "immediately following drug x") should be populated in dosage.text.
requirements:
  v: Additional instruction is intended to be coded, but where no code exists, the element could include text. For example, "Swallow with plenty of water" which might or might not be coded.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Dosage.additionalInstruction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AdditionalInstruction
  strength:
    v: example
  description:
    v: A coded concept identifying additional instructions such as "take with water" or "avoid operating heavy machinery".
  value set:
    v: http://hl7.org/fhir/ValueSet/additional-instruction-codes|4.0.1
    l: http://hl7.org/fhir/ValueSet/additional-instruction-codes
mapping:
  identity:
    v: v2
  map:
    v: RXO-7
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.patientInstruction
path:
  v: Parameters.parameter.part.value[x].patientInstruction
short:
  v: Patient or consumer oriented instructions
definition:
  v: Instructions in terms that are understood by the patient or consumer.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.patientInstruction
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: RXO-7
mapping:
  identity:
    v: rim
  map:
    v: .text

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.timing
path:
  v: Parameters.parameter.part.value[x].timing
short:
  v: When medication should be administered
definition:
  v: When medication should be administered.
comment:
  v: This attribute might not always be populated while the Dosage.text is expected to be populated. If both are populated, then the Dosage.text should reflect the content of the Dosage.timing.
requirements:
  v: The timing schedule for giving the medication to the patient. This data type allows many different expressions. For example: "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013". Sometimes, a rate can imply duration when expressed as total volume / duration (e.g. 500mL/2 hours implies a duration of 2 hours). However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.timing
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Timing
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .effectiveTime

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.asNeeded[x]
path:
  v: Parameters.parameter.part.value[x].asNeeded[x]
short:
  v: Take "as needed" (for x)
definition:
  v: Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept).
comment:
  v: Can express "as needed" without a reason by setting the Boolean = True. In this case the CodeableConcept is not populated. Or you can express "as needed" with a reason by including the CodeableConcept. In this case the Boolean is assumed to be True. If you set the Boolean to False, then the dose is given according to the schedule and is not "prn" or "as needed".
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.asNeeded[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationAsNeededReason
  strength:
    v: example
  description:
    v: A coded concept identifying the precondition that should be met or evaluated prior to consuming or administering a medication dose. For example "pain", "30 minutes prior to sexual intercourse", "on flare-up" etc.
  value set:
    v: http://hl7.org/fhir/ValueSet/medication-as-needed-reason|4.0.1
    l: http://hl7.org/fhir/ValueSet/medication-as-needed-reason
mapping:
  identity:
    v: v2
  map:
    v: TQ1-9
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=PRCN].target[classCode=OBS, moodCode=EVN, code="as needed"].value=boolean or codable concept

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.site
path:
  v: Parameters.parameter.part.value[x].site
short:
  v: Body site to administer to
definition:
  v: Body site to administer to.
comment:
  v: If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](http://hl7.org/fhir/R4/extension-bodysite.html). May be a summary code, or a reference to a very precise definition of the location, or both.
requirements:
  v: A coded specification of the anatomic site where the medication first enters the body.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.site
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationAdministrationSite
  strength:
    v: example
  description:
    v: A coded concept describing the site location the medicine enters into or onto the body.
  value set:
    v: http://hl7.org/fhir/ValueSet/approach-site-codes|4.0.1
    l: http://hl7.org/fhir/ValueSet/approach-site-codes
mapping:
  identity:
    v: v2
  map:
    v: RXR-2
mapping:
  identity:
    v: rim
  map:
    v: .approachSiteCode

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.route
path:
  v: Parameters.parameter.part.value[x].route
short:
  v: How drug should enter body
definition:
  v: How drug should enter body.
requirements:
  v: A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.route
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: RouteOfAdministration
  strength:
    v: example
  description:
    v: A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.
  value set:
    v: http://hl7.org/fhir/ValueSet/route-codes|4.0.1
    l: http://hl7.org/fhir/ValueSet/route-codes
mapping:
  identity:
    v: v2
  map:
    v: RXR-1
mapping:
  identity:
    v: rim
  map:
    v: .routeCode

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.method
path:
  v: Parameters.parameter.part.value[x].method
short:
  v: Technique for administering medication
definition:
  v: Technique for administering medication.
comment:
  v: Terminologies used often pre-coordinate this term with the route and or form of administration.
requirements:
  v: A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. For examples, Slow Push; Deep IV.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.method
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: MedicationAdministrationMethod
  strength:
    v: example
  description:
    v: A coded concept describing the technique by which the medicine is administered.
  value set:
    v: http://hl7.org/fhir/ValueSet/administration-method-codes|4.0.1
    l: http://hl7.org/fhir/ValueSet/administration-method-codes
mapping:
  identity:
    v: v2
  map:
    v: RXR-4
mapping:
  identity:
    v: rim
  map:
    v: .doseQuantity

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.doseAndRate
path:
  v: Parameters.parameter.part.value[x].doseAndRate
short:
  v: Amount of medication administered
definition:
  v: The amount of medication administered.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Dosage.doseAndRate
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Element
    l: Element
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: TQ1-2

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.doseAndRate.id
path:
  v: Parameters.parameter.part.value[x].doseAndRate.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.doseAndRate.extension
path:
  v: Parameters.parameter.part.value[x].doseAndRate.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.doseAndRate.type
path:
  v: Parameters.parameter.part.value[x].doseAndRate.type
short:
  v: The kind of dose or rate specified
definition:
  v: The kind of dose or rate specified, for example, ordered or calculated.
requirements:
  v: If the type is not populated, assume to be "ordered".
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.doseAndRate.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: DoseAndRateType
  strength:
    v: example
  description:
    v: The kind of dose or rate specified.
  value set:
    v: http://hl7.org/fhir/ValueSet/dose-rate-type|4.0.1
    l: http://hl7.org/fhir/ValueSet/dose-rate-type
mapping:
  identity:
    v: v2
  map:
    v: RXO-21; RXE-23

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.doseAndRate.dose[x]
path:
  v: Parameters.parameter.part.value[x].doseAndRate.dose[x]
short:
  v: Amount of medication per dose
definition:
  v: Amount of medication per dose.
comment:
  v: Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours.
requirements:
  v: The amount of therapeutic or other substance given at one administration event.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.doseAndRate.dose[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Range
    l: Range
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: RXO-2, RXE-3
mapping:
  identity:
    v: rim
  map:
    v: .doseQuantity

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.doseAndRate.rate[x]
path:
  v: Parameters.parameter.part.value[x].doseAndRate.rate[x]
short:
  v: Amount of medication per unit of time
definition:
  v: Amount of medication per unit of time.
comment:
  v: It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate. It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour.
requirements:
  v: Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours. Sometimes, a rate can imply duration when expressed as total volume / duration (e.g. 500mL/2 hours implies a duration of 2 hours). However, when rate doesn't imply duration (e.g. 250mL/hour), then the timing.repeat.duration is needed to convey the infuse over time period.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.doseAndRate.rate[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Ratio
    l: Ratio
type:
  code:
    v: Range
    l: Range
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: RXE22, RXE23, RXE-24
mapping:
  identity:
    v: rim
  map:
    v: .rateQuantity

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.maxDosePerPeriod
path:
  v: Parameters.parameter.part.value[x].maxDosePerPeriod
short:
  v: Upper limit on medication per unit of time
definition:
  v: Upper limit on medication per unit of time.
comment:
  v: This is intended for use as an adjunct to the dosage when there is an upper cap. For example "2 tablets every 4 hours to a maximum of 8/day".
requirements:
  v: The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. For example, 1000mg in 24 hours.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.maxDosePerPeriod
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Ratio
    l: Ratio
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: RXO-23, RXE-19
mapping:
  identity:
    v: rim
  map:
    v: .maxDoseQuantity

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.maxDosePerAdministration
path:
  v: Parameters.parameter.part.value[x].maxDosePerAdministration
short:
  v: Upper limit on medication per administration
definition:
  v: Upper limit on medication per administration.
comment:
  v: This is intended for use as an adjunct to the dosage when there is an upper cap. For example, a body surface area related dose with a maximum amount, such as 1.5 mg/m2 (maximum 2 mg) IV over 5 – 10 minutes would have doseQuantity of 1.5 mg/m2 and maxDosePerAdministration of 2 mg.
requirements:
  v: The maximum total quantity of a therapeutic substance that may be administered to a subject per administration.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.maxDosePerAdministration
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: not supported

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.maxDosePerLifetime
path:
  v: Parameters.parameter.part.value[x].maxDosePerLifetime
short:
  v: Upper limit on medication per lifetime of the patient
definition:
  v: Upper limit on medication per lifetime of the patient.
requirements:
  v: The maximum total quantity of a therapeutic substance that may be administered per lifetime of the subject.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Dosage.maxDosePerLifetime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity
    l: Quantity
  profile:
    v: http://hl7.org/fhir/StructureDefinition/SimpleQuantity|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/SimpleQuantity
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: not supported

id:
  v: Parameters.parameter.part:value.value[x]:valueMarkdown
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
slice name:
  v: valueMarkdown
short:
  v: If parameter is a data type
definition:
  v: If the parameter is a data type.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown
condition:
  v: inv-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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:value.value[x]:valueAnnotation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
slice name:
  v: valueAnnotation
short:
  v: If parameter is a data type
definition:
  v: If the parameter is a data type.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Annotation
    l: Annotation
condition:
  v: inv-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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:value.value[x]:valueAnnotation.id
path:
  v: Parameters.parameter.part.value[x].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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:value.value[x]:valueAnnotation.extension
path:
  v: Parameters.parameter.part.value[x].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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:value.value[x]:valueAnnotation.author[x]
path:
  v: Parameters.parameter.part.value[x].author[x]
short:
  v: Individual responsible for the annotation
definition:
  v: The individual responsible for making the annotation.
comment:
  v: Organization is used when there's no need for specific attribution as to who made the comment.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Annotation.author[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Practitioner
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/RelatedPerson
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization|4.0.1
    l: http://hl7.org/fhir/StructureDefinition/Organization
type:
  code:
    v: string
    l: string
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Act.participant[typeCode=AUT].role

id:
  v: Parameters.parameter.part:value.value[x]:valueAnnotation.time
path:
  v: Parameters.parameter.part.value[x].time
short:
  v: When the annotation was made
definition:
  v: Indicates when this particular annotation was made.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Annotation.time
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Act.effectiveTime

id:
  v: Parameters.parameter.part:value.value[x]:valueAnnotation.text
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x].text
short:
  v: The annotation - text content (as markdown)
definition:
  v: The text of the annotation in markdown format.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Annotation.text
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Act.text

id:
  v: Parameters.parameter.part:value.resource
path:
  v: Parameters.parameter.part.resource
short:
  v: If parameter is a whole resource
definition:
  v: If the parameter is a whole resource.
comment:
  v: When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.resource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Resource
    l: Resource
condition:
  v: inv-1
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:value.part
path:
  v: Parameters.parameter.part.part
short:
  v: Named part of a multi-part parameter
definition:
  v: A named part of a multi-part parameter.
comment:
  v: Only one level of nested parameters is allowed.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Parameters.parameter.part
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/Parameters#Parameters.parameter
  l: Parameters.parameter
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:pathLabel
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part
slice name:
  v: pathLabel
short:
  v: Human readable representation of the path. Typically this is the relevant item text from the Questionnaire.
definition:
  v: A named part of a multi-part parameter.
comment:
  v: Only one level of nested parameters is allowed.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.part
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:pathLabel.id
path:
  v: Parameters.parameter.part.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
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:pathLabel.extension
path:
  v: Parameters.parameter.part.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: Parameters.parameter.part:pathLabel.modifierExtension
path:
  v: Parameters.parameter.part.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 manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  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/R4/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
    l: 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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: 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: Parameters.parameter.part:pathLabel.name
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.name
short:
  v: Name from the definition
definition:
  v: The name of the parameter (reference to the operation definition).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
fixed: String
  v: pathLabel
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:pathLabel.value[x]
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-source
      l: snapshot-source
    value: Canonical
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement|0.4.0
      l: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
short:
  v: If parameter is a data type
definition:
  v: If the parameter is a data type.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Parameters.parameter.value[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: inv-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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:pathLabel.resource
path:
  v: Parameters.parameter.part.resource
short:
  v: If parameter is a whole resource
definition:
  v: If the parameter is a whole resource.
comment:
  v: When resolving references in resources, the operation definition may specify how references may be resolved between parameters. If a reference cannot be resolved between the parameters, the application should fall back to it's general resource resolution methods.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Parameters.parameter.resource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Resource
    l: Resource
condition:
  v: inv-1
is modifier:
  v: false
is summary:
  v: true

id:
  v: Parameters.parameter.part:pathLabel.part
path:
  v: Parameters.parameter.part.part
short:
  v: Named part of a multi-part parameter
definition:
  v: A named part of a multi-part parameter.
comment:
  v: Only one level of nested parameters is allowed.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Parameters.parameter.part
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/Parameters#Parameters.parameter
  l: Parameters.parameter
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())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
is modifier:
  v: false
is summary:
  v: true

element:
  id:
    v: Parameters
  path:
    v: Parameters
  short:
    v: Parameters for patching MedicationStatement resource elements supported in Smart Health Checks
  constraint:
    key:
      v: shc-patch-medication-statement-01
    severity:
      v: error
    human:
      v: When the part parameter named 'path' has a value of 'MedicationStatement' and the part parameter named 'name' has a value of 'status', the part parameter named 'value' SHALL have a value from the 'Medication Statement Status Limited' value set.
    expression:
      v: parameter.where(part.where(name='path').value = 'MedicationStatement' and part.where(name='name').value = 'status').exists() implies parameter.where(part.where(name='path').value = 'MedicationStatement' and part.where(name='name').value = 'status').part.where(name='value').value.memberOf('https://smartforms.csiro.au/ig/ValueSet/MedicationStatementStatusLimited')
    source:
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
      l: SHCPatchMedicationStatement
  constraint:
    key:
      v: shc-patch-medication-statement-02
    severity:
      v: error
    human:
      v: When the part parameter named 'path' has a value of 'MedicationStatement' and the part parameter named 'name' has a value of 'dosage', the part parameter named 'value' SHALL have a value of type Dosage.
    expression:
      v: parameter.where(part.where(name='path').value = 'MedicationStatement' and part.where(name='name').value = 'dosage').exists() implies parameter.where(part.where(name='path').value = 'MedicationStatement' and part.where(name='name').value = 'dosage').part.where(name='value').value is Dosage
    source:
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
      l: SHCPatchMedicationStatement
  constraint:
    key:
      v: shc-patch-medication-statement-03
    severity:
      v: error
    human:
      v: When the part parameter named 'path' has a value of 'MedicationStatement.dosage[0]' and the part parameter named 'name' has a value of 'text', the part parameter named 'value' SHALL have a value of type string.
    expression:
      v: parameter.where(part.where(name='path').value = 'MedicationStatement.dosage[0]' and part.where(name='name').value = 'text').exists() implies parameter.where(part.where(name='path').value = 'MedicationStatement.dosage[0]' and part.where(name='name').value = 'text').part.where(name='value').value is string
    source:
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
      l: SHCPatchMedicationStatement
  constraint:
    key:
      v: shc-patch-medication-statement-04
    severity:
      v: error
    human:
      v: When the part parameter named 'path' has a value of 'MedicationStatement' and the part parameter named 'name' has a value of 'note', the part parameter named 'value' SHALL have a value of type Annotation.
    expression:
      v: parameter.where(part.where(name='path').value = 'MedicationStatement' and part.where(name='name').value = 'note').exists() implies parameter.where(part.where(name='path').value = 'MedicationStatement' and part.where(name='name').value = 'note').part.where(name='value').value is Annotation
    source:
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
      l: SHCPatchMedicationStatement
  constraint:
    key:
      v: shc-patch-medication-statement-05
    severity:
      v: error
    human:
      v: When the part parameter named 'path' has a value of 'MedicationStatement.note[0]' and the part parameter named 'name' has a value of 'text', the part parameter named 'value' SHALL have a value of type markdown.
    expression:
      v: parameter.where(part.where(name='path').value = 'MedicationStatement.note[0]' and part.where(name='name').value = 'text').exists() implies parameter.where(part.where(name='path').value = 'MedicationStatement.note[0]' and part.where(name='name').value = 'text').part.where(name='value').value is markdown
    source:
      v: https://smartforms.csiro.au/ig/StructureDefinition/SHCPatchMedicationStatement
      l: SHCPatchMedicationStatement
element:
  id:
    v: Parameters.parameter
  extension:
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:process
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
        l: SHCHostFHIRServer
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  extension:
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:populate
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
        l: SHCApp
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  path:
    v: Parameters.parameter
  min:
    v: 1
  must support:
    v: true
element:
  id:
    v: Parameters.parameter.name
  extension:
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:process
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
        l: SHCHostFHIRServer
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  extension:
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:populate
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
        l: SHCApp
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  path:
    v: Parameters.parameter.name
  fixed: String
    v: operation
  must support:
    v: true
element:
  id:
    v: Parameters.parameter.part
  path:
    v: Parameters.parameter.part
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: name
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 4
element:
  id:
    v: Parameters.parameter.part:type
  extension:
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:process
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
        l: SHCHostFHIRServer
    url:
      v: http://hl7.org/fhir/StructureDefinition/obligation
      l: obligation
  extension:
    extension:
      url:
        v: code
        l: code
      value: Code
        v: SHALL:populate
    extension:
      url:
        v: actor
        l: actor
      value: Canonical
        v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
        l: SHCApp

v: Parameters.parameter.part

v: type

v: Patch operation to perform

v: 1

v: 1

code:
  v: BackboneElement
  l: BackboneElement

v: true

id:
  v: Parameters.parameter.part:type.name
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.name
fixed: String
  v: type
must support:
  v: true

id:
  v: Parameters.parameter.part:type.value[x]
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
min:
  v: 1
type:
  code:
    v: code
    l: code
fixed: Code
  v: add
must support:
  v: true

id:
  v: Parameters.parameter.part:path
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part
slice name:
  v: path
short:
  v: Where to perform the operation
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
must support:
  v: true

id:
  v: Parameters.parameter.part:path.name
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.name
fixed: String
  v: path
must support:
  v: true

id:
  v: Parameters.parameter.part:path.value[x]
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
min:
  v: 1
type:
  code:
    v: string
    l: string
must support:
  v: true
binding:
  strength:
    v: required
  value set:
    v: https://smartforms.csiro.au/ig/ValueSet/SHCPatchMedicationStatementElementPath
    l: SHCPatchMedicationStatementElementPath

id:
  v: Parameters.parameter.part:name
path:
  v: Parameters.parameter.part
slice name:
  v: name
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: Parameters.parameter.part:name.name
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.name
fixed: String
  v: name
must support:
  v: true

id:
  v: Parameters.parameter.part:name.value[x]
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
min:
  v: 1
type:
  code:
    v: string
    l: string
must support:
  v: true
binding:
  strength:
    v: required
  value set:
    v: https://smartforms.csiro.au/ig/ValueSet/SHCPatchMedicationStatementElementName
    l: SHCPatchMedicationStatementElementName

id:
  v: Parameters.parameter.part:value
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part
slice name:
  v: value
short:
  v: Replacement value
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
must support:
  v: true

id:
  v: Parameters.parameter.part:value.name
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.name
fixed: String
  v: value
must support:
  v: true

id:
  v: Parameters.parameter.part:value.value[x]
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
slicing:
  discriminator:
    type:
      v: type
    path:
      v: $this
  ordered:
    v: false
  rules:
    v: open
min:
  v: 1
type:
  code:
    v: code
    l: code
type:
  code:
    v: markdown
    l: markdown
type:
  code:
    v: string
    l: string
type:
  code:
    v: Annotation
    l: Annotation
type:
  code:
    v: Dosage
    l: Dosage
condition:
  v: shc-patch-medication-statement-01
condition:
  v: shc-patch-medication-statement-02
condition:
  v: shc-patch-medication-statement-03
condition:
  v: shc-patch-medication-statement-04
condition:
  v: shc-patch-medication-statement-05
must support:
  v: true

id:
  v: Parameters.parameter.part:value.value[x]:valueCode
path:
  v: Parameters.parameter.part.value[x]
slice name:
  v: valueCode
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
must support:
  v: true
binding:
  strength:
    v: required
  value set:
    v: https://smartforms.csiro.au/ig/ValueSet/MedicationStatementStatusLimited
    l: MedicationStatementStatusLimited

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
slice name:
  v: valueDosage
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Dosage
    l: Dosage
must support:
  v: true

id:
  v: Parameters.parameter.part:value.value[x]:valueDosage.text
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x].text
min:
  v: 1
must support:
  v: true

id:
  v: Parameters.parameter.part:value.value[x]:valueMarkdown
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
slice name:
  v: valueMarkdown
min:
  v: 0
max:
  v: 1
type:
  code:
    v: markdown
    l: markdown
must support:
  v: true

id:
  v: Parameters.parameter.part:value.value[x]:valueAnnotation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
slice name:
  v: valueAnnotation
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Annotation
    l: Annotation
must support:
  v: true

id:
  v: Parameters.parameter.part:value.value[x]:valueAnnotation.text
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:process
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCHostFHIRServer
      l: SHCHostFHIRServer
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate-if-known
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x].text
must support:
  v: true

id:
  v: Parameters.parameter.part:pathLabel
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part
slice name:
  v: pathLabel
short:
  v: Human readable representation of the path. Typically this is the relevant item text from the Questionnaire.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
must support:
  v: true

id:
  v: Parameters.parameter.part:pathLabel.name
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.name
fixed: String
  v: pathLabel
must support:
  v: true

id:
  v: Parameters.parameter.part:pathLabel.value[x]
extension:
  extension:
    url:
      v: code
      l: code
    value: Code
      v: SHALL:populate
  extension:
    url:
      v: actor
      l: actor
    value: Canonical
      v: https://smartforms.csiro.au/ig/ActorDefinition/SHCApp
      l: SHCApp
  url:
    v: http://hl7.org/fhir/StructureDefinition/obligation
    l: obligation
path:
  v: Parameters.parameter.part.value[x]
min:
  v: 1
type:
  code:
    v: string
    l: string
must support:
  v: true