Following this documentation link https://fhir.epic.com/Documentation?docId=oauth2§ion=BackendOAuth2Guide
I could create patient successfully, please guide me on how to create encounter for the patient created, as I couldnt find endpoint to post encounter in epic. Am I missing anything or is not possible to create encounter through POST method?
Thanks
Epic's HL7v2 ADT interface supports encounter creation. The HL7v2 interface allows you to provide information that is usually required for encounter creation, like which insurance to bill for that encounter (or indicate if the encounter should be self-pay), what relevant consents were collected, etc.
A simple REST API to create only an encounter usually won't be sufficient to meet real-world workflow requirements. In order to complete a full "encounter create" workflow, you'd likely need to orchestrate (at least) these APIs:
Also, if any of these fail, you may need to manage rolling back, which can get complicated (especially if the rollback involves deleting a patient).
Until all of these APIs (and probably more) are available, your best option is to use the HL7v2 interface for creating new encounters.