I’ve been trying to load a Bundle from the GP Connect test API into the smart-on-fhir python client, but getting some errors:
clinicalStatus:
`with_json()` on <class 'fhirclient.models.codeableconcept.CodeableConcept'> only takes dict or list of dict, but you provided <class 'str'>
verificationStatus:
`with_json()` on <class 'fhirclient.models.codeableconcept.CodeableConcept'> only takes dict or list of dict, but you provided <class 'str'>
The responses from the API don’t seem to conform to the standard listed on the website.
The standard states that these responses should be in a Coding form, but the test API provides the values as strings:
"clinicalStatus": "resolved",
"verificationStatus": "unconfirmed",
Is this an error on my part, or is the test API returning the wrong type of values?
There seems to be a similar error with the ‘MedicationStatement’ resource type, where the following error occurs:
a Superfluous entry "taken" in data for <fhirclient.models.medicationstatement.MedicationStatement object at 0x1050226d0>
This is due to the presence of "taken": "unk",
within the resource.
Thanks,
James