Skip to content

Instantly share code, notes, and snippets.

@ccolorado
Created February 22, 2019 05:11
Show Gist options
  • Save ccolorado/e1c1f6ef1e567b8d944db48325bfcb8a to your computer and use it in GitHub Desktop.
Save ccolorado/e1c1f6ef1e567b8d944db48325bfcb8a to your computer and use it in GitHub Desktop.

@Cesar:

  1. task/Add the json_response field to the claiming_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

Arrays

concatenate array values Extract all diagnoses arrays , merge, sort, unique

Fields

null + null = null value1 + null = value1 null + value2 = value2 value1 + value2 = value1

@Aduarte

  1. 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 in hospitals.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 } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment