[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openmrs-implementers
Subject:    RE: Reference Application - Privilege to Delete Encounter
From:       James Arbaugh <james () haitianhealthfoundation ! org>
Date:       2014-12-10 14:14:52
Message-ID: 0e139058b9a96acea74a607889a65c69 () mail ! gmail ! com
[Download RAW message or body]

Dear Darius,



Thank you so much.  That is exactly what I was looking for!  Your
suggestions worked great!



I have added the documentation to
https://wiki.openmrs.org/display/docs/Reference+Application#ReferenceApplication-PatientVisits




I have also created a ticket, RA-499
<https://issues.openmrs.org/browse/RA-499> to create those privileges so
the implementer doesn't have to manually create them.  Had I seen them in
the list, it would have been intuitive to try them before asking for help.



Thanks,

James



*From:* implementers@openmrs.org [mailto:implementers@openmrs.org] *On
Behalf Of *Darius Jazayeri
*Sent:* Tuesday, December 9, 2014 5:45 PM
*To:* implementers
*Subject:* Re: Reference Application - Privilege to Delete Encounter



Hi James,



It's a bit tricky, and not documented, so I'm peeking at the code to see
how things work.



Only encounters that are specifically configured as "editable" can be
edited. This is how it's done
<https://github.com/openmrs/openmrs-module-referenceapplication/blob/master/omod/src/main/resources/apps/encounterDisplay_extension.json>
 for the built-in reference application forms. Offhand I don't think there's
a way to set this up for your own forms (but you may know better than me).



All forms are deletable (assuming the proper privileges).



In order to edit an encounter, you either need to have the privilege "Task:
emr.patient.encounter.edit", or else have *participated* in the encounter.

To delete, you need the privilege "Task: emr.patient.encounter.delete", or
else to have *participated*.



"Participated" means that either you created the encounter, or else you are
one of the providers of the encounter.



Please put this on the wiki somewhere. :-)



-Darius



On Tue, Dec 9, 2014 at 10:32 PM, James Arbaugh <
james@haitianhealthfoundation.org> wrote:

Greetings all.

What privilege is required to delete an encounter and edit a visit note in
the Reference Application?  My data clerk users don't see the pencil or
"x" icons in the list of visits.  I tried opening the page as super user
and then switching to the data entry clerk user.  It gave a popup error
that the user didn't have the necessary privilege when I try to delete the
encounter.  Unfortunately, nothing was in the catalina.out log.

Any help would be greatly appreciated.

Thanks,
James

--
OpenMRS Implementers: http://om.rs/implist
Post: implementers@openmrs.org | Unsubscribe:
implementers+unsubscribe@openmrs.org
Manage your OpenMRS subscriptions at http://om.rs/id

Register today for our Maputo 2015 Implementers Meeting: http://om.rs/moz15

To unsubscribe from this group and stop receiving emails from it, send an
email to implementers+unsubscribe@openmrs.org.



-- 
OpenMRS Implementers: http://om.rs/implist
Post: implementers@openmrs.org | Unsubscribe:
implementers+unsubscribe@openmrs.org
Manage your OpenMRS subscriptions at http://om.rs/id

Register today for our Maputo 2015 Implementers Meeting: http://om.rs/moz15

To unsubscribe from this group and stop receiving emails from it, send an
email to implementers+unsubscribe@openmrs.org.

-- 
OpenMRS Implementers: http://om.rs/implist
Post: implementers@openmrs.org | Unsubscribe: implementers+unsubscribe@openmrs.org
Manage your OpenMRS subscriptions at http://om.rs/id

Register today for our Maputo 2015 Implementers Meeting: http://om.rs/moz15

To unsubscribe from this group and stop receiving emails from it, send an email to \
implementers+unsubscribe@openmrs.org.


[Attachment #3 (text/html)]

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta \
name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!-- /* Font \
Definitions */ @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div \
class="WordSection1"><p class="MsoNormal"><font color="#1f497d" face="Calibri"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Dear \
Darius,</span></font></p><p class="MsoNormal"><font color="#1f497d" \
face="Calibri"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">  \
</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Thank \
you so much.   That is exactly what I was looking for!   Your suggestions worked \
great!</span></font></p><p class="MsoNormal"><font color="#1f497d" \
face="Calibri"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">  \
</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">I \
have added the documentation to </span></font><a \
href="https://wiki.openmrs.org/display/docs/Reference+Application#ReferenceApplication-PatientVisits" \
title="Follow link"><font color="#5177cf" face="Arial"><span \
style="font-size:11.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#5177cf;backgro \
und:white;text-decoration:none">https://wiki.openmrs.org/display/docs/Reference+Application#ReferenceApplication-PatientVisits</span></font></a></p><p \
class="MsoNormal"><font color="#1f497d" face="Calibri"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">  \
</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">I \
have also created a ticket, <a \
href="https://issues.openmrs.org/browse/RA-499">RA-499</a> to create those privileges \
so the implementer doesn't have to manually create them.   Had I seen them in the \
list, it would have been intuitive to try them before asking for \
help.</span></font></p><p class="MsoNormal"><font color="#1f497d" \
face="Calibri"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">  \
</span></font></p><p class="MsoNormal"><font color="#1f497d" face="Calibri"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Thanks,</span></font></p><p \
class="MsoNormal"><font color="#1f497d" face="Calibri"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">James</span></font></p><p \
class="MsoNormal"><font color="#1f497d" face="Calibri"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">  \
</span></font></p><p class="MsoNormal"><b><font face="Calibri"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;font-weight:bold">From:</span></font></b><font \
face="Calibri"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> <a \
href="mailto:implementers@openmrs.org">implementers@openmrs.org</a> [mailto:<a \
href="mailto:implementers@openmrs.org">implementers@openmrs.org</a>] <b><span \
style="font-weight:bold">On Behalf Of </span></b>Darius Jazayeri<br><b><span \
style="font-weight:bold">Sent:</span></b> Tuesday, December 9, 2014 5:45 \
PM<br><b><span style="font-weight:bold">To:</span></b> implementers<br><b><span \
style="font-weight:bold">Subject:</span></b> Re: Reference Application - Privilege to \
Delete Encounter</span></font></p><p class="MsoNormal"><font size="3" face="Times New \
Roman"><span style="font-size:12.0pt">  </span></font></p><div><p \
class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">Hi James,</span></font></p><div><p class="MsoNormal"><font \
size="3" face="Times New Roman"><span style="font-size:12.0pt">  \
</span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New \
Roman"><span style="font-size:12.0pt">It&#39;s a bit tricky, and not documented, so \
I&#39;m peeking at the code to see how things work.</span></font></p></div><div><p \
class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">  </span></font></p></div><div><p class="MsoNormal"><font \
size="3" face="Times New Roman"><span style="font-size:12.0pt">Only encounters that \
are specifically configured as &quot;editable&quot; can be edited. This is <a \
href="https://github.com/openmrs/openmrs-module-referenceapplication/blob/master/omod/src/main/resources/apps/encounterDisplay_extension.json" \
target="_blank">how it&#39;s done</a> for the built-in reference application forms. \
Offhand I don&#39;t think there&#39;s a way to set this up for your own forms (but \
you may know better than me).</span></font></p></div><div><p class="MsoNormal"><font \
size="3" face="Times New Roman"><span style="font-size:12.0pt">  \
</span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New \
Roman"><span style="font-size:12.0pt">All forms are deletable (assuming the proper \
privileges).</span></font></p></div><div><p class="MsoNormal"><font size="3" \
face="Times New Roman"><span style="font-size:12.0pt">  \
</span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New \
Roman"><span style="font-size:12.0pt">In order to edit an encounter, you either need \
to have the privilege &quot;Task: emr.patient.encounter.<font color="#1f497d"><span \
style="color:#1f497d">edit</span></font>&quot;, or else have <i><span \
style="font-style:italic">participated</span></i>  in the \
encounter.</span></font></p></div><div><p class="MsoNormal"><font size="3" \
face="Times New Roman"><span style="font-size:12.0pt">To delete, you need the \
privilege &quot;Task: emr.patient.encounter.<font color="#1f497d"><span \
style="color:#1f497d">delete</span></font>&quot;, or else to have <i><span \
style="font-style:italic">participated</span></i>.</span></font></p></div><div><p \
class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">  </span></font></p></div><div><p class="MsoNormal"><font \
size="3" face="Times New Roman"><span \
style="font-size:12.0pt">&quot;Participated&quot; means that either you created the \
encounter, or else you are one of the providers of the \
encounter.</span></font></p></div><div><p class="MsoNormal"><font size="3" \
face="Times New Roman"><span style="font-size:12.0pt">  \
</span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New \
Roman"><span style="font-size:12.0pt">Please put this on the wiki somewhere. \
:-)</span></font></p></div><div><p class="MsoNormal"><font size="3" face="Times New \
Roman"><span style="font-size:12.0pt">  </span></font></p></div><div><p \
class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">-Darius</span></font></p></div><div><p \
class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">  </span></font></p><div><p class="MsoNormal"><font size="3" \
face="Times New Roman"><span style="font-size:12.0pt">On Tue, Dec 9, 2014 at 10:32 \
PM, James Arbaugh &lt;<a href="mailto:james@haitianhealthfoundation.org" \
target="_blank">james@haitianhealthfoundation.org</a>&gt; \
wrote:</span></font></p><blockquote style="border:none;border-left:solid #cccccc \
1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p \
class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">Greetings all.<br><br>What privilege is required to delete \
an encounter and edit a visit note in<br>the Reference Application?   My data clerk \
users don&#39;t see the pencil or<br>&quot;x&quot; icons in the list of visits.   I \
tried opening the page as super user<br>and then switching to the data entry clerk \
user.   It gave a popup error<br>that the user didn&#39;t have the necessary \
privilege when I try to delete the<br>encounter.   Unfortunately, nothing was in the \
catalina.out log.<br><br>Any help would be greatly \
appreciated.<br><br>Thanks,<br>James<br><font color="#888888"><span \
style="color:#888888"><br>--<br>OpenMRS Implementers: <a href="http://om.rs/implist" \
target="_blank">http://om.rs/implist</a><br>Post: <a \
href="mailto:implementers@openmrs.org" target="_blank">implementers@openmrs.org</a> | \
Unsubscribe: <a href="mailto:implementers%2Bunsubscribe@openmrs.org" \
target="_blank">implementers+unsubscribe@openmrs.org</a><br>Manage your OpenMRS \
subscriptions at <a href="http://om.rs/id" \
target="_blank">http://om.rs/id</a><br><br>Register today for our Maputo 2015 \
Implementers Meeting: <a href="http://om.rs/moz15" \
target="_blank">http://om.rs/moz15</a><br><br>To unsubscribe from this group and stop \
receiving emails from it, send an email to <a \
href="mailto:implementers%2Bunsubscribe@openmrs.org" \
target="_blank">implementers+unsubscribe@openmrs.org</a>.</span></font></span></font></p></blockquote></div><p \
class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">  </span></font></p></div></div><p class="MsoNormal"><font \
size="3" face="Times New Roman"><span style="font-size:12.0pt">-- <br>OpenMRS \
Implementers: <a href="http://om.rs/implist">http://om.rs/implist</a><br>Post: <a \
href="mailto:implementers@openmrs.org">implementers@openmrs.org</a> | Unsubscribe: <a \
href="mailto:implementers+unsubscribe@openmrs.org">implementers+unsubscribe@openmrs.org</a><br>Manage \
your OpenMRS subscriptions at <a href="http://om.rs/id">http://om.rs/id</a><br>  \
<br>Register today for our Maputo 2015 Implementers Meeting: <a \
href="http://om.rs/moz15">http://om.rs/moz15</a></span></font></p><p \
class="MsoNormal"><font size="3" face="Times New Roman"><span \
style="font-size:12.0pt">To unsubscribe from this group and stop receiving emails \
from it, send an email to <a \
href="mailto:implementers+unsubscribe@openmrs.org">implementers+unsubscribe@openmrs.org</a>.</span></font></p></div></body></html>


<p></p>

-- <br />
OpenMRS Implementers: <a href="http://om.rs/implist">http://om.rs/implist</a><br />
Post: implementers@openmrs.org | Unsubscribe: implementers+unsubscribe@openmrs.org<br \
/> Manage your OpenMRS subscriptions at <a \
href="http://om.rs/id">http://om.rs/id</a><br /> &nbsp;<br />
Register today for our Maputo 2015 Implementers Meeting: <a \
href="http://om.rs/moz15">http://om.rs/moz15</a><br />

<p></p>

To unsubscribe from this group and stop receiving emails from it, send an email to <a \
href="mailto:implementers+unsubscribe@openmrs.org">implementers+unsubscribe@openmrs.org</a>.<br \
/>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic