CDCgov / phdi

https://cdcgov.github.io/dibbs-site/
Creative Commons Zero v1.0 Universal
35 stars 14 forks source link

Fix message parsing + data saving for condition info #2823

Closed emmastephenson closed 2 weeks ago

emmastephenson commented 1 month ago

What needs to be done

Update the message parsing and data saving on the non-integrated viewer to properly save condition and rule summary information. It's currently stored as a block of text in the database, but should instead be saved as new rows.

Specifically, you'll need to:

Why it needs to be done

Utility for us:

Utility for our end users:

Acceptance Criteria

Technical Notes

Owned by eng team - write out any important technical considerations such as: architecture plan/notes, data dependencies, testing plan, etc. Also link any tickets that are dependent on or related to this task

rr: {
 conditions: [
    // name, fhir path, other metadata per condition
        rule summaries: [
        // name, description, etc for each rule summary 
        ]
     ]
}

Conditions and rule_summaries are both lists of objects. Rule_summaries are nested inside/associated with a specific condition.

Additional context

Related to both #2235 and #2694.