Patient History Custom Clinical Event Items

I was looking back at adding a custom clinical event item 

similar to what I used to do https://www.openvpms.org/forum/contact.location-attached-clinicaleventitem

 

however I assume this table is filtered by the

https://bitbucket.org/OpenVPMS/openvpms/src/master/openvpms-web/openvpms...

And thus a custom event wouldnt display?

 

Atleast this seems to be occurring in the test bed.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Patient History Custom Clinical Event Items

All items need to be added to actRelationship.patientClinicalEventItem to the target node assertion:

        <node name="target" displayName="Medical Record" path="/target"
              type="org.openvpms.component.business.domain.im.common.IMObjectReference">
            <assertion name="archetypeRange">
                <propertyList name="archetypes">
                    <propertyMap name="archetype">
                        <property name="shortName" value="act.patientClinicalNote"/>
                    </propertyMap>
                    <propertyMap name="archetype">
                        <property name="shortName" value="act.patientClinicalProblem"/>
                    </propertyMap>
                    <propertyMap name="archetype">
                        <property name="shortName" value="act.patientWeight"/>
                    </propertyMap>
                    <propertyMap name="archetype">
                        <property name="shortName" value="act.patientMedication"/>
                    </propertyMap>

                    ...
                    <propertyMap name="archetype">
                        <property name="shortName" value="act.patientCustomArchetypeHere"/>
                    </propertyMap>

                </propertyList>
            </assertion>

 

Re: Patient History Custom Clinical Event Items

Yep - did that and the Item appears in the "New" medical event item selection box and the filter box at the top of the window - but the items dont appear in the main window.

 

Regards
 
Ben 
OpenVPMS Installer and Helper 
Ph: +61423044823 
Email: info[at]charltonit.com[dot]au

Re: Patient History Custom Clinical Event Items

I assume with the fact it appears in the dropdowns its connecting correctly and I confirmed that if I create an entry it populates the act table  correctly...but no luck displaying it.

 

Regards
 
Ben 
OpenVPMS Installer and Helper 
Ph: +61423044823 
Email: info[at]charltonit.com[dot]au

Re: Patient History Custom Clinical Event Items

You should see a record in the patient history if it is being saved correctly.
If you don't populate the description node, you wont see any details displayed in the Summary view other than the date and the record type. This is because OpenVPMS will only display the description node in patient history for those acts where there is no special handling in DefaultIMObjectTableModelFactory.xml.

This can be customised by copying DefaultIMObjectTableModelFactory.xml to WEB-INF/classes/IMObjectTableModelFactory.xml and adding an entry for your new archetype e.g.:

                    <entry>
                        <string>act.patientExport</string>
                        <string>concat('Export reason: ', openvpms:get(.,'reason'))</string>
                    </entry>

 

Re: Patient History Custom Clinical Event Items

 This is the window that I get when I add a new record and 
the end result is shown in the act table below...

mysql> select * from acts where arch_short_name like "act.patient%";
+--------+---------+---------------------+------------+---------------------+------------+----------------------------+--------------+-----------------------------------
---+---------+------------------------------------+--------+-------+---------------------+-------------------+-------------+-------------+---------+
| act_id | version | created | created_id | updated | updated_id | arch_short_name | arch_version | linkId
| name | description | active | title | activity_start_time | activity_end_time | reason | status | status2 |
+--------+---------+---------------------+------------+---------------------+------------+----------------------------+--------------+-----------------------------------
---+---------+------------------------------------+--------+-------+---------------------+-------------------+-------------+-------------+---------+
| 2 | 6 | 2021-07-27 17:18:52 | 1 | 2021-07-29 16:29:02 | 1 | act.patientClinicalEvent | 1.0 | e425696c-eeaa-11eb-8ecb-6b91ebd990
07 | Visit | 27/07/2021 - : Anxious |  | TEST | 2021-07-27 17:18:50 | NULL | VENOM_18774 | IN_PROGRESS | NULL |
| 4 | 1 | 2021-07-27 17:23:45 | 1 | 2021-07-27 17:23:45 | 1 | act.patientClinicalNote | 1.0 | 919cc2ba-eeab-11eb-8ecb-6b91ebd990
07 | Note | NULL |  | NULL | 2021-07-27 17:23:41 | NULL | NULL | IN_PROGRESS | NULL |
| 5 | 1 | 2021-07-27 17:24:02 | 1 | 2021-07-27 17:24:02 | 1 | act.patientClinicalNote | 1.0 | 99f0b7ff-eeab-11eb-8ecb-6b91ebd990
07 | Note | NULL |  | NULL | 2021-07-27 17:23:55 | NULL | NULL | IN_PROGRESS | NULL |
| 3 | 4 | 2021-07-27 17:19:21 | 1 | 2021-07-27 17:23:45 | 1 | act.patientClinicalProblem | 1.0 | e7eafcf0-eeaa-11eb-8ecb-6b91ebd990
07 | Problem | Abscess - retrobulbar (Unresolved) |  | NULL | 2021-07-27 17:18:56 | NULL | VENOM_338 | UNRESOLVED | NULL |
| 140 | 0 | 2021-07-29 09:24:22 | 1 | NULL | NULL | act.patientExport | 1.0 | ede98a61-effa-11eb-8ecb-6b91ebd990
07 | Export | Export to Australia (Processing) |  | NULL | 2021-07-29 09:24:17 | NULL | AU | IN_PROCESS | NULL |
| 142 | 0 | 2021-07-29 16:29:13 | 1 | NULL | NULL | act.patientExport | 1.0 | 46adaf81-f036-11eb-8ecb-6b91ebd990
07 | Export | Export to Australia (Processing) |  | NULL | 2021-07-29 16:29:06 | NULL | AU | IN_PROCESS | NULL |
| 141 | 1 | 2021-07-29 16:29:02 | 1 | 2021-07-29 16:29:02 | 1 | act.patientWeight | 1.0 | 4143459d-f036-11eb-8ecb-6b91ebd990

07 | Weight | 0 Kilograms |  | NULL | 2021-07-29 16:28:57 | NULL | NULL | IN_PROGRESS | NULL |
+--------+---------+---------------------+------------+---------------------+------------+----------------------------+--------------+-----------------------------------
---+---------+------------------------------------+--------+-------+---------------------+-------------------+-------------+-------------+---------+
7 rows in set (0.00 sec)
 
But as you can see no Export shows on the Summary.
 
Regards
 
Ben 
OpenVPMS Installer and Helper 
Ph: +61423044823 
Email: info[at]charltonit.com[dot]au

Re: Patient History Custom Clinical Event Items

Can you send through or attach your archetype changes?

Re: Patient History Custom Clinical Event Items

Attached 

AttachmentSize
act.patientExport (1).adl 4.89 KB
actRelationship.patientClinicalEventItem (1).adl 4.92 KB
Regards
 
Ben 
OpenVPMS Installer and Helper 
Ph: +61423044823 
Email: info[at]charltonit.com[dot]au

Re: Patient History Custom Clinical Event Items

Try restarting OpenVPMS before adding an Export record.

The set of event items is cached and can only be refreshed by a restart.
Any export record you added prior to restart won't be linked to a Visit, and so won't display.

 

Syndicate content