PackagesCanonicalsLogsProblems
    Packages
    rs/ca.ab.fhir.aberec1@1.0.1
    https://www.alberta.ca/fhir/aberec/StructureDefinition/LocationABeReC
description: This profile defines a set of constraints to the FHIR Location resource for use in Alberta eReferral and eConsult (AB:eReC). It re-profiles the CA-eReC Location profile and it includes constraints that represent the minimum expectations for the Location resource when used in the AB:eReC.
package_name: rs/ca.ab.fhir.aberec1
derivation: constraint
name: LocationABeReC
type: Location
elements:
  identifier:
    index: 0
    elements:
      type: {label: 'Must be a valid delivery site type (''domain'') associated to the submitted identifier value ''AHWFACID'' for AH Billing ID type, ''DPHIEXSTKID'' for site WDFA key type', mustSupport: true, index: 1}
      value: {label: 'Must be a valid provincially-assigned delivery site identifier (Site WDFA key, AH Billing ID, or other approved identifier)', index: 2}
    required: [type]
  status: {index: 3}
  name: {index: 4}
  telecom:
    index: 5
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: 1
      slices:
        Phone:
          match: {system: phone}
          schema:
            mustSupport: true
            array: true
            min: 1
            _required: true
            index: 6
            elements:
              system:
                pattern: {type: code, value: phone}
                type: code
                index: 7
              value: {index: 8}
            required: [system, value]
        Fax:
          match: {system: fax}
          schema:
            array: true
            index: 9
            elements:
              system:
                pattern: {type: code, value: fax}
                type: code
                index: 10
              value: {index: 11}
            required: [system, value]
  address:
    index: 12
    elements:
      line: {mustSupport: true, index: 13}
      city: {index: 14}
      state: {mustSupport: true, index: 15}
      postalCode: {index: 16}
    required: [city, line, postalCode, state]
  partOf:
    type: Reference
    refers: ['https://www.alberta.ca/fhir/aberec/StructureDefinition/LocationABeReC']
    index: 17
package_version: 1.0.1
class: profile
kind: resource
url: https://www.alberta.ca/fhir/aberec/StructureDefinition/LocationABeReC
base: http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Location
version: 1.0.1
required: [address, identifier, name, telecom]