Use cases
Create all entities case
We want to create a ServiceRequest with new
- Create Patient with unique business identifier
POST [base]/Patient
- Keep Patient logical ID given in the response payload.
- Search for PractitionerRole with Practitioner business identifier and Organization business identifier.
GET [base]/PractitionerRole?practitioner.identifier={liscenceNumber}&organization.identifier={msssCode}
- Keep PractitionerRole logical ID.
- Create ServiceRequest with Patient reference and PractitionerRole reference
POST [base]/ServiceRequest
Search case
We want to create a ServiceRequest with existing Patient and PractitionerRole
- Search for Patient with unique business identifier
GET [base]/Patient?identifier={NAM}
- Keep Patient logical ID.
- Search for PractitionerRole with Practitioner business identifier and Organization business identifier.
GET [base]/PractitionerRole?practitioner.identifier={liscenceNumber}&organization.identifier={msssCode}
- Keep PractitionerRole logical ID.
- Create ServiceRequest with Patient reference and PractitionerRole reference
POST [base]/ServiceRequest