FHIR Chat · String datatype in FHIR/R4 · implementers

Stream: implementers

Topic: String datatype in FHIR/R4


view this post on Zulip Oleksiy Yemelin (May 12 2020 at 13:37):

Hello,
Can anybody give some information about string datatype in FHIR for example HumanName.family
https://hl7.org/fhir/r4/datatypes-definitions.html#HumanName.family
Is it possible to have 500 chars family name or there are restrictions?

view this post on Zulip Grahame Grieve (May 12 2020 at 13:39):

the official upper limit you cannot exceed anywhere is 1MB

view this post on Zulip Grahame Grieve (May 12 2020 at 13:40):

but hardly any systems actually support name lengths like that. You'll have to ask each system what length they support

view this post on Zulip Oleksiy Yemelin (May 12 2020 at 13:41):

We have some restriction in length in our db but we would like to know about cerner max length?

view this post on Zulip Grahame Grieve (May 12 2020 at 13:42):

The Cerner sandbox documentation should document that

view this post on Zulip Oleksiy Yemelin (May 12 2020 at 13:45):

Yes they have documentation
http://fhir.cerner.com/millennium/r4/individuals/practitioner/
but it redirects to hl7 structures

view this post on Zulip Grahame Grieve (May 12 2020 at 13:46):

Guess you'll have to ask on the Cerner support forum

view this post on Zulip Oleksiy Yemelin (May 12 2020 at 13:46):

Thank you!

view this post on Zulip Md Nazrul Islam (Aug 15 2020 at 11:25):

Should String datatype accept an empty string like "" or '' ?

view this post on Zulip John Moehrke (Aug 15 2020 at 14:02):

no. a string must have content. Else the element would simply be missing.

view this post on Zulip Jens Villadsen (Aug 16 2020 at 18:40):

@Md Nazrul Islam http://build.fhir.org/datatypes.html#string for detailed rules

view this post on Zulip Md Nazrul Islam (Aug 17 2020 at 05:13):

John Moehrke said:

no. a string must have content. Else the element would simply be missing.

Thank a lot for your clarification.

view this post on Zulip Md Nazrul Islam (Aug 17 2020 at 05:20):

Jens Villadsen said:

Md Nazrul Islam http://build.fhir.org/datatypes.html#string for detailed rules

Thanks a lot, actually we had String implementation based that rules https://github.com/nazrulworld/fhir.resources/blob/master/fhir/resources/fhirtypes.py#L70 , as you see we used "[ \r\n\t\S]+" regex so empty "" is not valid against that regex. and @John Moehrke has been clarified. So I think my approach is right.
Again thanks a lot.


Last updated: Apr 12 2022 at 19:14 UTC