Stream: tooling
Topic: Validator complains about Forge snapshot
Morten Ernebjerg (Dec 11 2020 at 08:23):
I created an R4 profile on Encounter in Forge (just opened and saved it in the new Forge release). In my profile, I do not touch the Encounter.length
element, However, when I validate it with the lates JAR validator (Version 5.2.10 (Git# 0019153a26e2)), I get the following error
Error @ StructureDefinition.snapshot.element[39].binding : The element Encounter.length has a binding, but no bindable types are present [Duration]
I pasted in the relevant part of the snapshot below. Is this an issue with Forge or the validator?
{
"id": "Encounter.length",
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode": "normative"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
"valueCode": "4.0.0"
}
],
"path": "Encounter.length",
"short": "Quantity of time the encounter lasted (less time absent)",
"definition": "Quantity of time the encounter lasted. This excludes the time during leaves of absence.",
"comment": "May differ from the time the Encounter.period lasted because of leave of absence.",
"min": 0,
"max": "1",
"base": {
"path": "Encounter.length",
"min": 0,
"max": "1"
},
"type": [
{
"code": "Duration"
}
],
"condition": [
"ele-1"
],
"constraint": [...],
"binding": {
"extension": [
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
"valueCanonical": "http://hl7.org/fhir/ValueSet/all-time-units"
},
{
"url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
"valueString": "DurationUnits"
}
],
"strength": "extensible",
"description": "Appropriate units for Duration.",
"valueSet": "http://hl7.org/fhir/ValueSet/duration-units"
},
"mapping": [...]
}
Lloyd McKenzie (Dec 11 2020 at 15:10):
@Ward Weistra
Last updated: Apr 12 2022 at 19:14 UTC