@Cesar:
- task/Add the
json_response
field to theclaiming_attempt_document
table.
- remove claimed_attempt_document.status field
@cesar Configure the deposit amount on a config file Create a function that triggers a deposit event for a given policy X. emit deposit object
@Aduarte 2. feature/json merge library
concatenate array values
Extract all diagnoses
arrays , merge, sort, unique
null + null = null value1 + null = value1 null + value2 = value2 value1 + value2 = value1
@Aduarte
- improvement/Validate_claiming_attempts
- Merge all the
claiming_attempt_document.json_response
fields for an attempt Set the claiming_attempt.status to success if at least: "hospital_name": is not null || exists inhospitals.name
, "patient_name": is not null, "patient_sex": is not null, "reception_date": is detected and is < than policy.coverage , "diagnoses": has 1 or more elements
@cesar 4. Add claiming attempt data to show.policy ( policy/{policy_number} ) endpoint claimed
- Update
show.policy
swagger example { "message": "Successful Request", "data": { "start_date": "2019-02-01", "end_date": "2020-02-01", "status": "active", "type": "placeholder" "claiming_atempts_left" 2, "last_claiming_status": undefined | success | failed, "last_claiming_id": int } }