I have been experiencing issues whilst trying to POST a new MedicationStatement to our client site. Referring to the documentation
, The only requirements to do so are:
- resourceType (MedicationStatement)
- patient (reference)
- status ("active")
- medication (either as a contained reference or a CodeableConcept)
- Only MedicationStatements about home medications or historical medications can be created
I have confirmed my chosen medicine is a Home Medication for my test patient. I provided medication as a CodeableConcept for aspirin using rxnorm. Instead of a 201 Created with Location header, I receive a 422 Unprocessable entity.
X-Request-Id : ffdb5ac8be9991f0372e1e6bdfddf602
Simple Example (Patient Id replaced with place holder) :
This behavior is consistent for differing patients, differing Home Medications, and providing medicines as a contained reference vs a CodeableConcept. I must be missing something here?