Stream: implementers
Topic: How to use Jurisdiction codes
Matthijs van der Wielen (Dec 15 2021 at 07:39):
When you include the Jurisdiction in a package manifest you can use three different CodeSystems, the ISO-3166, ISO:3166-2 and unstats.un.org. Now I am not entirely sure what the right way of using the ISO:3166-2 is. How do I include the "-2" part. For example if I want to get the Jurisdiction for England, according to https://build.fhir.org/valueset-jurisdiction.html it should something like: urn:iso:std:iso:3166:-2:GB-ENG
The two things I want to confirm is:
- whether there should be a ":" before "-2" since this does not appear on https://en.wikipedia.org/wiki/ISO_3166-2:GB
- and whether the code should be preceded by a ":" or a "#" which used in the hl7.fhir.us.ecr package manifest: https://simplifier.net/packages/hl7.fhir.us.ecr/1.1.0/files/297990
René Spronk (Dec 15 2021 at 07:51):
If I remember correctly (from discussions related to language codes) -2 need not be mentioned, the parts are 'value sets' within one and the same code system. But I stand to be corrected, this not being my primary area of expertise.
Kevin Mayfield (Dec 15 2021 at 08:39):
The reason behind this is to distinguish England NHS profiles from the wider UK (& NHS) profiles.
So we don't cause confusion in Scottish or Welsh NHS.
Kevin Mayfield (Dec 15 2021 at 08:41):
We can move to the UK code (GB) if this causes issues.
Matthijs van der Wielen (Dec 15 2021 at 08:52):
It should be possible to use the 3166-2 valueset since it is in the jurisdiction valueset in build.fhir.org. The thing I want to make sure is how we should use the codes correctly.
Lloyd McKenzie (Dec 15 2021 at 20:43):
The URL for the code system doesn't change, just the code.
Matthijs van der Wielen (Dec 16 2021 at 11:15):
@Lloyd McKenzie Thank you for the input. If I understand you correctly, the example that Kevin mentioned, would than be urn:iso:std:iso:3166:-2#GB-ENG. Right?
Lloyd McKenzie (Dec 16 2021 at 19:28):
The url would be "urn:iso:sdt:iso:3166:-2". The code would be "GB-ENG".
Elliot Silver (Dec 16 2021 at 23:04):
@Lloyd McKenzie , is that the right code system url? I thought it was all urn:iso:std:iso:3166 as the code system for 2-letter (http://hl7.org/fhir/ValueSet/iso3166-1-2) and 3-letter (http://hl7.org/fhir/ValueSet/iso3166-1-3) country codes (collectively value set urn:iso:std:iso:3166) and subnational jurisdictions (value set urn:iso:std:iso:3166:-2). There isn't a separate code system for subnational codes.
Lloyd McKenzie (Dec 16 2021 at 23:15):
Ah, you're correct @Elliot Silver. Thanks for checking.
Elliot Silver (Dec 16 2021 at 23:23):
No problem, I've fought with those value sets enough, so might as well save others the pain.
Last updated: Apr 12 2022 at 19:14 UTC