FHIRValidationError

#1

import fhirclient.models.observation as o
obs = o.Observation.where(struct={‘subject’: ‘Patient/58b3663e3425def0f0f69562’,‘code’: ‘http://loinc.org|29463-7’,‘status’:‘final’})

obs.perform(smart.server)

FHIRValidationError: {root}:
entry.0:
resource:
Superfluous entry “encounter” in data for <fhirclient.models.observation.Observation object at 0x0000026A163A85C0>

Could anyone please help on fixing this error?

0 Likes

#2

you need to provide further information - what language is this? what libraries? Where does the validation come from?

0 Likes