3. Add constraints

We are now entering the FHIR profiling domain. Let's add some constraints to the profile to make it suitable for our imaginary FHIR implementation. The following steps show how to profile three different types of constraints. These are adjusting the cardinality of an element, constraining the type of an element and requiring the use of codes from a bound ValueSet by adjusting the ValueSet binding strength. Happy profiling!

  • Make Observation.value[x] mandatory and constrain Observation.value[x] to a Quantity DataType
    • Go to your derived profile and select Element Tree
    • Select Observation.value[x], set the cardinality 1..1 in the Element Properties screen on the right.
    • Next, only check Quantity under Types

2020-06-05 15_32_48-Forge 24.2 for R4

  • Change the ValueSet binding on Observation.interpretation
    • Select interpretation in the Element Tree
    • Change the Strenght under Valueset binding from extensible to required. This enforces the use of a code from the bound ValueSet.

2020-06-10 18_18_14-Window

  • Save profile to your working directory.

You have now created your own profile!