The slicing mechanism enables the specification of requirements for array elements. For instance, slices can be used to define requirements such as:
An example of slicing that requires the patient’s home address to include state information:
resourceType: StructureDefinition
url: http://example.org/fhir/StructureDefinition/patient-profile
name: patient-profile
derivation: constraint
type: Patient
status: active
kind: resource
abstract: false
differential:
element:
- id: Patient.address
path: Patient.address
slicing:
discriminator:
- type: pattern
path: use
rules: open
- id: Patient.address:home
path: Patient.address
sliceName: home
min: 1
max: "1"
type:
- code: Address
patternAddress:
use: home
- id: Patient.address:home.state
path: Patient.address.state
min: 1
type:
- code: string
Get in touch with us today!