· 7 years ago · Feb 25, 2019, 06:46 AM
1@Cesar:
21. task/Add the `json_response` field to the `claiming_attempt_document` table.
3* remove claimed_attempt_document.status field
4
5@cesar
6Configure the deposit amount on a config file
7Create a function that triggers a deposit event for a given policy
8X. emit deposit object
9
10@Aduarte
112. feature/json merge library
12## Arrays
13concatenate array values
14_Extract all `diagnoses` arrays , merge, sort, unique_
15## Fields
16null + null = null
17value1 + null = value1
18null + value2 = value2
19value1 + value2 = value1
20
21@Aduarte
22
233. improvement/Validate_claiming_attempts
24* Merge all the `claiming_attempt_document.json_response` fields for an attempt
25Set the claiming_attempt.status to success if at least:
26"hospital_name": is not null || exists in `hospitals.name`,
27"patient_name": is not null,
28"patient_sex": is not null,
29"reception_date": is detected and is < than policy.coverage ,
30"diagnoses": has 1 or more elements
31
32
33
34@cesar
354. Add claiming attempt data to show.policy ( policy/{policy_number} ) endpoint
36claimed
37* Update `show.policy` swagger example
38{
39 "message": "Successful Request",
40 "data": {
41 "start_date": "2019-02-01",
42 "end_date": "2020-02-01",
43 "status": "active",
44 "type": "placeholder"
45 "claiming_atempts_left" 2,
46 "last_claiming_status": undefined | success | failed,
47 "last_claiming_id": int
48 }
49}