Stream: implementers
Topic: String datatype in FHIR/R4
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?
Grahame Grieve (May 12 2020 at 13:39):
the official upper limit you cannot exceed anywhere is 1MB
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
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?
Grahame Grieve (May 12 2020 at 13:42):
The Cerner sandbox documentation should document that
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
Grahame Grieve (May 12 2020 at 13:46):
Guess you'll have to ask on the Cerner support forum
Oleksiy Yemelin (May 12 2020 at 13:46):
Thank you!
Md Nazrul Islam (Aug 15 2020 at 11:25):
Should String
datatype accept an empty string like "" or '' ?
John Moehrke (Aug 15 2020 at 14:02):
no. a string must have content. Else the element would simply be missing.
Jens Villadsen (Aug 16 2020 at 18:40):
@Md Nazrul Islam http://build.fhir.org/datatypes.html#string for detailed rules
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.
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