Hello,
we are testing our app (confidential patient-facing) by fetching resources for different test patients of the Smart family. Certain MedicationRequest resources for Wilma Smart are causing our code to throw the following error:
dosageInstruction.0.timing.repeat.boundsPeriod.start: Cast to date failed for value "{
extension: [
{
valueCode: 'not-permitted',
}
]
}"
If I understand correctly, this is because the dosageInstruction[i].timing.repeat.boundsPeriod.start field is supposed to contain a Date, according to the HL7 specs, but in these particular documents, there is no Date and instead the field contains an Extension object, which throws off our code since it expects a Date.
Is this normal? Would such an issue be encountered in production data as well?
The documents affected are: MedicationRequest/319129181, MedicationRequest/335225101, MedicationRequest/335225087, MedicationRequest/335225073, MedicationRequest/335225059, MedicationRequest/335214239, MedicationRequest/335172621
Thanks,
Francesca