# FHIR Bridge - Diagnostic Report & MedicationStatement **Category:** [Implementation](https://discourse.openehr.org/c/implem/39) **Created:** 2023-08-07 13:33 UTC **Views:** 466 **Replies:** 6 **URL:** https://discourse.openehr.org/t/fhir-bridge-diagnostic-report-medicationstatement/4325 --- ## Post #1 by @ISys Hi, I have been testing in the last time working of FHIR Bridge using a attached Postman collection and I've encountered some issues with 2 requests - Post DiagnosticReport and MedicationStatement. When trying to send DiagnosticReport there is: ``` An error has occurred: Coding must have a display or TerminologyService must not be null ``` With MedicationStatement: ``` {"error":"Unprocessable Entity","message":"/content[openEHR-EHR-OBSERVATION.medication_statement.v0, 1]/data: Attribute data of class OBSERVATION does not match existence 1..1"} ``` The requests are as they were in the collection and I did not changed anything. Did anything changes in working of FHIR Bridge for those objects? Thank you --- ## Post #2 by @SevKohler 1. You need a terminologyService for that example as explained. 2. maybe that request is just old and the validation of ehrbase is more rigid now compared to back then. --- ## Post #3 by @ISys Thanks Severin. I resolved the first issue with terminologyService, however still no idea with second one. Isn't the validation of request connected with the OPT template that FHIR Bridge contains? --- ## Post #4 by @ian.mcnicoll The second error is saying that the mandatory data tree in the medication statement is not being populated. Can you post a sample of the original fhir bundle? --- ## Post #5 by @ISys Sure, this is the fhir bundle that I am trying to send: ``` { "resourceType": "MedicationStatement", "meta": { "profile": [ "https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/pharmacological-therapy" ] }, "status": "active", "medicationCodeableConcept": { "coding": [ { "system": "http://snomed.info/sct", "code": "413591007", "display": "Product containing atazanavir (medicinal product)" }, { "system": "http://fhir.de/CodeSystem/dimdi/atc", "code": "J05AE08", "display": "Atazanavir" } ], "text": "Atazanavir" }, "subject": { "reference": "/Patient?identifier=urn:ietf:rfc:4122|{{patientId}}", "identifier": { "system": "urn:ietf:rfc:4122", "value": "{{patientId}}" } }, "effectiveDateTime": "2020-10-19T08:43:33+02:00" } ``` --- ## Post #6 by @ian.mcnicoll Thanks - nothing unusual to see there. Can you share the target .opt? THere was no collection attached that I can see. --- ## Post #7 by @ISys This is the opt file (this he above bundle is sample request from FHIR Bridge): [GECCO_Medikation.opt|attachment](upload://43dLUR7fMk2AEsGnenlf6G4bmjQ.opt) (205.4 KB) --- **Canonical:** https://discourse.openehr.org/t/fhir-bridge-diagnostic-report-medicationstatement/4325 **Original content:** https://discourse.openehr.org/t/fhir-bridge-diagnostic-report-medicationstatement/4325