Medication.form.coding.code Invalid code format
# general
y
Hello. I'm making a call to client.executeBatch with this resource:
{"resourceType":"Medication","identifier":[{"system":"https://aylohealth.com/medication/rxId","value":"282899"}],"code":{"coding":[{"system":"http://hl7.org/fhir/sid/ndc","code":"73796-79192","display":"10 Series+ BP Monitr/Upper Arm Device"},{"system":"https://aylohealth.com/medication/name","code":"10 Series+ BP Monitr/Upper Arm Device"}]},"form":{"coding":[{"system":"http://snomed.info/sct","code":"385055001","display":"Tablet"},{"system":"https://aylohealth.com/medication/formulation","code":"Device","display":"Device"},{"system":"https://aylohealth.com/medication/strength","code":"- "}]}}
and getting an error response:
{"outcome":{"resourceType":"OperationOutcome","issue":[{"severity":"error","code":"structure","details":{"text":"Invalid code format"},"expression":["Medication.form.coding.code"]}]},"status":"400"}
What is wrong with the resource structure I'm passing in?
y
Thanks @node5585. Now I see that the culprit was this: "code":"- "
r
Thanks for the follow up @yhabotensomata !
Would love to know more about what you're working on. Feel free to introduce yourself in the #1219417603823374366 channel!
144 Views