patternId property
patternId Specifies a value that the value in the instance SHALL follow
- that is, any value in the pattern must be found in the instance. Other
additional values may be found too. This is effectively constraint by
example.
When pattern
x
is used to constrain a primitive, it means that the value provided in the patternx
must match the instance value exactly. When patternx
is used to constrain an array, it means that each element provided in the patternx
array must (recursively) match at least one element from the instance array. When patternx
is used to constrain a complex object, it means that each property in the pattern must be present in the complex object, and its value must recursively match -- i.e.,
- If primitive: it must match exactly the pattern value
- If a complex object: it must match (recursively) the pattern value
- If an array: it must match (recursively) the pattern value.
Implementation
FhirId? get patternId => throw _privateConstructorUsedError;