wiredsister / OpenTransplant

Organ Procurement Transplant System for "We, The People" developed using publicly available information about Organ Transplant & cutting edge medical research.
Apache License 2.0
42 stars 1 forks source link

Ticket38 donor patient types #41

Closed wiredsister closed 3 years ago

wiredsister commented 3 years ago

A Quick Guide for this Massive PR 🙌

Dont's 🛑

Do's ✅

PS: I will squash this when I merge, promise 😅

wiredsister commented 3 years ago

https://github.com/wiredsister/OpenTransplant/blob/b3e430ce6c6f4a9b40f2137233e1717410f71c4b/opentransplant/OpenTransplant/lib/constraints.ml#L598

This section here is kinda wrong. It should actually be hla_information: (HLA_Class_I * HLA_Class_II) information

wiredsister commented 3 years ago

image Also don't forget about this feature!

MeredithStewart commented 3 years ago

Random Qs (probably more my lack of understanding of code more than anything!): https://github.com/wiredsister/OpenTransplant/blob/b3e430ce6c6f4a9b40f2137233e1717410f71c4b/opentransplant/OpenTransplant/lib/constraints.ml#L596

https://github.com/wiredsister/OpenTransplant/blob/b3e430ce6c6f4a9b40f2137233e1717410f71c4b/opentransplant/OpenTransplant/lib/constraints.ml#L1337

wiredsister commented 3 years ago
  • Does the NearDeathDonor become a RegularDonor? (ie, are those two types connected?)

Hey @MeredithStewart great questions:

        (* inside of Donor.t *)
        val donortype : Human.donortype
        val accepted_by_recipients : Human.organ_transplant_type list
        val viable_organs : Human.organ_transplant_type list
        val id : Uuidm.t
        val current_cases : Human.organ_transplant_type list

So when you query Donor you would see that tissue was possible (viable_organs) and what tissue had been already given away (current_cases) which would be important for OPO to coordinate with Tissue Teams. There is no current plan to ever track or look up Tissue. Hope that helps clear up confusion. That code isn't written yet bc we don't know what cache & cold storage we are using.

wiredsister commented 3 years ago

Ahh, now I see patienttype. I'm wondering if "recipient" or something more specific might help with the logical separation (in one's mind) vs. patient, which the donor is/was.

Wow, this is a great idea @MeredithStewart. I love that prematch they would be Recipient.t but Post-match they could be Patient.t 🤯 🤯 🤯

wiredsister commented 3 years ago

We could also have NearDeathDonors as a type of Patient.t... interesting thought... that way Patient.t only refers to people we collect EHR info on or people in surgery. Then we can keep Recipient.t for receiver and change them to Patient.t when they are recovering in hospital. We could actually be that descriptive if we wanted to.

wiredsister commented 3 years ago

I'm just going to merge this and move the refactoring work to be done in a bit after the cleanup.