Wavemind / liwi-backend

Other
0 stars 1 forks source link

Add a timestamp for the activities in the JSON #163

Closed GregMart1n closed 2 years ago

GregMart1n commented 2 years ago

Additional information

Would it be possible to add, in the JSON, a timestamp for the activities ?

"activities": [
        {
            "id": "7c3000d8-5430-433c-92e5-9756b36dabf4",
            "step": "registration",
            "clinician": "Maureen Ndakala",

            -- ADD TIMESTAMP --

            "nodes": [
                {
                    "nodeId": 11044,
                    "previousValue": null,
                    "newValue": "Achayo"
                },
                {
                    "nodeId": 11062,
                    "previousValue": null,
                    "newValue": 9642
                },
                {
                    "nodeId": 23357,
                    "previousValue": null,
                    "newValue": 27113
                },
                {
                    "nodeId": 11052,
                    "previousValue": null,
                    "newValue": "667"
                }
            ],
            "device_id": "79",
            "medical_case_id": "6272dc6f-6420-49ad-be13-0c1994c98c7c",
            "fail_safe": false
        },
        {
            "id": "c0733a47-a1f6-4134-89bd-769e20835b67",
            "step": "unique_triage_questions",
            "clinician": "Maureen Ndakala",
            "nodes": [
                {
                    "nodeId": 11050,
                    "previousValue": null,
                    "newValue": 9622
                }
            ],
            "device_id": "79",
            "medical_case_id": "6272dc6f-6420-49ad-be13-0c1994c98c7c",
            "fail_safe": false
        },
]
GregMart1n commented 2 years ago

wrong place