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

Show generated recommendations #626

Closed
fredhersch opened this issue Jul 4, 2021 · 22 comments · Fixed by #699 or #721
Closed

Show generated recommendations #626

fredhersch opened this issue Jul 4, 2021 · 22 comments · Fixed by #699 or #721
Assignees
Labels
P1 High priority issue type:enhancement New feature or request

Comments

@fredhersch
Copy link
Collaborator

fredhersch commented Jul 4, 2021

User story
As a HCW I can generate and view the recommendations for a patient on completion of a screener flow

Steps:

  • User has completed the screener questionnaire - Initiate new screener encounter #625
  • Selects the option to Show Recommendations
  • This will trigger a process to determine the triage status and select he CarePlan for the patient (in the future it will generate the CarePlan)
    -- Determining Triage Status will result in the creation of a RiskAssessment Resource - see additional information section
  • Based on the RiskAssessment a CarePlan resource will be created (from a template) for the specific patient
  • Using the Tasks on the CarePlan, the recommendations are shown in the app

Alt path:

  • If there is an error generating the recommendations, return that to the user

Additional information:

Rules for generating the RiskAssessment and selecting the CarePlan are as follows:

If Sp02 < 90% THEN
   HIGH_RISK
   Select CarePlan_HighRisk.json
Else If Sp02 >90 - <94% THEN
   MODERATE_RISK
   Select CarePlan_ModRisk.json
Else If Presence_Of_Symptoms THEN
   MODERATE_RISK
   Select CarePlan_ModRisk.json
Else If Sp02 > 94% AND Any Comorbidities THEN
   MODERATE_RISK
   Select CarePlan_ModRisk.json
Else If Sp02 > 94% AND NO CO-morbidities THEN
   LOW_RISK
   Select CarePlan_LowRisk.json

Generating the RiskAssessment Resource

Use the data-access API to create a new RiskAssessment resource and populate with:

  • TBC

Selecting a CarePlan template

  • A set of json files representing CarePlan templates will be added to the application
  • Based on the assessment, the relevant CarePlan_<>.json will be selected
  • This will need to be modified accordingly and saved as the CarePlan for the patient
@fredhersch fredhersch added the type:enhancement New feature or request label Jul 4, 2021
@Tarun-Bhardwaj Tarun-Bhardwaj added this to the Q3 2021 milestone Jul 6, 2021
@jingtang10
Copy link
Collaborator

jingtang10 commented Jul 23, 2021

@santosh-pingle + @aditya-07 to work on the generation of these risk assessments and @aditya-07 to work on the display of these in the patient card

@jingtang10
Copy link
Collaborator

@fredhersch can you provide an example care plan while aditya and santosh work on the generation / display of risk assessment. thanks!

@jingtang10
Copy link
Collaborator

@aditya-07 pleaes also within this ticket address the ui display of high/mid/low risks (red/amber/green dots)

@jingtang10
Copy link
Collaborator

@santosh-pingle
Copy link
Collaborator

Generating risk-assessment resource.

@santosh-pingle
Copy link
Collaborator

@santosh-pingle + @aditya-07 to work on the generation of these risk assessments and @aditya-07 to work on the display of these in the patient card

@jingtang10 @aditya-07
Can you please explain in more details about implementing display in the patient card?

@santosh-pingle
Copy link
Collaborator

@aditya-07
Is below PR blocker to implement additional display changes of patient card, if yes can we please get merged on priority?
#691

@santosh-pingle
Copy link
Collaborator

Generating risk-assessment resource.

I will push PR about generating risk-assessment in first half of the day today.

@santosh-pingle
Copy link
Collaborator

Generated risk assessment resource

{"resourceType":"RiskAssessment","id":"88b73f54-fd85-4fac-8bb7-2bb917de735a","subject":{"reference":"Patient/2126234"},"encounter":{"reference":"Encounter/c5fd5464-75ec-4bb7-b9c0-28e59a94b1c2"},"prediction":[{"qualitativeRisk":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/risk-probability","code":"moderate","display":"Moderate likelihood"}]}}]}

@santosh-pingle
Copy link
Collaborator

#701 need to fix this issue to unblock ui changes further

@santosh-pingle
Copy link
Collaborator

Working on review comments of #699

@santosh-pingle
Copy link
Collaborator

santosh-pingle commented Aug 12, 2021

Risk assessment UI Display action items :

  • Fetch Risk assessment resource.
  • Update patient details card color as per fetched risk probability .
  • Refresh patient card ui after completing screener survey as per latest risk probability.
  • Show risk probability color on patient search page as well.

@santosh-pingle
Copy link
Collaborator

In progress : Fetch Risk assessment resource.

@santosh-pingle
Copy link
Collaborator

santosh-pingle commented Aug 13, 2021

@jingtang10 @fredhersch @aditya-07

What will be initial value of risk assessment status?
It is required to show on patient details card screen. (are we going to show risk probability code as status or risk assessment resource field status ?)

@santosh-pingle
Copy link
Collaborator

@jingtang10 @fredhersch @aditya-07
It is also required to show last contacted value on patient details screen, what will be value for it?
is it occurrence date time type when risk assessment resource was generated?

@aditya-07
Copy link
Collaborator

@jingtang10 @fredhersch @aditya-07

What will be initial value of risk assessment status?
It is required to show on patient details card screen. (are we going to show risk probability code as status or risk assessment resource field status ?)

Status is UNKNOWN if we don't have a risk assessment for a Patient.

@aditya-07
Copy link
Collaborator

@jingtang10 @fredhersch @aditya-07
It is also required to show last contacted value on patient details screen, what will be value for it?
is it occurrence date time type when risk assessment resource was generated?

Yes, I think so.

@santosh-pingle
Copy link
Collaborator

I will push PR in second half of today which will include

  1. patient risk with color code on patient search page.
  2. refresh patient risk color code on search page after taking screener encounter.
  3. Patient risk color code on patient display card.
  4. refresh patient risk color after taking screener encounter
  5. Fetch risk assessment for given patient.
  6. fetch risk assessment for all patients on patient search page.

@santosh-pingle
Copy link
Collaborator

There are changes in parent PR #691, therefore it is required to revise/update current PR changes.
I will be working on it.

@Tarun-Bhardwaj Tarun-Bhardwaj added the P1 High priority issue label Sep 15, 2021
@Tarun-Bhardwaj
Copy link

Regarding the rules @fredhersch posted - ignore the care plan part for now, and use https://www.hl7.org/fhir/riskassessment.html and https://www.hl7.org/fhir/riskassessment-definitions.html#RiskAssessment.prediction.qualitativeRisk with this value set: https://www.hl7.org/fhir/valueset-risk-probability.html

@fredhersch , generation and display of risk assessment is done and changes merged in master. Based on the comment above, do we drop the care plan for now and have another issue created for that or should the care plan be done as part of this issue?

@Tarun-Bhardwaj Tarun-Bhardwaj added this to To do in Demo applications via automation Sep 20, 2021
@Tarun-Bhardwaj Tarun-Bhardwaj moved this from To do to In progress in Demo applications Sep 20, 2021
@Tarun-Bhardwaj
Copy link

Regarding the rules @fredhersch posted - ignore the care plan part for now, and use https://www.hl7.org/fhir/riskassessment.html and https://www.hl7.org/fhir/riskassessment-definitions.html#RiskAssessment.prediction.qualitativeRisk with this value set: https://www.hl7.org/fhir/valueset-risk-probability.html

@jingtang10 , @fredhersch , changes have been merged in master for "Risk assessment generation display". Can we close this issue, make it part of Q3 release and create a new one for "Care plan generation" that can be worked on as part of Q4 release? CC: @jtournier23 , @santosh-pingle

@jingtang10
Copy link
Collaborator

We'll create another issue for care plan. The risk assessment generation is done and dusted.

Demo applications automation moved this from In progress to Done Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 High priority issue type:enhancement New feature or request
Projects
Archived in project
5 participants