Closed DarthGizka closed 8 months ago
it's not obvious what to do about this. From my point of view, a bug has been fixed, which is that the content wasn't being validated, and now it is. What's happening is that the http://fhir.de/StructureDefinition/address-de-basis is applying a binding to the address.country to ISO 3166. Because it's a preferred binding, there's no validation error associated with the value set. But putting the ValueSet binding on it implies that "D" is in the ISO 3166 code system, and so that is checked.
Further discussion here: https://chat.fhir.org/#narrow/stream/179177-conformance/topic/Preferred.20Bindings.20on.20Strings
no, this was a bug on tx.fhir.org. which will be fixed soon
FWIW, the last validator_cli
version with the old behaviour is 6.2.7; the new behaviour was introduced with version 6.2.8.
It seems that somewhere between version 6.2.3 (OK) and 6.2.11 (b0rked)
validator_cli
started getting confused about binding strength in certain situations.The attached example resource has the value "D" for
Organization.address.country.code
, which is in conformance with its profile that binds this extensibly tohttp://fhir.abda.de/eRezeptAbgabedaten/ValueSet/DAV-VS-ERP-DEUEV-Anlage-8
. This binding overrides the preferred binding from the base profile (http://hl7.org/fhir/ValueSet/iso3166-1-2
), but that is perfectly legit.The country code "D" is accepted by
validator_cli
when validating generically (i.e. not specifying the IG for the profile in question) but 6.2.11 and 6.2.15 reject it as not conforming to ISO 3166 when doing profile-specific validation.Generic validation:
Correct profile-specific validation by version 6.2.3:
Incorrect rejection by 6.2.11 and 6.2.15:
Here are the profiles involved, from the R4 base definition to the most derived profile, and what each says about the binding of
Address.country.code
(profile URLs linked to the corresponding Simplifier pages for convenience):http://hl7.org/fhir/StructureDefinition/Address -> no binding (ISO 3166 3 letter codes recommended in a comment)
http://fhir.de/StructureDefinition/address-de-basis -> preferred binding to
http://hl7.org/fhir/ValueSet/iso3166-1-2
http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-Base-Apotheke -> extensible binding to
http://fhir.abda.de/eRezeptAbgabedaten/ValueSet/DAV-VS-ERP-DEUEV-Anlage-8
(which importshttp://fhir.de/CodeSystem/deuev/anlage-8-laenderkennzeichen
)http://fhir.abda.de/eRezeptAbgabedaten/StructureDefinition/DAV-PR-ERP-Apotheke -> inherits
Organization.address
unchangedThe snapshot of the target profile does not contain any reference to
urn:iso:std:iso:3166
, let alone a required binding.AD_Apotheke.xml.txt