What will be api url for fetching Continuity of Care Document (CCD). Do we need to do any extra configuration in openemr for calling CCD and AllergyIntolerance rest api.
Thanks,
What will be api url for fetching Continuity of Care Document (CCD). Do we need to do any extra configuration in openemr for calling CCD and AllergyIntolerance rest api.
Thanks,
Look at the FHIR doc-ref operation. You’ll need to make sure you have the carecoordination module setup in order to generate the CCD.
http://hostname:8082/apis/default/fhir/DocumentReference/e44380bc-8dc1-4bd7-9644-35e8eb148617
Can you please guide me.
Thanks,
Do you know how to get an OAuth2 access token? You haven’t mentioned anything about how you are grabbing the AccessToken as its clear you are getting a 401 access denied error. That suggests your AccessToken is either missing or that you are missing scopes. You need an access token with the DocumentReference.read scope. You’ll also need the Binary.read scope to grab the inner document.
Suggest check to see what version OpenEMR. The example CCDA shown looks old!
Yeah. I can able to generate access token. I am able to fetch other individual fhir resources
“scope”: “openid api:oemr api:fhir api:port user/allergy.read user/allergy.write user/appointment.read user/appointment.write user/dental_issue.read user/dental_issue.write user/document.read user/document.write user/drug.read user/encounter.read user/encounter.write user/facility.read user/facility.write user/immunization.read user/insurance.read user/insurance.write user/insurance_company.read user/insurance_company.write user/insurance_type.read user/list.read user/medical_problem.read user/medical_problem.write user/medication.read user/medication.write user/message.write user/patient.read user/patient.write user/practitioner.read user/practitioner.write user/prescription.read user/procedure.read user/soap_note.read user/soap_note.write user/surgery.read user/surgery.write user/vital.read user/vital.write user/AllergyIntolerance.read user/CareTeam.read user/Condition.read user/Encounter.read user/Immunization.read user/DocumentReference.$docref user/DocumentReference.read user/Location.read user/Medication.read user/MedicationRequest.read user/Observation.read user/Organization.read user/Organization.write user/Patient.read user/Patient.write user/Practitioner.read user/Practitioner.write user/PractitionerRole.read user/Procedure.read patient/encounter.read patient/patient.read patient/Encounter.read patient/Patient.read patient/DocumentReference.$docref patient/DocumentReference.read”