What are Encounter Roles?

Hi all,

Could anyone point me to some documentation, typical use cases, etc? And also, if possible, to some pieces of code where to see how they have been set to encounters.

Thank you!

An example is this Surgical Post-Op Note that PIH uses in Mirebalais Hospital:

If you look at the 4 examples of encounterProviderAndRole, each one has a different encounter role. They are specified as opaque UUIDs, but if you look at the comments a few lines before you can see the meaning:

  • Attending surgeon
  • Assisting surgeons (x2)
  • Anesthesiologists (x2)
  • Nurses (x2)