Stream: shorthand
Topic: Restricting Element Definitions
abed tamimi (Dec 25 2020 at 14:02):
Hi All, an way to restrict max length of string data type using shorthand
Nick Freiter (Dec 28 2020 at 14:06):
If you are looking to restrict the max length of a specific string value, say Patient.name.family
, that seems like a good use for the maxLength
property. In FSH, you would set that by doing:
* Patient.name.family ^maxLength = 32
to indicate that Patient.name.family
should be at most 32 characters.
Last updated: Apr 12 2022 at 19:14 UTC