PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-emr@1.0.0-ballot
    http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-deviceusestatement
description: Use of an implanted device in the Emergency Record. The `bodySite` CodeableConcept may carry the ChEmrBodyStructureReference extension to link to a `ChEmrBodyStructure` for structured anatomy + laterality.
package_name: ch.fhir.ig.ch-emr
derivation: constraint
name: ChEmrDeviceUseStatement
type: DeviceUseStatement
elements:
  subject:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-ips/StructureDefinition/ch-ips-patient']
    index: 0
  device:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-device']
    index: 1
  bodySite:
    binding: {strength: preferred, valueSet: 'http://hl7.org/fhir/ValueSet/body-site'}
    constraint:
      ch-emr-dus-bodysite-matches-bodystructure: {human: 'If bodySite carries the body-structure-reference extension, bodySite.coding must equal the referenced BodyStructure.location.coding.', source: 'http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-deviceusestatement', severity: error, expression: 'extension.where(url = ''http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-body-structure-reference'').empty() or coding = (extension.where(url = ''http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-body-structure-reference'').value as Reference).resolve().location.coding'}
    mustSupport: true
    index: 2
    extensions:
      bodyStructure:
        url: http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-body-structure-reference
        type: Extension
        mustSupport: true
        index: 3
        elements:
          value:
            choices: [valueReference]
            index: 5
          valueReference:
            type: Reference
            choiceOf: value
            refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-bodystructure']
            index: 6
    elements:
      extension:
        type: Extension
        mustSupport: true
        url: http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-body-structure-reference
        index: 3
        slicing:
          slices:
            bodyStructure:
              match: {}
              schema:
                type: Extension
                mustSupport: true
                url: http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-body-structure-reference
                index: 3
                elements:
                  value:
                    choices: [valueReference]
                    index: 5
                  valueReference:
                    type: Reference
                    choiceOf: value
                    refers: ['http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-bodystructure']
                    index: 6
      coding: {mustSupport: true, index: 7}
    required: [coding]
package_version: 1.0.0-ballot
class: profile
kind: resource
url: http://fhir.ch/ig/ch-emr/StructureDefinition/ch-emr-deviceusestatement
base: http://hl7.org/fhir/uv/ips/StructureDefinition/DeviceUseStatement-uv-ips
version: 1.0.0-ballot