Technically, here is how it is going to work. For example, let’s consider the following two possibilities:
{
"ID": "85",
"Subject": "COPD (chronic obstructive pulmonary disease) / SNOMED CT 475427019 / Confirmed",
"Subject Type": "finding/condition",
"Subject Subtype": "problem",
"Subject_ID": "475427019",
"Sub_ID_type": "SNOMED-CT",
"Relationship": "has_intervention",
"Relationship_ID": "not in athena",
"Relationship modifier": "",
"Rel_modifier_ID": "",
"Object": "albuterol-ipratropium inhal soln 3mg/0.5mg/3mL 3 mL, Inhal Soln, NEB, RT TID, Routine, 4 day(s), 04/06/16 21:00:00, Stop date 04/10/16 20:59:00",
"Object Type": "intervention",
"Object Subtype": "medication",
"Object_ID": "RXNORM!836286",
"Ob_ID_type": "Rxnorm",
"Timestamp": "04/06/2021 21:00:00",
"Parent tuple": "14",
"Clarifications": ""
}, {
"ID": "86",
"Subject": "COPD (chronic obstructive pulmonary disease) / SNOMED CT 475427019 / Confirmed",
"Subject Type": "finding/condition",
"Subject Subtype": "problem",
"Subject_ID": "475427019",
"Sub_ID_type": "SNOMED-CT",
"Relationship": "has_intervention",
"Relationship_ID": "not in athena",
"Relationship modifier": "discontinued",
"Rel_modifier_ID": "4132627",
"Object": "albuterol-ipratropium inhal soln 3mg/0.5mg/3mL 3 mL, Inhal Soln, NEB, RT TID, Routine, 4 day(s), 04/06/16 21:00:00, Stop date 04/10/16 20:59:00",
"Object Type": "intervention",
"Object Subtype": "medication",
"Object_ID": "RXNORM!836286",
"Ob_ID_type": "Rxnorm",
"Timestamp": "04/10/2021 20:59:00",
"Parent tuple": "14",
"Clarifications": ""
},
As you can see they are almost similar but I would want to display them as one because of the following reason:
- In case of
ID : 85, the "Relationship modifier": "", is empty. However, in the case of ID:86 the "Relationship modifier": "discontinued", is not empty.
- Timestamp for
ID:85 is "Timestamp": "04/06/2021 21:00:00", and timestamp for ID:86 is "Relationship modifier": "discontinued",
So while I would like to display both the records as 1 but I would want some way to store both the timestamps in such scenarios. Because even though the record is going to be one, my future enhancement of the code will contain a colorful rectangle with a start date of 04/06/2021 21:00:00 and end data of 04/10/2021 20:59:00.
So even though I want such scenarios to show up as one record, I would like to kee above thing in my mind while displaying them.