Open carbon-hvze opened 11 months ago
Examples: Location.type, Observation.interpretation, Observation.category
In this case :binding schema attribute is added to the top level data attribute, for example (Location.type)
"type" {:binding {:valueSet "http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType" :codesystems ["http://terminology.hl7.org/CodeSystem/v3-RoleCode"] :strength "required"}}
There is no need to explicitly constraint Coding or Code types further. A rule of thumb here is that terminology binding is added to the topmost element.
next steps:
Several comments on the FHIRSchema bundle. I ve added myself to next steps where the ball is on our side.
@Yue-Qi7 added a regex for Id datatype which enables format validation per FHIR R4 spec. We ve decided to validate primitive constraints defined in FHIR spec by default.
A different usecase would be to allow only UUID format of Id, in this case, FHIRpath regex is perfectly valid.
next steps
To make Coding always require system, code and display we may:
Profile example
{:base "hl7.fhir.r4.core#4.0.1/Coding" :fqn "custom-profiles#1.0.0/coding" :url "https://custom-profiles/coding" :required #{"system" "code" "display"}}
and in Encounter schema:{"class" {:type "custom-profiles#1.0.0/coding"}}
next steps:CodeableConcept For CodeableConcept it makes sense to reuse CodaCoding profile and further constraint based on it
Coding Period
with FTR we make ICD-10 available by default in storage runtime, but for now we will also explicitly include it in the validator demo
next steps
So in demo it is indeed possible to reference , for instance, a Condition from Encounter.subject.
next steps:
Condition.onset onsetDateTime may be omitted. It is used when you want to further constraint a selected type . In this case in onsetDateTime you could provide a regex for date format.
Encounter.location. array : true in general may be omitted since attribute is already defined as a collection in base IG.
FHIRPath is strongly typed so we have to make a conversion from date to string if we use "date" type for Patient.birthdate
FHIRPath built-in .toString is available
next steps :