Skip to content

Blood draw interval fix#910

Closed
csebranek wants to merge 1 commit intorelease24.11-SNAPSHOTfrom
24.11_fb_blood_draw_interval_fix
Closed

Blood draw interval fix#910
csebranek wants to merge 1 commit intorelease24.11-SNAPSHOTfrom
24.11_fb_blood_draw_interval_fix

Conversation

@csebranek
Copy link
Collaborator

Rationale

Our SOP states that "in any 30-day period the animal blood collection should not exceed 20% of the animal's estimated blood volume." The current blood calculation that happens during validation when blood draws are requested/performed was adding an additional day in the interval, but, the animal should actually get replenished a day sooner.

Here's an example:
If an animal had blood drawn on 2/12/2025, the 30 day period would bring us through 3/13/2025, and the animal should get replenished on 3/14/2025. The current blood calculation subtracts 30 days (or whatever the interval may be) to the current date (which turns out to be a 31 day period). It should only be 30 days total much like the current blood draw table here https://github.com/LabKey/snprcEHRModules/blob/75291bccef3cdc7055d0461686c9836497d77ba9/snprc_ehr/resources/queries/study/currentBloodDraws.sql#L72.

Related Pull Requests

Changes

@github-actions
Copy link

ERROR: A pull request from 24.11_fb_blood_draw_interval_fix is expected to target release24.11-SNAPSHOT, not develop

@csebranek csebranek changed the base branch from develop to release24.11-SNAPSHOT March 13, 2025 16:18
@csebranek csebranek closed this Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant