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.
An example is this Surgical Post-Op Note that PIH uses in Mirebalais
This file has been truncated.
~ The contents of this file are subject to the OpenMRS Public License
~ Version 1.0 (the "License"); you may not use this file except in
~ compliance with the License. You may obtain a copy of the License at
~ Software distributed under the License is distributed on an "AS IS"
~ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
~ License for the specific language governing rights and limitations
~ under the License.
~ Copyright (C) OpenMRS, LLC. All Rights Reserved.
<htmlform id="post-op-surgical-note" class="simple-form-ui" formUuid="d29a49b1-957b-4bcb-b192-07484de4165b"
formName="Brief post-operative note"
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:
Assisting surgeons (x2)