FHIR Chat · Patient attributes · implementers

Stream: implementers

Topic: Patient attributes


view this post on Zulip Wadii TAHRI (May 26 2020 at 10:24):

Hi,
I have a question related to attributes Patient:

"multipleBirthBoolean" : <boolean>,
"multipleBirthInteger" : <integer>,
AND
"deceasedBoolean" : <boolean>,
"deceasedDateTime" : "<dateTime>",

My question is : Can we create an object contain properties deceasedBoolean, deceasedDateTime as in this example below ?
// deceased{
"deceasedBoolean" : <boolean>,
"deceasedDateTime" : "<dateTime>",
}

view this post on Zulip Jason Walonoski (May 26 2020 at 12:40):

No, you can't have both deceasedBoolean and deceasedDateTime because deceased[x] has a cardinality of 0..1 which means there can only be one deceased[x] element.

view this post on Zulip Jason Walonoski (May 26 2020 at 12:41):

multipleBirth[x] also is cardinality of 0..1, so you can't do that either.

view this post on Zulip Jason Walonoski (May 26 2020 at 12:42):

If you had a choice type of 0..* then you could, but I'm not sure if any choice elements exist with plural cardinality in the FHIR specification or not.

view this post on Zulip Reece Adamson (May 26 2020 at 17:39):

Categorically, an element with a choice of data type cannot repeat:

Elements that have a choice of data type cannot repeat - they must have a maximum cardinality of 1. When constructing an instance of an element with a choice of types, the authoring system must create a single element with a data type chosen from among the list of permitted data types.

From section 2.6.0.1.2 Choice of Data Types in the FHIR spec


Last updated: Apr 12 2022 at 19:14 UTC