Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Events Widget to Animal History Page #657

Merged
Merged
Show file tree
Hide file tree
Changes from 35 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
c9afba5
updated eventswidget page
jallentxbiomed Oct 26, 2023
bf4e640
added widget grid to as react component
jallentxbiomed Nov 2, 2023
4077cb9
added procedure entry to widget page
jallentxbiomed Nov 6, 2023
a1dd457
merge changes
jallentxbiomed Nov 6, 2023
9b012ce
Display html and edit button
labkey-martyp Nov 4, 2023
88c8c9a
added webpart to animal history
jallentxbiomed Nov 16, 2023
d0eeac0
added panel to animal history
jallentxbiomed Nov 30, 2023
6f086f3
fixed styling
jallentxbiomed Dec 5, 2023
3cf9ed8
Grid paging
labkey-martyp Dec 6, 2023
d4f595f
Grid paging
labkey-martyp Dec 6, 2023
2a74511
fix conflicts
jallentxbiomed Dec 14, 2023
656a555
updated eventswidget page
jallentxbiomed Oct 26, 2023
60eaf0b
added widget grid to as react component
jallentxbiomed Nov 2, 2023
6bf7926
added procedure entry to widget page
jallentxbiomed Nov 6, 2023
5719b83
merge changes
jallentxbiomed Nov 6, 2023
8971a4e
Display html and edit button
labkey-martyp Nov 4, 2023
6bb9b32
added webpart to animal history
jallentxbiomed Nov 16, 2023
12aa5da
added panel to animal history
jallentxbiomed Nov 30, 2023
cf1d716
fixed styling
jallentxbiomed Dec 5, 2023
c65b618
Grid paging
labkey-martyp Dec 6, 2023
5026861
added eventDate to getActiveProjects
jallentxbiomed Dec 14, 2023
b636fd2
disable create new button when subjectID count other than 1
jallentxbiomed Dec 18, 2023
66b62a8
merge conflict fix
jallentxbiomed Dec 18, 2023
ac4ded1
merge conflict fix
jallentxbiomed Dec 18, 2023
300851e
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
ab752c4
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
5ab9211
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
a04e8e2
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
23704f6
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
b55e618
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
36374ea
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
50fa9ee
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
2bd4343
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
f73f4dc
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
007cc20
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
ea30ba8
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
da10856
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
b9c83d5
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
07a0087
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
44ab4e0
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
7b50a23
Merge branch '23.11_fb_addEventsWidgetToAnimalHistory' of https://git…
jallentxbiomed Dec 18, 2023
e7a5770
removed original widget view
jallentxbiomed Dec 18, 2023
1f464b6
added permissions for viewing webpart
jallentxbiomed Dec 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
239 changes: 238 additions & 1 deletion snprc_ehr/package-lock.json
spamhurts marked this conversation as resolved.
Show resolved Hide resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions snprc_ehr/resources/queries/snd/AdmitChargeIdProtocolInfo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
SELECT e.EventId,
e.AdmitId,
c.problem as Diagnosis,
c.admitcomplaint as AdmittingComplaint,
c.date as AdmitDate,
c.enddate as ReleaseDate,
c.AssignedVet,
c.Resolution,
e.ParentObjectId.ReferenceId as ChargeId,
e.ParentObjectId.ReferenceId.protocol as Protocol,
e.ParentObjectId.ReferenceId.displayName as IacucDescription,
a.date as AssignmentDate,
e.ParentObjectId.ReferenceId.title as Description,
e.ParentObjectId.ReferenceId.protocol.veterinarian as Veterinarian,

FROM Events e left outer join study.cases c on e.AdmitId = c.caseid
left join study.assignment a on a.protocol = e.ParentObjectId.ReferenceId.protocol and e.Date between a.date and coalesce(a.enddate, curdate()) and a.id = e.subjectID
38 changes: 38 additions & 0 deletions snprc_ehr/resources/queries/snd/ProcedureEventListing.query.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<query xmlns="http://labkey.org/data/xml/query">
<metadata>
<tables xmlns="http://labkey.org/data/xml">
<table tableName="ProcedureEventListing" tableDbType="NOT_IN_DB">
<tableTitle>Procedure Event Listing</tableTitle>
<pkColumnName>EventId</pkColumnName>
<columns>
<column columnName="EventId">
<isKeyField>true</isKeyField>
<columnTitle>Event</columnTitle>
<isHidden>true</isHidden>
<fk>
<fkDbSchema>snd</fkDbSchema>
<fkTable>Events</fkTable>
<fkColumnName>EventId</fkColumnName>
<fkDisplayColumnName>eventId</fkDisplayColumnName>
</fk>
</column>
<column columnName="HTMLNarrative">
<columnTitle>Narrative</columnTitle>
</column>
<column columnName="AdmitChargeId">
<columnTitle>Admit / Charge ID</columnTitle>
</column>
<column columnName="SubjectId">
<columnTitle>ID</columnTitle>
<fk>
<fkDbSchema>study</fkDbSchema>
<fkTable>Animal</fkTable>
<fkColumnName>Id</fkColumnName>
<fkDisplayColumnName>ID</fkDisplayColumnName>
</fk>
</column>
</columns>
</table>
</tables>
</metadata>
</query>
14 changes: 14 additions & 0 deletions snprc_ehr/resources/queries/snd/ProcedureEventListing.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SELECT
e.EventId,
e.SubjectId,
e.Date,
c.HtmlNarrative,
COALESCE(e.AdmitId, e.ParentObjectId.ReferenceId) AS AdmitChargeId,

FROM snd.Events e
left outer join snd.Projects p
on e.ParentObjectId = p.ObjectId
left outer join ehr.project ep
on p.ReferenceId = ep.project
left outer join snd.EventsCache c
on c.EventId = e.EventId
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<customView xmlns="http://labkey.org/data/xml/queryCustomView">
<sorts>
<sort column="Date" descending="true"/>
</sorts>
</customView>
1 change: 1 addition & 0 deletions snprc_ehr/resources/source_queries/create_v_snd_events.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ SELECT ae.ANIMAL_EVENT_ID AS EventId,
CASE WHEN b1.budget_ID IS NOT NULL THEN b1.OBJECT_ID WHEN b2.BUDGET_ID IS NOT NULL THEN b2.OBJECT_ID ELSE b3.OBJECT_ID END AS parentObjectId,
ae.EVENT_DATE_TM AS Date,
ae.OBJECT_ID AS ObjectId,
ae.ADMIT_ID AS AdmitId,
ae.entry_date_tm AS modified,
dbo.f_map_username(ae.user_name) AS modifiedby,
tc.created AS created,
Expand Down
Loading