FHIR Chat · markdown-primitive regex · implementers

Stream: implementers

Topic: markdown-primitive regex


view this post on Zulip Kenneth Myhra (Mar 08 2021 at 15:41):

Looking through the fhir XSD I notice the mardown-primitive using regex: [ \r\n\t\S]+ while the spec says it should use regex: \s*(\S|\s)*.

Which one is correct?

view this post on Zulip Lloyd McKenzie (Mar 08 2021 at 15:45):

Can you provide links to where you're seeing this?

view this post on Zulip Kenneth Myhra (Mar 08 2021 at 15:50):

Downloading the XSDs from here http://hl7.org/fhir/fhir-all-xsd.zip.

And regex on markdown primitive here: http://hl7.org/fhir/datatypes.html#markdown

view this post on Zulip Kenneth Myhra (Mar 08 2021 at 17:25):

Link directly to fhir-single.xsd: http://hl7.org/fhir/fhir-single.xsd

<xs:simpleType name="markdown-primitive">
  <xs:restriction base="xs:string">
    <xs:minLength value="1"/>
    <xs:pattern value="[ \r\n\t\S]+"/>
  </xs:restriction>
</xs:simpleType>

view this post on Zulip Kenneth Myhra (Mar 09 2021 at 15:21):

@Lloyd McKenzie Any further input on this. Should I create an issue for this?

view this post on Zulip Lloyd McKenzie (Mar 09 2021 at 15:21):

Looks like, yes.

view this post on Zulip Kenneth Myhra (Mar 09 2021 at 15:47):

J#31484


Last updated: Apr 12 2022 at 19:14 UTC