FHIR Chat · Defining constraints on extension values · shorthand

Stream: shorthand

Topic: Defining constraints on extension values


view this post on Zulip Jean Duteau (Mar 26 2020 at 17:46):

I'm wondering if I'm specifying something incorrectly as I'm trying to put constraints on an extension value. I have the following extension definition:

  • extension[availableFlag].value[x] only boolean
  • extension[document].value[x] only Attachment
  • extension[document].valueAttachment.contentType MS
  • extension[document].valueAttachment.url 1..1 MS
  • extension[document].valueAttachment.title 1..1 MS

If I don't include the last three lines, I get what I expect:
extension:availableFlag
value[x] 0..1 boolean
extension:document
value[x] 0..1 Attachment

When I do include the last three lines, then the document extension gets sliced:
value[x] 0..1 Slice: Unordered, Open by type $this
valueAttachment 0..1
...constraints as above...

Is that proper behaviour?


Last updated: Apr 12 2022 at 19:14 UTC