PackagesCanonicalsLogsProblems
    Packages
    se.electronichealth.fhir.merier.r5@0.5.0
    http://electronichealth.se/fhir/NDI/StructureDefinition/device-er
description: This profile holds information about a set of capabilities defined for an API.
package_name: se.electronichealth.fhir.merier.r5
derivation: constraint
name: DeviceEr
type: Device
elements:
  displayName: {mustSupport: true, index: 0}
  status:
    short: active | inactive
    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/NDI/ValueSet/er-device-statuses'}
    mustSupport: true
    index: 1
  conformsTo:
    mustSupport: true
    index: 2
    extensions:
      apiSpecification: {url: 'http://electronichealth.se/fhir/NDI/StructureDefinition/device-conformsto-actor-definition-er', min: 1, type: Extension, mustSupport: true, index: 4}
    elements:
      extension:
        mustSupport: true
        index: 3
        slicing:
          slices:
            apiSpecification:
              match: {}
              schema: {type: Extension, mustSupport: true, url: 'http://electronichealth.se/fhir/NDI/StructureDefinition/device-conformsto-actor-definition-er', index: 4}
              min: 1
      specification:
        binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/NDI/ValueSet/er-endpoint-connection-type'}
        mustSupport: true
        index: 5
    required: [extension]
  property:
    mustSupport: true
    array: true
    max: 3
    index: 6
    slicing:
      rules: open
      ordered: false
      description: Slice property based on code
      discriminator:
      - {path: type.coding, type: value}
      min: null
      max: 3
      slices:
        securityMethod:
          match:
            type: {coding: null}
          schema:
            mustSupport: true
            index: 7
            elements:
              type:
                mustSupport: true
                index: 8
                elements:
                  coding:
                    mustSupport: true
                    index: 9
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://electronichealth.se/CodeSystem/er-device-property-types'}
                        mustSupport: true
                        index: 10
                      code:
                        pattern: {type: Code, value: security-method}
                        mustSupport: true
                        index: 11
                    required: [system, code]
                required: [coding]
              value:
                mustSupport: true
                choices: [valueCodeableConcept]
                index: 13
              valueCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: value, index: 14}
              value[x]:
                elements:
                  coding:
                    binding: {strength: required, valueSet: 'http://electronichealth.se/fhir/NDI/ValueSet/er-device-security-method'}
                    mustSupport: true
                    index: 15
                    elements:
                      system: {mustSupport: true, index: 16}
                      code: {mustSupport: true, index: 17}
                    required: [system, code]
                required: [coding]
        authorizationServerUrl:
          match:
            type: {coding: null}
          schema:
            mustSupport: true
            index: 18
            elements:
              type:
                mustSupport: true
                index: 19
                elements:
                  coding:
                    mustSupport: true
                    index: 20
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://electronichealth.se/CodeSystem/er-device-property-types'}
                        mustSupport: true
                        index: 21
                      code:
                        pattern: {type: Code, value: authorization-server-url}
                        mustSupport: true
                        index: 22
                    required: [system, code]
                required: [coding]
              value:
                mustSupport: true
                choices: [valueString]
                index: 24
              valueString: {type: string, mustSupport: true, choiceOf: value, index: 25}
        endpointTemplateUrl:
          match:
            type: {coding: null}
          schema:
            mustSupport: true
            index: 26
            elements:
              type:
                mustSupport: true
                index: 27
                elements:
                  coding:
                    mustSupport: true
                    index: 28
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://electronichealth.se/CodeSystem/er-device-property-types'}
                        mustSupport: true
                        index: 29
                      code:
                        pattern: {type: Code, value: endpoint-template-url}
                        mustSupport: true
                        index: 30
                    required: [system, code]
                required: [coding]
              value:
                mustSupport: true
                choices: [valueString]
                index: 32
              valueString: {type: string, mustSupport: true, choiceOf: value, index: 33}
  endpoint:
    type: Reference
    mustSupport: true
    refers: ['http://electronichealth.se/fhir/NDI/StructureDefinition/endpoint-er']
    index: 34
package_version: 0.5.0
class: profile
kind: resource
url: http://electronichealth.se/fhir/NDI/StructureDefinition/device-er
base: http://hl7.org/fhir/StructureDefinition/Device
version: 0.1.0
required: [displayName, status]