Stream: implementers
Topic: markdown-primitive regex
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?
Lloyd McKenzie (Mar 08 2021 at 15:45):
Can you provide links to where you're seeing this?
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
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>
Kenneth Myhra (Mar 09 2021 at 15:21):
@Lloyd McKenzie Any further input on this. Should I create an issue for this?
Lloyd McKenzie (Mar 09 2021 at 15:21):
Looks like, yes.
Kenneth Myhra (Mar 09 2021 at 15:47):
Last updated: Apr 12 2022 at 19:14 UTC