fhir-validator-app
fhir-validator-app copied to clipboard
OID validation for Organization Resource
Hi all - quick question.
Is the following OID expected to be invalid? urn:oid:1.2.3
As of 10/30/2024
- Currently getting invalid OID error message > "OIDs must be valid (1.2.3)"
- If it is expected to be invalid, can someone explain why?
As of 11/01/2024
- Issue is no longer occurring
- Did something change? If so, is there a place to know when and what was last updated?
FHIR Datatypes
https://www.hl7.org/fhir/datatypes.html
Regex: urn:oid:[0-2](\.(0|[1-9][0-9]*))+
RFC
http://www.ietf.org/rfc/rfc3001.txt
Example Organization FHIR Resource
{ "resourceType" : "Organization", "id" : "acme-lab", "identifier" : [{ "system" : "http://hl7.org/fhir/sid/us-npi", "value" : "1144221847" }, { "system" : "urn:oid:1.2.3", "value" : "321321" }], "active" : true, "type" : [{ "coding" : [{ "system" : "http://terminology.hl7.org/CodeSystem/organization-type", "code" : "prov", "display" : "Healthcare Provider" }] }], "name" : "Acme Labs", "telecom" : [{ "system" : "phone", "value" : "(+1) 734-677-7777" }, { "system" : "email", "value" : "[email protected]" }], "address" : [{ "line" : ["3300 WASHTENAW AVE STE 227"], "city" : "AMHERST", "state" : "MA", "postalCode" : "01002", "country" : "USA" }] }
Regarding invalid OIDs, this thread may help: https://chat.fhir.org/#narrow/channel/291844-FHIR-Validator/topic/Issue.20with.20OID.201.2E3.2E2
Sounds like the validator or tx.fhir.org (not sure which is responsible for checking this) rejects short OIDs. Though grahame did say that the slightly different "1.3.2" should work. I do not know anything about OIDs or what is special about 1.3.2 though.
Regarding errors around fhir r6-ballot -- something changed with packages being loaded it sounds like, and the older version of the validator that is running in this service can't handle it. We have a ticket to update the version of the validator that this runs, but I'm not sure how soon we'll be able to get to that. FYI @dehall
Much appreciated on that zulip link Rob. I was curious if any thread existed but didn't find one on my own so tried here 1st. We've adjusted code on our to do a length check. Much appreciated on this info
Regarding errors around fhir r6-ballot -- something changed with packages being loaded it sounds like, and the older version of the validator that is running in this service can't handle it. We have a ticket to update the version of the validator that this runs, but I'm not sure how soon we'll be able to get to that. FYI @dehall
Okay cool - this sounds good
- I did notice that the 1.2.3 OID no longer fails as of today and I can't seem to make it fail at all at the moment
- But the Inferno Service Base URL Test Kit is still failing for the 1.2.3 OID which is informative to know