Stream: terminology
Topic: Code systems with invalid URL
Travis Bean (Sep 18 2019 at 15:30):
We have found several code systems that have invalid Code System URLs, because they have a pipe (|) character in the URL, rather than the properly encoded '%7C'. I have included links to several of these below. Question is should the FHIR spec include the properly encoded URLs (simple oversight) or is it up to consumers to encode the URLs themselves?
Example Terminology Page:
http://hl7.org/fhir/v2/0006/2.1/index.html
Specific Code Systems
http://terminology.hl7.org/CodeSystem/v2-0006|2.1
http://terminology.hl7.org/CodeSystem/v2-0006|2.4
http://terminology.hl7.org/CodeSystem/v2-0360|2.3.1
http://terminology.hl7.org/CodeSystem/v2-0360|2.7
http://terminology.hl7.org/CodeSystem/v2-0391|2.4
http://terminology.hl7.org/CodeSystem/v2-0391|2.6
Grahame Grieve (Sep 18 2019 at 15:42):
they are not wrong. Those characters may be encoded but do not have to be
Travis Bean (Sep 18 2019 at 16:26):
I believe the spec deems them as "unsafe" and has a bit stronger language about encoding. However, it sounds like that was an intentional implementation choice and we can respect that.
https://tools.ietf.org/html/rfc1738
Michael Lawley (Sep 22 2019 at 02:10):
These are URIs, so I believe it's https://tools.ietf.org/html/rfc3986 that applies and pchar
does not include |
so should it not always be encoded in a URI-typed field?
Last updated: Apr 12 2022 at 19:14 UTC