csc302-spring-2021 / proj-DaTeam

CSC302 course project for DaTeam
https://dateam-frontend.herokuapp.com/
5 stars 2 forks source link

Design domain objects #5

Closed otomn closed 3 years ago

otomn commented 3 years ago

Design domain objects that suits the need of the project

otomn commented 3 years ago

Data Model

data model is designed based on SDC XML structure listed at: https://www.ihe.net/uploadedFiles/Documents/QRPH/IHE_QRPH_Suppl_SDC_Rev3-0_TI_2019-07-26.pdf

Notations:

Design:

Procedure

Patient

abstract SDCItem

SDCForm: SDCItem

SDCFormProperty

SDCSection: SDCItem

abstract SDCQuestion: SDCItem

SDCDisplayItem: SDCItem

SDCListField: SDCQuestion

SDCListFieldItem: SDCItem

SDCTextField: SDCQuestion

SDCAnswer

SDCFormResponse

otomn commented 3 years ago

UML: https://lucid.app/lucidchart/invitations/accept/45d9c009-8d77-44d3-881c-ec095ea82b98 Waiting for final confirmation

otomn commented 3 years ago

Domain model finalized for P1. Description within this thread, UML, and typescript code are all updated.

otomn commented 3 years ago

@umar-ahmed Please review the UML and insert to the doc.

umar-ahmed commented 3 years ago

@umar-ahmed Please review the UML and insert to the doc.

Will do, thank you

otomn commented 3 years ago

Issue reopened due to domain object update maxSelections and minSelections were on SDCNode, as those properties can appear on any object in the SDC XML as a way to set the default value for all list field question within a section, Since those fields can be determined for each question when parsing the XML, and no other SDC objects needs those fields, those fields are removed from the SDCNode, and added to SDCListField Description within this thread, UML, and typescript code are all updated. @umar-ahmed