Hi Brady(@brady.miller)
I am new to OpenEMR (Using Version6),
Currently i’m using the OpenEMR for my clients based on this Github link Documentation
and
I successfully completed the Registration API,
Here’s registration Request(note: post_logout_redirect_uris is optional):
curl -X POST -k -H ‘Content-Type: application/json’ -i https://openemr.probitycare.com/oauth2/default/registration --data ‘{
“application_type”: “private”,
“redirect_uris”:
[“https://demo.probitycare.com/signin/callback”],
“post_logout_redirect_uris”:
[“https://demo.probitycare.com/sign-out”],
“client_name”: “A Private App”,
“token_endpoint_auth_method”: “client_secret_post”,
“contacts”: [“rajaram@dreamguys.co.in”]
}’
Response
{“client_id”:“hMEe1W-a8K-fURlAaF5YXz78kPLz6QRNzKXqy_DQ1xg”,“client_secret”:“TUb1wZxIBN7_4LUuT217iSavMlSKYixEvpD8uHhasXo1pv-d1e4nTkaJK_98CxImrgyBa8sI0pdUpGCXPm9byg”,“registration_access_token”:“4-laGOxdHcqY1yR9Wd7mO_JQbwHze88zqcB13eEnSz0”,“registration_client_uri”:“https://openemr.probitycare.com//oauth2/default/client/WZ443DpxEnHSUBmwn_SERQ”,“client_id_issued_at”:1616075976,“client_secret_expires_at”:0,“client_role”:“user”,“contacts”:[“rajaram@dreamguys.co.in”],“application_type”:“private”,“client_name”:“A
Private App”,“redirect_uris”:[“https://demo.probitycare.com/signin/callback”],“post_logout_redirect_uris”:[“https://demo.probitycare.com/sign-out”],“token_endpoint_auth_method”:“client_secret_post”,“scope”:“openid offline_access 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/Coverage.read user/Encounter.read user/Immunization.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/AllergyIntolerance.read
patient/CareTeam.read patient/Condition.read patient/Encounter.read patient/Immunization.read patient/MedicationRequest.read patient/Observation.read patient/Patient.read patient/Procedure.read”}
Next will be an authorization code or code grant type request:
curl -X GET -k -i ‘https://openemr.probitycare.com/oauth2/default/authorize?
response_type=code
&client_id=hMEe1W-a8K-fURlAaF5YXz78kPLz6QRNzKXqy_DQ1xg
&state=f20c0bd0c67ce665ebc1bcf9b8546e06
&scope=openid email phone address api:pofh api:fhir
&redirect_uri=https://demo.probitycare.com/signin/callback’
Response
I got the following Response,
Invalid URL:
https://openemr.probitycare.com/oauth2/default/authorize?
response_type=code
&client_id=hMEe1W-a8K-fURlAaF5YXz78kPLz6QRNzKXqy_DQ1xg
&state=f20c0bd0c67ce665ebc1bcf9b8546e06
&scope=openid email phone address api:pofh api:fhir
&redirect_uri=https://demo.probitycare.com/signin/callback
Please provide me the solution
Thanks & Regards,
Raja.s