From e30e6510b592f7c7aec25207e3a7f214d6003213 Mon Sep 17 00:00:00 2001 From: Lore Date: Tue, 5 Sep 2023 17:44:05 -0400 Subject: [PATCH] 21 add dbt unit test (#22) * Add test setup * Use env variables in profile and add script to run tests * Add simple test on root model and add tear down script * Add github test workflow * Add some single tests, dependencies and, seeds * Rename models yml files to schema * Add properties to seeds, macro select_table and use macro on couchdb model * Rename schemas properties files, add more tests, rearange dependencies * Add sudo command * Move package.yml to base directory * Add instructions on how to run unit tests locally * Change titles structure --------- Co-authored-by: Maria Lorena Rodriguez Viruel --- .github/workflows/test.yml | 43 ++++++++++++++++++ .gitignore | 3 ++ README.md | 31 ++++++++++++- dbt_project.yml | 35 +++++++-------- macros/select_table.sql | 13 ++++++ models/contact_views/contact_views.yml | 25 +++++++++++ models/households/households.yml | 7 +++ models/reports_tables/reports_tables.yml | 25 +++++++++++ models/root/couchdb.sql | 4 +- models/root/root.yml | 22 ++++++++++ models/types/schema.yml | 11 ----- models/types/types.yml | 11 +++++ models/user_tables/user_tables.yml | 9 ++++ packages.yml | 3 ++ seeds/couchdb_test_data.csv | 56 ++++++++++++++++++++++++ seeds/properties.yml | 9 ++++ tests/profiles.yml | 12 +++++ tests/run_dbt_tests.sh | 20 +++++++++ tests/setup.sh | 31 +++++++++++++ tests/tear_down.sh | 2 + 20 files changed, 340 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/test.yml create mode 100644 macros/select_table.sql create mode 100644 models/contact_views/contact_views.yml create mode 100644 models/households/households.yml create mode 100644 models/reports_tables/reports_tables.yml create mode 100644 models/root/root.yml delete mode 100644 models/types/schema.yml create mode 100644 models/types/types.yml create mode 100644 models/user_tables/user_tables.yml create mode 100644 packages.yml create mode 100644 seeds/couchdb_test_data.csv create mode 100644 seeds/properties.yml create mode 100644 tests/profiles.yml create mode 100755 tests/run_dbt_tests.sh create mode 100755 tests/setup.sh create mode 100755 tests/tear_down.sh diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..fe721808 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,43 @@ +name: Test + +on: [push, pull_request] + +jobs: + dbt-unit-tests: + name: Unit Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 16.x + - name: Get Docker Hub username + id: get-docker-hub-username + run: echo '::set-output name=dockerhub_username::${{ secrets.DOCKERHUB_USERNAME }}' + - name: Login to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + if: steps.get-docker-hub-username.outputs.dockerhub_username + - name: Install PostgreSQL client + run: | + sudo apt-get update + sudo apt-get install --yes postgresql-client + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.8" + - name: Install dependencies + run: | + pip install dbt-postgres + dbt deps + - name: Setup test + run: ./setup.sh + working-directory: ./tests + - name: Run dbt and tests + run: ./run_dbt_tests.sh + working-directory: ./tests + - name: Cleanup + run: ./tear_down.sh + working-directory: ./tests diff --git a/.gitignore b/.gitignore index dad33a45..6567ff4a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ target/ dbt_modules/ +dbt_packages/ logs/ +*/.env +*/dbt_packages/ diff --git a/README.md b/README.md index 17ea3711..8a341de4 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,33 @@ CHT Pipeline is a tool used to define data models for transforming the raw data # Dev installation instructions 1. Follow the instructions in [cht-sync](https://github.com/medic/cht-sync) to set up the required environment variables -1. Run `docker-compose up` in the cht-sync directory to run the pipeline. Please ensure the `DATAEMON_INITAL_PACKAGE` env variable is set to your preferred branch of the cht-pipeline repo. +1. Run `docker-compose up` in the cht-sync directory to run the pipeline. Please ensure the `DATAEMON_INITAL_PACKAGE` env variable is set to your preferred branch of the cht-pipeline repo. + +# Test +## Run dbt models unit tests locally +### Prerequisites + +- `Docker` +- `PostgreSQL client` +- `dbt-postgres` +- `Python` + +1. Navigate to tests folder +2. Run setup script: + +```sh +# Set environment variables, create postgres database, schema and user: +./setup.sh +``` + +3. Run dbt test + +```sh +# set environment variables, install dbt dependencies, seed data, run dbt, run test +./run_dbt_tests.sh +``` + +4. Clean up: +```sh +./tear_down.sh +``` diff --git a/dbt_project.yml b/dbt_project.yml index 65568ae0..a3c72e0c 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,29 +1,27 @@ - # Name your project! Project names should contain only lowercase characters # and underscores. A good package name should reflect your organization's # name or the intended use of these models -name: 'pipeline' -version: '0.0.1' +name: "pipeline" +version: "0.0.1" config-version: 2 # This setting configures which "profile" dbt uses for this project. -profile: 'default' +profile: "default" # These configurations specify where dbt should look for different types of files. # The `source-paths` config, for example, states that models in this project can be # found in the "models/" directory. You probably won't need to change these! -source-paths: ["models"] +model-paths: ["models"] analysis-paths: ["analysis"] test-paths: ["tests"] -data-paths: ["data"] +seed-paths: ["seeds"] macro-paths: ["macros"] snapshot-paths: ["snapshots"] -target-path: "target" # directory which will store compiled SQL files -clean-targets: # directories to be removed by `dbt clean` - - "target" - - "dbt_modules" - +target-path: "target" # directory which will store compiled SQL files +clean-targets: # directories to be removed by `dbt clean` + - "target" + - "dbt_modules" # Configuring models # Full documentation: https://docs.getdbt.com/docs/configuring-models @@ -32,11 +30,10 @@ clean-targets: # directories to be removed by `dbt clean` # as tables. These settings can be overridden in the individual model files # using the `{{ config(...) }}` macro. models: - type_partitions: - root: - materialized: view - types: - materialized: incremental - contact_views: - materialized: view - + type_partitions: + root: + materialized: view + types: + materialized: incremental + contact_views: + materialized: view diff --git a/macros/select_table.sql b/macros/select_table.sql new file mode 100644 index 00000000..228e244d --- /dev/null +++ b/macros/select_table.sql @@ -0,0 +1,13 @@ +{% macro select_table(source_table, test_table) %} + + {% if target.name == 'test' %} + + {{ return(test_table) }} + + {% else %} + + {{ return(source_table) }} + + {% endif %} + +{% endmacro %} diff --git a/models/contact_views/contact_views.yml b/models/contact_views/contact_views.yml new file mode 100644 index 00000000..8ad464b5 --- /dev/null +++ b/models/contact_views/contact_views.yml @@ -0,0 +1,25 @@ +version: 2 + +models: + - name: raw_contacts + columns: + - name: doc + tests: + - not_null + tests: + - dbt_utils.fewer_rows_than: + compare_model: ref('couchdb') + - name: contactview_metadata + columns: + - name: uuid + tests: + - not_null + - name: type + tests: + - not_null + - accepted_values: + values: + [contact, clinic, district_hospital, health_center, person] + tests: + - dbt_utils.equal_rowcount: + compare_model: ref('raw_contacts') diff --git a/models/households/households.yml b/models/households/households.yml new file mode 100644 index 00000000..fb691fb9 --- /dev/null +++ b/models/households/households.yml @@ -0,0 +1,7 @@ +version: 2 + +models: + - name: household_visits + tests: + - dbt_utils.fewer_rows_than: + compare_model: ref('couchdb') diff --git a/models/reports_tables/reports_tables.yml b/models/reports_tables/reports_tables.yml new file mode 100644 index 00000000..cef65011 --- /dev/null +++ b/models/reports_tables/reports_tables.yml @@ -0,0 +1,25 @@ +version: 2 + +models: + - name: reports_by_location + columns: + - name: uuid + tests: + - not_null + - name: longitude + tests: + - not_null + - name: latitude + tests: + - not_null + tests: + - dbt_utils.equal_rowcount: + compare_model: ref('reports') + - name: reports + columns: + - name: uuid + tests: + - not_null + tests: + - dbt_utils.fewer_rows_than: + compare_model: ref('couchdb') diff --git a/models/root/couchdb.sql b/models/root/couchdb.sql index 8baf5fd4..87d64239 100644 --- a/models/root/couchdb.sql +++ b/models/root/couchdb.sql @@ -1,3 +1,5 @@ +{% set import_couchdb_data = select_table(source('couchdb','couchdb'), ref('couchdb_test_data')) %} + {{ config( materialized = 'view', @@ -10,4 +12,4 @@ SELECT doc->>'type' AS type, * -FROM {{ env_var('ROOT_POSTGRES_SCHEMA') }}.{{ env_var('POSTGRES_TABLE') }} +FROM {{ import_couchdb_data }} diff --git a/models/root/root.yml b/models/root/root.yml new file mode 100644 index 00000000..9b7ed72b --- /dev/null +++ b/models/root/root.yml @@ -0,0 +1,22 @@ +version: 2 + +sources: + - name: couchdb + database: data + schema: v1 + tables: + - name: couchdb +models: + - name: couchdb + columns: + - name: _id + tests: + - not_null + - name: _rev + tests: + - not_null + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - _id + - _rev diff --git a/models/types/schema.yml b/models/types/schema.yml deleted file mode 100644 index 9a5ee60f..00000000 --- a/models/types/schema.yml +++ /dev/null @@ -1,11 +0,0 @@ - -version: 2 - -models: - - name: partition - description: "A starter dbt model" - columns: - - name: _id - description: "The primary key for this table" - tests: - - unique diff --git a/models/types/types.yml b/models/types/types.yml new file mode 100644 index 00000000..eaa202af --- /dev/null +++ b/models/types/types.yml @@ -0,0 +1,11 @@ +version: 2 + +models: + - name: data_record + tests: + - dbt_utils.fewer_rows_than: + compare_model: ref('couchdb') + - name: person + tests: + - dbt_utils.fewer_rows_than: + compare_model: ref('couchdb') diff --git a/models/user_tables/user_tables.yml b/models/user_tables/user_tables.yml new file mode 100644 index 00000000..95f6e872 --- /dev/null +++ b/models/user_tables/user_tables.yml @@ -0,0 +1,9 @@ +version: 2 + +models: + - name: chws + tests: + - dbt_utils.fewer_rows_than: + compare_model: ref('couchdb') + - dbt_utils.equal_rowcount: + compare_model: ref('person') diff --git a/packages.yml b/packages.yml new file mode 100644 index 00000000..60f8dfb7 --- /dev/null +++ b/packages.yml @@ -0,0 +1,3 @@ +packages: + - package: dbt-labs/dbt_utils + version: 1.1.1 diff --git a/seeds/couchdb_test_data.csv b/seeds/couchdb_test_data.csv new file mode 100644 index 00000000..f70aff94 --- /dev/null +++ b/seeds/couchdb_test_data.csv @@ -0,0 +1,56 @@ +"@version","@timestamp","_id","_rev","doc","doc_as_upsert" +"1","2023-08-04 20:24:26.519","[""004c5896-1b85-5287-8b0f-5de322dd0f92"",""004c5896-1b85-5287-8b0f-5de322dd0f92""]","[""1-8af042bd58d149525367358c8a4bd424"",""1-8af042bd58d149525367358c8a4bd424""]","{""_id"": ""004c5896-1b85-5287-8b0f-5de322dd0f92"", ""sex"": ""female"", ""_rev"": ""1-8af042bd58d149525367358c8a4bd424"", ""name"": ""la personne 364"", ""type"": ""person"", ""phone"": ""+16143331918"", ""parent"": {""_id"": ""722a2159-03d2-5b89-91d4-fa1dac83fedc"", ""name"": ""Clinic_12"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""50363"", ""date_of_birth"": ""2000/02/01"", ""reported_date"": ""1530976515000""}",True +"1","2023-08-04 20:24:26.51","[""00443d2a-9b6f-5ff0-9070-4f350c9aed9f"",""00443d2a-9b6f-5ff0-9070-4f350c9aed9f""]","[""1-cbf81c752cf0e0cd3e418bb6b05c66ba"",""1-cbf81c752cf0e0cd3e418bb6b05c66ba""]","{""_id"": ""00443d2a-9b6f-5ff0-9070-4f350c9aed9f"", ""sex"": ""female"", ""_rev"": ""1-cbf81c752cf0e0cd3e418bb6b05c66ba"", ""name"": ""Person 2331"", ""type"": ""person"", ""phone"": ""+16143333885"", ""parent"": {""_id"": ""8852ee36-653a-51e1-aa60-492805ae957d"", ""name"": ""Clinic_8"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""82331"", ""date_of_birth"": ""2006/06/15"", ""reported_date"": ""1530978482000""}",True +"1","2023-08-04 20:24:26.418","[""0029582c-0c4f-51ae-971e-fce999c332ea"",""0029582c-0c4f-51ae-971e-fce999c332ea""]","[""1-7db9cbe7a217f47b8321881d1631a1b3"",""1-7db9cbe7a217f47b8321881d1631a1b3""]","{""_id"": ""0029582c-0c4f-51ae-971e-fce999c332ea"", ""sex"": ""female"", ""_rev"": ""1-7db9cbe7a217f47b8321881d1631a1b3"", ""name"": ""Person 2949"", ""type"": ""person"", ""phone"": ""+16143334503"", ""parent"": {""_id"": ""8852ee36-653a-51e1-aa60-492805ae957d"", ""name"": ""Clinic_8"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""82949"", ""date_of_birth"": ""2008/02/23"", ""reported_date"": ""1530979100000""}",True +"1","2023-08-04 20:24:26.515","[""0020c8e4-a08d-54f4-8615-b596e08e158f"",""0020c8e4-a08d-54f4-8615-b596e08e158f""]","[""1-b47382397b1e9c05828d61e4d4440c65"",""1-b47382397b1e9c05828d61e4d4440c65""]","{""_id"": ""0020c8e4-a08d-54f4-8615-b596e08e158f"", ""sex"": ""female"", ""_rev"": ""1-b47382397b1e9c05828d61e4d4440c65"", ""name"": ""Person 1048"", ""type"": ""person"", ""phone"": ""+16143332602"", ""parent"": {""_id"": ""e6182af7-31f3-56b4-8d7a-56b6b7266069"", ""name"": ""Clinic_7"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""81048"", ""date_of_birth"": ""2002/12/10"", ""reported_date"": ""1530977199000""}",True +"1","2023-08-04 20:24:26.495","[""00135d1c-59a2-5de1-bfaa-3886ba684cd3"",""00135d1c-59a2-5de1-bfaa-3886ba684cd3""]","[""1-4ded708b2d2651d5352b1f81041cde4e"",""1-4ded708b2d2651d5352b1f81041cde4e""]","{""_id"": ""00135d1c-59a2-5de1-bfaa-3886ba684cd3"", ""_rev"": ""1-4ded708b2d2651d5352b1f81041cde4e"", ""form"": ""pregnancy"", ""from"": ""+16143331988"", ""type"": ""data_record"", ""fields"": {""edd"": ""2020/08/19"", ""meta"": {""instanceID"": ""uuid:6c14ab6e-d8f5-4f6e-8767-be6154c2028e""}, ""inputs"": {""source"": ""contact"", ""contact"": {""_id"": ""e3040ffc-0a1e-5b3c-9dcf-f9d23ee16c515"", ""sex"": ""female"", ""name"": ""Person 868"", ""parent"": {""contact"": {""name"": """", ""phone"": """"}}, ""date_of_birth"": ""2001/04/09""}, ""source_id"": """"}, ""chw_sms"": ""Hi , a pregnancy for Person 2 (46462) has been registered at the facility. You will receive ANC notifications for this patient. Please follow up to identify the patient. Thank you!"", ""chw_name"": """", ""edd_8601"": ""2019-06-13T00:00:00.000Z"", ""lmp_date"": ""2019/11/13"", ""chw_phone"": """", ""group_lmp"": {""g_edd"": ""2020/08/19"", ""g_edd_8601"": ""2019-06-13T00:00:00.000Z"", ""g_lmp_date"": ""2019/11/13"", ""g_lmp_approx"": ""91"", ""g_lmp_method"": ""approx"", ""g_display_edd"": """", ""g_lmp_date_raw"": ""Thu Sep 06 2018 00:00:00 GMT-0400 (Eastern Daylight Time)"", ""g_lmp_date_8601"": ""2019/11/13""}, ""group_note"": {""g_chw_sms"": """", ""is_sms_edited"": ""yes"", ""default_chw_sms"": ""default"", ""default_chw_sms_note"": """", ""default_chw_sms_text"": ""Hi , a pregnancy for Person 2 (46462) has been registered at the facility. You will receive ANC notifications for this patient. Please follow up to identify the patient. Thank you!""}, ""lmp_method"": ""approx"", ""danger_signs"": """", ""group_review"": {""submit"": """", ""r_summary"": """", ""r_followup"": """", ""r_reminders"": """", ""r_followup_note1"": """", ""r_followup_note2"": """", ""r_reminder_trim2"": """", ""r_pregnancy_details"": """"}, ""patient_name"": ""Person 868"", ""patient_uuid"": ""e3040ffc-0a1e-5b3c-9dcf-f9d23ee16c515"", ""risk_factors"": """", ""lmp_date_8601"": ""2019/11/13"", ""days_since_lmp"": ""91.75"", ""weeks_since_lmp"": ""13.11"", ""group_danger_signs"": {""g_danger_signs"": """", ""g_danger_signs_note"": """"}, ""group_risk_factors"": {""g_risk_factors"": """"}, ""patient_age_at_lmp"": ""18"", ""patient_age_in_years"": ""18""}, ""contact"": {""_id"": ""6d4dc6a7-67fd-5515-8210-be2cb11cdc93"", ""sex"": ""female"", ""name"": ""Person 868"", ""type"": ""person"", ""phone"": ""+16143332422"", ""parent"": {""_id"": ""7ba7f250-d52b-52ee-becd-3495cb5c50e2"", ""name"": ""Clinic_6"", ""type"": ""clinic"", ""parent"": {""_id"": ""8606a91a-f454-56e3-a089-0b686af3c6b7"", ""name"": ""HC1"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""80868"", ""date_of_birth"": ""2002/06/13"", ""reported_date"": ""1530977019000""}, ""patient_id"": ""80868"", ""content_type"": ""xml"", ""reported_date"": 1599177126}",True +"1","2023-08-04 20:24:26.533","[""005754e8-7740-56d4-aca9-d25d9cb51939"",""005754e8-7740-56d4-aca9-d25d9cb51939""]","[""1-e6efc10a25d3c4217be04f99b6f794d3"",""1-e6efc10a25d3c4217be04f99b6f794d3""]","{""_id"": ""005754e8-7740-56d4-aca9-d25d9cb51939"", ""sex"": ""female"", ""_rev"": ""1-e6efc10a25d3c4217be04f99b6f794d3"", ""name"": ""la personne 974"", ""type"": ""person"", ""phone"": ""+16143332528"", ""parent"": {""_id"": ""758ba93c-f202-5930-92c6-b94ec6d00d18"", ""name"": ""Clinic_13"", ""type"": ""clinic"", ""parent"": {""_id"": ""5ecf4a0f-2ca9-5c97-a026-e90d93193577"", ""name"": ""HC3"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""50973"", ""date_of_birth"": ""2000/02/01"", ""reported_date"": ""1530977125000""}",True +"1","2023-08-04 20:24:26.529","[""002eb524-287c-5ed9-8841-4a4d74583264"",""002eb524-287c-5ed9-8841-4a4d74583264""]","[""1-b815f98e0c4105d0bcdaea2e1cab3937"",""1-b815f98e0c4105d0bcdaea2e1cab3937""]","{""_id"": ""002eb524-287c-5ed9-8841-4a4d74583264"", ""sex"": ""female"", ""_rev"": ""1-b815f98e0c4105d0bcdaea2e1cab3937"", ""name"": ""Person 1351"", ""type"": ""person"", ""phone"": ""+16143332905"", ""parent"": {""_id"": ""e6182af7-31f3-56b4-8d7a-56b6b7266069"", ""name"": ""Clinic_7"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""81351"", ""date_of_birth"": ""2003/10/09"", ""reported_date"": ""1530977502000""}",True +"1","2023-08-04 20:24:26.58","[""008a1e06-63f5-5f2c-b670-704288743be1"",""008a1e06-63f5-5f2c-b670-704288743be1""]","[""1-5c99b2c9b3f892b4b48a1462cb4bc2af"",""1-5c99b2c9b3f892b4b48a1462cb4bc2af""]","{""_id"": ""008a1e06-63f5-5f2c-b670-704288743be1"", ""sex"": ""female"", ""_rev"": ""1-5c99b2c9b3f892b4b48a1462cb4bc2af"", ""name"": ""Person 1308"", ""type"": ""person"", ""phone"": ""+16143332862"", ""parent"": {""_id"": ""e6182af7-31f3-56b4-8d7a-56b6b7266069"", ""name"": ""Clinic_7"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""81308"", ""date_of_birth"": ""2003/08/27"", ""reported_date"": ""1530977459000""}",True +"1","2023-08-04 20:24:26.6","[""00a9a780-b680-5567-bbcc-cd6155e5aa0d"",""00a9a780-b680-5567-bbcc-cd6155e5aa0d""]","[""1-558dbfa09c3dc5be5cadb84e81a1a3fb"",""1-558dbfa09c3dc5be5cadb84e81a1a3fb""]","{""_id"": ""00a9a780-b680-5567-bbcc-cd6155e5aa0d"", ""sex"": ""male"", ""_rev"": ""1-558dbfa09c3dc5be5cadb84e81a1a3fb"", ""name"": ""Person 5934"", ""type"": ""person"", ""phone"": ""+16143337488"", ""parent"": {""_id"": ""b2e4c4ac-d748-5829-a9b0-0cfd5c0f52ab"", ""name"": ""Clinic_11"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""85938"", ""date_of_birth"": ""2016/04/26"", ""reported_date"": ""1530982085000""}",True +"1","2023-08-04 20:24:26.642","[""00f0c90a-6949-50e8-bec5-3737167d3d7c"",""00f0c90a-6949-50e8-bec5-3737167d3d7c""]","[""1-687788015cafee05f10c5e480d759b38"",""1-687788015cafee05f10c5e480d759b38""]","{""_id"": ""00f0c90a-6949-50e8-bec5-3737167d3d7c"", ""sex"": ""female"", ""_rev"": ""1-687788015cafee05f10c5e480d759b38"", ""name"": ""Person 2943"", ""type"": ""person"", ""phone"": ""+16143334497"", ""parent"": {""_id"": ""8852ee36-653a-51e1-aa60-492805ae957d"", ""name"": ""Clinic_8"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""82943"", ""date_of_birth"": ""2008/02/17"", ""reported_date"": ""1530979094000""}",True +"1","2023-08-04 20:24:26.647","[""00fdd525-c76b-527b-940e-f9abf43c2dcb"",""00fdd525-c76b-527b-940e-f9abf43c2dcb""]","[""1-4a9521993481e0087cf41c9dbd6cf2c8"",""1-4a9521993481e0087cf41c9dbd6cf2c8""]","{""_id"": ""00fdd525-c76b-527b-940e-f9abf43c2dcb"", ""_rev"": ""1-4a9521993481e0087cf41c9dbd6cf2c8"", ""form"": ""delivery"", ""from"": ""+16143331877"", ""type"": ""data_record"", ""fields"": {""meta"": {""instanceID"": ""uuid:bbae788d-dac8-49b9-a889-f98bc1759e404""}, ""inputs"": {""source"": ""contact"", ""contact"": {""_id"": ""9925008f-9c5c-5603-8550-40f609bd61e331"", ""sex"": ""female"", ""name"": ""Person 646"", ""phone"": ""+16143331878"", ""date_of_birth"": ""2000/12/19""}, ""source_id"": """"}, ""chw_sms"": ""Good news, ! Person 2 (2) has delivered at the health facility. We will alert you when it is time to refer them for PNC. Please monitor them for danger signs. Thank you!"", ""chw_name"": """", ""chw_phone"": """", ""birth_date"": ""2019/10/27"", ""group_note"": {""g_chw_sms"": """", ""is_sms_edited"": ""yes"", ""default_chw_sms"": ""facility_birth"", ""default_chw_sms_note"": """", ""default_chw_sms_text"": ""Good news, ! Person 2 (2) has delivered at the health facility. We will alert you when it is time to refer them for PNC. Please monitor them for danger signs. Thank you!""}, ""patient_name"": ""Person 646"", ""patient_uuid"": ""9925008f-9c5c-5603-8550-40f609bd61e331"", ""delivery_code"": ""f"", ""group_summary"": {""submit"": """", ""r_summary"": """", ""r_followup"": """", ""r_birth_date"": """", ""r_patient_info"": """", ""r_followup_note1"": """", ""r_followup_note2"": """", ""r_delivery_location"": ""Facility"", ""r_pregnancy_outcome"": """"}, ""pregnancy_outcome"": ""healthy"", ""label_delivery_code"": ""Facility"", ""patient_age_in_years"": ""18"", ""patient_contact_phone"": """", ""group_delivery_summary"": {""g_birth_date"": ""2019/10/27"", ""g_delivery_code"": ""f"", ""display_birth_date"": ""2019/10/27"", ""g_pregnancy_outcome"": ""healthy"", ""display_delivery_outcome"": ""Live Birth""}, ""label_pregnancy_outcome"": ""Live Birth""}, ""contact"": {""_id"": ""9835d113-a7d9-53b7-8f86-4ed4fe769496"", ""parent"": {""_id"": ""d4767240-52b4-52e8-93ec-658b8f340b343"", ""parent"": {""_id"": ""e32bce1c-f419-562a-8fd3-f657271dac366"", ""parent"": {""_id"": ""0c31056a-3a80-54dd-b136-46145d451a388""}}}}, ""patient_id"": ""80646"", ""content_type"": ""xml"", ""reported_date"": 1599177126}",True +"1","2023-08-04 20:24:35.016","[""01305bc2-20e5-580f-b241-1f5e86bbd16b"",""01305bc2-20e5-580f-b241-1f5e86bbd16b""]","[""1-f660297c3d775c2c112d7aa1b7248f2f"",""1-f660297c3d775c2c112d7aa1b7248f2f""]","{""_id"": ""01305bc2-20e5-580f-b241-1f5e86bbd16b"", ""sex"": ""male"", ""_rev"": ""1-f660297c3d775c2c112d7aa1b7248f2f"", ""name"": ""Person 4938"", ""type"": ""person"", ""phone"": ""+16143336492"", ""parent"": {""_id"": ""1785e39b-3691-57e4-9c36-59ec0f7621e6"", ""name"": ""Clinic_10"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""84940"", ""date_of_birth"": ""2013/08/04"", ""reported_date"": ""1530981089000""}",True +"1","2023-08-04 20:24:45.132","[""01382c06-5ed5-5e93-8465-bfeab98e1a8f"",""01382c06-5ed5-5e93-8465-bfeab98e1a8f""]","[""1-27f1d23ac673d66235924dccdea15270"",""1-27f1d23ac673d66235924dccdea15270""]","{""_id"": ""01382c06-5ed5-5e93-8465-bfeab98e1a8f"", ""sex"": ""female"", ""_rev"": ""1-27f1d23ac673d66235924dccdea15270"", ""name"": ""Person 266"", ""type"": ""person"", ""phone"": ""+16143331820"", ""parent"": {""_id"": ""64cc225a-10fe-5d9a-aa31-0c29df922d0a"", ""name"": ""Clinic_5"", ""type"": ""clinic"", ""parent"": {""_id"": ""8606a91a-f454-56e3-a089-0b686af3c6b7"", ""name"": ""HC1"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""80266"", ""date_of_birth"": ""2000/10/19"", ""reported_date"": ""1530976417000""}",True +"1","2023-08-04 20:24:26.542","[""005b0917-9e07-5cb1-ac29-17e2d266d1af"",""005b0917-9e07-5cb1-ac29-17e2d266d1af""]","[""1-6bdae2c07892614e3cad3f346819988c"",""1-6bdae2c07892614e3cad3f346819988c""]","{""_id"": ""005b0917-9e07-5cb1-ac29-17e2d266d1af"", ""sex"": ""female"", ""_rev"": ""1-6bdae2c07892614e3cad3f346819988c"", ""name"": ""Person 5987"", ""type"": ""person"", ""phone"": ""+16143337541"", ""parent"": {""_id"": ""b2e4c4ac-d748-5829-a9b0-0cfd5c0f52ab"", ""name"": ""Clinic_11"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""85991"", ""date_of_birth"": ""2016/06/18"", ""reported_date"": ""1530982138000""}",True +"1","2023-08-04 20:24:26.577","[""006ae115-69b1-5335-906c-1af7dc76e3d3"",""006ae115-69b1-5335-906c-1af7dc76e3d3""]","[""1-dcf2df0fc2d65c4be183904105282494"",""1-dcf2df0fc2d65c4be183904105282494""]","{""_id"": ""006ae115-69b1-5335-906c-1af7dc76e3d3"", ""sex"": ""male"", ""_rev"": ""1-dcf2df0fc2d65c4be183904105282494"", ""name"": ""la personne 155"", ""type"": ""person"", ""phone"": ""+16143331709"", ""parent"": {""_id"": ""722a2159-03d2-5b89-91d4-fa1dac83fedc"", ""name"": ""Clinic_12"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""50154"", ""date_of_birth"": ""2000/02/01"", ""reported_date"": ""1530976306000""}",True +"1","2023-08-04 20:24:26.59","[""00a37e3d-d05c-5399-b825-70db43bdb654"",""00a37e3d-d05c-5399-b825-70db43bdb654""]","[""1-413c9cc749aab56653041573174824c1"",""1-413c9cc749aab56653041573174824c1""]","{""_id"": ""00a37e3d-d05c-5399-b825-70db43bdb654"", ""sex"": ""female"", ""_rev"": ""1-413c9cc749aab56653041573174824c1"", ""name"": ""Person 1959"", ""type"": ""person"", ""phone"": ""+16143333513"", ""parent"": {""_id"": ""e6182af7-31f3-56b4-8d7a-56b6b7266069"", ""name"": ""Clinic_7"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""81959"", ""date_of_birth"": ""2005/06/08"", ""reported_date"": ""1530978110000""}",True +"1","2023-08-04 20:24:26.66","[""0102dd2f-c3bf-5d1c-b84f-35f7afdebcce"",""0102dd2f-c3bf-5d1c-b84f-35f7afdebcce""]","[""1-495e8e116515bbf1ae4ac646b674d2fa"",""1-495e8e116515bbf1ae4ac646b674d2fa""]","{""_id"": ""0102dd2f-c3bf-5d1c-b84f-35f7afdebcce"", ""sex"": ""male"", ""_rev"": ""1-495e8e116515bbf1ae4ac646b674d2fa"", ""name"": ""la personne 193"", ""type"": ""person"", ""phone"": ""+16143331747"", ""parent"": {""_id"": ""722a2159-03d2-5b89-91d4-fa1dac83fedc"", ""name"": ""Clinic_12"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""50192"", ""date_of_birth"": ""2000/02/01"", ""reported_date"": ""1530976344000""}",True +"1","2023-08-04 20:24:28.775","[""011cb398-4505-5a0c-b5df-a075a507e6d0"",""011cb398-4505-5a0c-b5df-a075a507e6d0""]","[""1-6c9ac16e1adcebcbc50778f34b152444"",""1-6c9ac16e1adcebcbc50778f34b152444""]","{""_id"": ""011cb398-4505-5a0c-b5df-a075a507e6d0"", ""sex"": ""male"", ""_rev"": ""1-6c9ac16e1adcebcbc50778f34b152444"", ""name"": ""Person 5364"", ""type"": ""person"", ""phone"": ""+16143336918"", ""parent"": {""_id"": ""b2e4c4ac-d748-5829-a9b0-0cfd5c0f52ab"", ""name"": ""Clinic_11"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""85368"", ""date_of_birth"": ""2014/10/04"", ""reported_date"": ""1530981515000""}",True +"1","2023-08-04 20:24:39.072","[""0132454d-608a-551f-8b2b-6c425f78f02e"",""0132454d-608a-551f-8b2b-6c425f78f02e""]","[""1-a2d7df81711bbb1a463ad50d9f7c4bd9"",""1-a2d7df81711bbb1a463ad50d9f7c4bd9""]","{""_id"": ""0132454d-608a-551f-8b2b-6c425f78f02e"", ""sex"": ""female"", ""_rev"": ""1-a2d7df81711bbb1a463ad50d9f7c4bd9"", ""name"": ""Person 5331"", ""type"": ""person"", ""phone"": ""+16143336885"", ""parent"": {""_id"": ""b2e4c4ac-d748-5829-a9b0-0cfd5c0f52ab"", ""name"": ""Clinic_11"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""85335"", ""date_of_birth"": ""2014/09/01"", ""reported_date"": ""1530981482000""}",True +"1","2023-08-04 20:24:49.182","[""016a0e81-26bf-546f-895e-5f55687e50cf"",""016a0e81-26bf-546f-895e-5f55687e50cf""]","[""1-81ec6120267ba107e03aff07845d667c"",""1-81ec6120267ba107e03aff07845d667c""]","{""_id"": ""016a0e81-26bf-546f-895e-5f55687e50cf"", ""_rev"": ""1-81ec6120267ba107e03aff07845d667c"", ""form"": ""delivery"", ""from"": ""+16143331687"", ""type"": ""data_record"", ""fields"": {""meta"": {""instanceID"": ""uuid:bbae788d-dac8-49b9-a889-f98bc1759e214""}, ""inputs"": {""source"": ""contact"", ""contact"": {""_id"": ""9925008f-9c5c-5603-8550-40f609bd61e141"", ""sex"": ""female"", ""name"": ""Person 266"", ""phone"": ""+16143331688"", ""date_of_birth"": ""2000/06/12""}, ""source_id"": """"}, ""chw_sms"": ""Good news, ! Person 2 (2) has delivered at the health facility. We will alert you when it is time to refer them for PNC. Please monitor them for danger signs. Thank you!"", ""chw_name"": """", ""chw_phone"": """", ""birth_date"": ""2019/04/20"", ""group_note"": {""g_chw_sms"": """", ""is_sms_edited"": ""yes"", ""default_chw_sms"": ""facility_birth"", ""default_chw_sms_note"": """", ""default_chw_sms_text"": ""Good news, ! Person 2 (2) has delivered at the health facility. We will alert you when it is time to refer them for PNC. Please monitor them for danger signs. Thank you!""}, ""patient_name"": ""Person 266"", ""patient_uuid"": ""9925008f-9c5c-5603-8550-40f609bd61e141"", ""delivery_code"": ""f"", ""group_summary"": {""submit"": """", ""r_summary"": """", ""r_followup"": """", ""r_birth_date"": """", ""r_patient_info"": """", ""r_followup_note1"": """", ""r_followup_note2"": """", ""r_delivery_location"": ""Facility"", ""r_pregnancy_outcome"": """"}, ""pregnancy_outcome"": ""healthy"", ""label_delivery_code"": ""Facility"", ""patient_age_in_years"": ""18"", ""patient_contact_phone"": """", ""group_delivery_summary"": {""g_birth_date"": ""2019/04/20"", ""g_delivery_code"": ""f"", ""display_birth_date"": ""2019/04/20"", ""g_pregnancy_outcome"": ""healthy"", ""display_delivery_outcome"": ""Live Birth""}, ""label_pregnancy_outcome"": ""Live Birth""}, ""contact"": {""_id"": ""9835d113-a7d9-53b7-8f86-4ed4fe769306"", ""parent"": {""_id"": ""d4767240-52b4-52e8-93ec-658b8f340b153"", ""parent"": {""_id"": ""e32bce1c-f419-562a-8fd3-f657271dac176"", ""parent"": {""_id"": ""0c31056a-3a80-54dd-b136-46145d451a198""}}}}, ""patient_id"": ""80266"", ""content_type"": ""xml"", ""reported_date"": 1599177126}",True +"1","2023-08-04 20:24:26.537","[""0046db84-2028-5646-85ab-38990357d94e"",""0046db84-2028-5646-85ab-38990357d94e""]","[""1-4df6d008e6fd4fa51935e20d7c08fd36"",""1-4df6d008e6fd4fa51935e20d7c08fd36""]","{""_id"": ""0046db84-2028-5646-85ab-38990357d94e"", ""sex"": ""female"", ""_rev"": ""1-4df6d008e6fd4fa51935e20d7c08fd36"", ""name"": ""Person 2677"", ""type"": ""person"", ""phone"": ""+16143334231"", ""parent"": {""_id"": ""8852ee36-653a-51e1-aa60-492805ae957d"", ""name"": ""Clinic_8"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""82677"", ""date_of_birth"": ""2007/05/27"", ""reported_date"": ""1530978828000""}",True +"1","2023-08-04 20:24:26.607","[""00bc7e42-7c65-5287-a7aa-4abd683d6b0c"",""00bc7e42-7c65-5287-a7aa-4abd683d6b0c""]","[""1-fb02ff704af21ee704c41a38f6c80948"",""1-fb02ff704af21ee704c41a38f6c80948""]","{""_id"": ""00bc7e42-7c65-5287-a7aa-4abd683d6b0c"", ""sex"": ""male"", ""_rev"": ""1-fb02ff704af21ee704c41a38f6c80948"", ""name"": ""la personne 867"", ""type"": ""person"", ""phone"": ""+16143332421"", ""parent"": {""_id"": ""758ba93c-f202-5930-92c6-b94ec6d00d18"", ""name"": ""Clinic_13"", ""type"": ""clinic"", ""parent"": {""_id"": ""5ecf4a0f-2ca9-5c97-a026-e90d93193577"", ""name"": ""HC3"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""50866"", ""date_of_birth"": ""2000/02/01"", ""reported_date"": ""1530977018000""}",True +"1","2023-08-04 20:24:26.594","[""00a6cc20-5369-526a-9181-be5c50a151e0"",""00a6cc20-5369-526a-9181-be5c50a151e0""]","[""1-e9028a4970537a230683fb90e0cfe5bc"",""1-e9028a4970537a230683fb90e0cfe5bc""]","{""_id"": ""00a6cc20-5369-526a-9181-be5c50a151e0"", ""sex"": ""female"", ""_rev"": ""1-e9028a4970537a230683fb90e0cfe5bc"", ""name"": ""la personne 2738"", ""type"": ""person"", ""phone"": ""+16143334292"", ""parent"": {""_id"": ""c9b6c288-9359-5d24-8445-d09b30a00073"", ""name"": ""Clinic_16"", ""type"": ""clinic"", ""parent"": {""_id"": ""d995f0bd-497e-5335-a262-1b4cdc2450e5"", ""name"": ""HC6"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""52737"", ""date_of_birth"": ""2000/02/01"", ""reported_date"": ""1530978889000""}",True +"1","2023-08-04 20:24:26.623","[""01167318-02c0-542d-9ca6-01148e7a79a2"",""01167318-02c0-542d-9ca6-01148e7a79a2""]","[""1-5ba7c706eaeb6b258cd05a48802b4b11"",""1-5ba7c706eaeb6b258cd05a48802b4b11""]","{""_id"": ""01167318-02c0-542d-9ca6-01148e7a79a2"", ""sex"": ""male"", ""_rev"": ""1-5ba7c706eaeb6b258cd05a48802b4b11"", ""name"": ""Person 3688"", ""type"": ""person"", ""phone"": ""+16143335242"", ""parent"": {""_id"": ""c1f5db2f-0205-56ee-9433-dcc8a2f9b5c2"", ""name"": ""Clinic_9"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""83688"", ""date_of_birth"": ""2010/03/03"", ""reported_date"": ""1530979839000""}",True +"1","2023-08-04 20:24:26.626","[""00aedb9f-d7dd-5f24-82b2-b866a9eceef9"",""00aedb9f-d7dd-5f24-82b2-b866a9eceef9""]","[""1-cc249cb868776dce725a53a7990c4159"",""1-cc249cb868776dce725a53a7990c4159""]","{""_id"": ""00aedb9f-d7dd-5f24-82b2-b866a9eceef9"", ""sex"": ""male"", ""_rev"": ""1-cc249cb868776dce725a53a7990c4159"", ""name"": ""la personne 2221"", ""type"": ""person"", ""phone"": ""+16143333775"", ""parent"": {""_id"": ""36fc7555-e5ad-5b29-9834-e25b3ecbe885"", ""name"": ""Clinic_15"", ""type"": ""clinic"", ""parent"": {""_id"": ""d5438109-3db5-50cd-9c36-f0ff9dc4be8b"", ""name"": ""HC5"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""52220"", ""date_of_birth"": ""2000/02/01"", ""reported_date"": ""1530978372000""}",True +"1","2023-08-04 20:24:26.633","[""00cfa124-3ab3-5561-8d2c-596cd1cbc9f1"",""00cfa124-3ab3-5561-8d2c-596cd1cbc9f1""]","[""1-83865aee3a9caa7dce8409e23734e5e0"",""1-83865aee3a9caa7dce8409e23734e5e0""]","{""_id"": ""00cfa124-3ab3-5561-8d2c-596cd1cbc9f1"", ""sex"": ""male"", ""_rev"": ""1-83865aee3a9caa7dce8409e23734e5e0"", ""name"": ""la personne 1875"", ""type"": ""person"", ""phone"": ""+16143333429"", ""parent"": {""_id"": ""36fc7555-e5ad-5b29-9834-e25b3ecbe885"", ""name"": ""Clinic_15"", ""type"": ""clinic"", ""parent"": {""_id"": ""d5438109-3db5-50cd-9c36-f0ff9dc4be8b"", ""name"": ""HC5"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""51874"", ""date_of_birth"": ""2000/02/01"", ""reported_date"": ""1530978026000""}",True +"1","2023-08-04 20:24:26.679","[""01192df5-2d5c-5a7e-acb9-7dd4fca32522"",""01192df5-2d5c-5a7e-acb9-7dd4fca32522""]","[""1-321b3393bd7dbb26a6e4a5261caf3418"",""1-321b3393bd7dbb26a6e4a5261caf3418""]","{""_id"": ""01192df5-2d5c-5a7e-acb9-7dd4fca32522"", ""_rev"": ""1-321b3393bd7dbb26a6e4a5261caf3418"", ""name"": ""HC13"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}",True +"1","2023-08-04 20:24:37.043","[""013208b2-859c-5ef2-838f-da227e01a3d6"",""013208b2-859c-5ef2-838f-da227e01a3d6""]","[""1-27f079170b085d39a0ec903c3e734c1f"",""1-27f079170b085d39a0ec903c3e734c1f""]","{""_id"": ""013208b2-859c-5ef2-838f-da227e01a3d6"", ""sex"": ""female"", ""_rev"": ""1-27f079170b085d39a0ec903c3e734c1f"", ""name"": ""la personne 1448"", ""type"": ""person"", ""phone"": ""+16143333002"", ""parent"": {""_id"": ""3f137e96-f22c-56c0-868b-285a970807fb"", ""name"": ""Clinic_14"", ""type"": ""clinic"", ""parent"": {""_id"": ""6c0911a0-d4b8-52c0-985a-e1b69becc6c1"", ""name"": ""HC4"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""51447"", ""date_of_birth"": ""2000/02/01"", ""reported_date"": ""1530977599000""}",True +"1","2023-08-04 20:24:26.556","[""005cb830-844e-50b0-9e00-686f09e01342"",""005cb830-844e-50b0-9e00-686f09e01342""]","[""1-34dbac2936cbeb4cee1af1a9a065d202"",""1-34dbac2936cbeb4cee1af1a9a065d202""]","{""_id"": ""005cb830-844e-50b0-9e00-686f09e01342"", ""sex"": ""male"", ""_rev"": ""1-34dbac2936cbeb4cee1af1a9a065d202"", ""name"": ""Person 3934"", ""type"": ""person"", ""phone"": ""+16143335488"", ""parent"": {""_id"": ""c1f5db2f-0205-56ee-9433-dcc8a2f9b5c2"", ""name"": ""Clinic_9"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""83934"", ""date_of_birth"": ""2010/11/04"", ""reported_date"": ""1530980085000""}",True +"1","2023-08-04 20:24:26.547","[""004fd097-10ce-53a4-810e-2fc84f5dc64a"",""004fd097-10ce-53a4-810e-2fc84f5dc64a""]","[""1-76323f40d4adf9a45065c9fb127a0df3"",""1-76323f40d4adf9a45065c9fb127a0df3""]","{""_id"": ""004fd097-10ce-53a4-810e-2fc84f5dc64a"", ""_rev"": ""1-76323f40d4adf9a45065c9fb127a0df3"", ""form"": ""delivery"", ""from"": ""+16143332115"", ""type"": ""data_record"", ""fields"": {""meta"": {""instanceID"": """"}, ""inputs"": {""source"": ""contact"", ""contact"": {""_id"": ""9925008f-9c5c-5603-8550-40f609bd61e569"", ""sex"": ""female"", ""name"": ""Person 890"", ""phone"": ""+16143332116"", ""date_of_birth"": ""2001/08/14""}, ""source_id"": """"}, ""chw_sms"": """", ""chw_name"": """", ""chw_phone"": """", ""birth_date"": """", ""group_note"": {""g_chw_sms"": """", ""is_sms_edited"": """", ""default_chw_sms"": """", ""default_chw_sms_note"": """", ""default_chw_sms_text"": """"}, ""patient_name"": ""Person 890"", ""patient_uuid"": ""9925008f-9c5c-5603-8550-40f609bd61e569"", ""delivery_code"": """", ""group_summary"": {""submit"": """", ""r_summary"": """", ""r_followup"": """", ""r_birth_date"": """", ""r_patient_info"": """", ""r_followup_note1"": """", ""r_followup_note2"": """", ""r_delivery_location"": """", ""r_pregnancy_outcome"": """"}, ""pregnancy_outcome"": """", ""label_delivery_code"": """", ""patient_age_in_years"": """", ""patient_contact_phone"": """", ""group_delivery_summary"": {""g_birth_date"": """", ""g_delivery_code"": """", ""display_birth_date"": """", ""g_pregnancy_outcome"": """", ""display_delivery_outcome"": """"}, ""label_pregnancy_outcome"": """"}, ""contact"": {""_id"": ""9835d113-a7d9-53b7-8f86-4ed4fe769734"", ""parent"": {""_id"": ""d4767240-52b4-52e8-93ec-658b8f340b581"", ""parent"": {""_id"": ""e32bce1c-f419-562a-8fd3-f657271dac604"", ""parent"": {""_id"": ""0c31056a-3a80-54dd-b136-46145d451a626""}}}}, ""patient_id"": ""50463"", ""content_type"": ""xml"", ""reported_date"": 1599177126}",True +"1","2023-08-04 20:24:26.617","[""00fd1d7f-dc8f-566d-ac87-fa994284e6a4"",""00fd1d7f-dc8f-566d-ac87-fa994284e6a4""]","[""1-d004e898d14a30f8c6cba62ce74964b7"",""1-d004e898d14a30f8c6cba62ce74964b7""]","{""_id"": ""00fd1d7f-dc8f-566d-ac87-fa994284e6a4"", ""sex"": ""female"", ""_rev"": ""1-d004e898d14a30f8c6cba62ce74964b7"", ""name"": ""la personne 638"", ""type"": ""person"", ""phone"": ""+16143332192"", ""parent"": {""_id"": ""758ba93c-f202-5930-92c6-b94ec6d00d18"", ""name"": ""Clinic_13"", ""type"": ""clinic"", ""parent"": {""_id"": ""5ecf4a0f-2ca9-5c97-a026-e90d93193577"", ""name"": ""HC3"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""50637"", ""date_of_birth"": ""2000/02/01"", ""reported_date"": ""1530976789000""}",True +"1","2023-08-04 20:24:26.585","[""00822685-9c33-52d4-b49e-e41723421544"",""00822685-9c33-52d4-b49e-e41723421544""]","[""1-778c3ecba56d12db1a49746abc45676a"",""1-778c3ecba56d12db1a49746abc45676a""]","{""_id"": ""00822685-9c33-52d4-b49e-e41723421544"", ""_rev"": ""1-778c3ecba56d12db1a49746abc45676a"", ""name"": ""Health Center With Immunizations 10"", ""type"": ""health_center"", ""parent"": {""_id"": ""3ddfc45e-8082-5930-af8f-860b3b6c24ac"", ""name"": ""Immunizations"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""contact"": ""{}"", ""vaccines"": ""bcg flu polio typhoid"", ""use_cases"": ""anc pnc imm"", ""imported_date"": ""2018-12-11T15:41:42.751Z"", ""reported_date"": ""1544031155715"", ""generated_name"": """", ""is_name_generated"": ""FALSE""}",True +"1","2023-08-04 20:24:32.979","[""0120a02d-4c9e-562d-98d1-c30c0d36001a"",""0120a02d-4c9e-562d-98d1-c30c0d36001a""]","[""1-9c9783f40b5a762d040b3d0f058d93a2"",""1-9c9783f40b5a762d040b3d0f058d93a2""]","{""_id"": ""0120a02d-4c9e-562d-98d1-c30c0d36001a"", ""_rev"": ""1-9c9783f40b5a762d040b3d0f058d93a2"", ""form"": ""delivery"", ""from"": ""+16143332368"", ""type"": ""data_record"", ""fields"": {""meta"": {""instanceID"": """"}, ""inputs"": {""source"": ""contact"", ""contact"": {""_id"": ""9925008f-9c5c-5603-8550-40f609bd61e822"", ""sex"": ""female"", ""name"": ""Person 1143"", ""phone"": ""+16143332369"", ""date_of_birth"": ""2002/04/24""}, ""source_id"": """"}, ""chw_sms"": """", ""chw_name"": """", ""chw_phone"": """", ""birth_date"": """", ""group_note"": {""g_chw_sms"": """", ""is_sms_edited"": """", ""default_chw_sms"": """", ""default_chw_sms_note"": """", ""default_chw_sms_text"": """"}, ""patient_name"": ""Person 1143"", ""patient_uuid"": ""9925008f-9c5c-5603-8550-40f609bd61e822"", ""delivery_code"": """", ""group_summary"": {""submit"": """", ""r_summary"": """", ""r_followup"": """", ""r_birth_date"": """", ""r_patient_info"": """", ""r_followup_note1"": """", ""r_followup_note2"": """", ""r_delivery_location"": """", ""r_pregnancy_outcome"": """"}, ""pregnancy_outcome"": """", ""label_delivery_code"": """", ""patient_age_in_years"": """", ""patient_contact_phone"": """", ""group_delivery_summary"": {""g_birth_date"": """", ""g_delivery_code"": """", ""display_birth_date"": """", ""g_pregnancy_outcome"": """", ""display_delivery_outcome"": """"}, ""label_pregnancy_outcome"": """"}, ""contact"": {""_id"": ""9835d113-a7d9-53b7-8f86-4ed4fe769987"", ""parent"": {""_id"": ""d4767240-52b4-52e8-93ec-658b8f340b834"", ""parent"": {""_id"": ""e32bce1c-f419-562a-8fd3-f657271dac857"", ""parent"": {""_id"": ""0c31056a-3a80-54dd-b136-46145d451a879""}}}}, ""patient_id"": ""50969"", ""content_type"": ""xml"", ""reported_date"": 1599177126}",True +"1","2023-08-04 20:24:43.12","[""013780b5-14c9-54fc-9f64-bfc28a6b961d"",""013780b5-14c9-54fc-9f64-bfc28a6b961d""]","[""1-3e31286345e9925ffd9453026e6fa89d"",""1-3e31286345e9925ffd9453026e6fa89d""]","{""_id"": ""013780b5-14c9-54fc-9f64-bfc28a6b961d"", ""sex"": ""male"", ""_rev"": ""1-3e31286345e9925ffd9453026e6fa89d"", ""name"": ""Person 2432"", ""type"": ""person"", ""phone"": ""+16143333986"", ""parent"": {""_id"": ""8852ee36-653a-51e1-aa60-492805ae957d"", ""name"": ""Clinic_8"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""82432"", ""date_of_birth"": ""2006/09/24"", ""reported_date"": ""1530978583000""}",True +"1","2023-08-04 20:24:41.091","[""01369374-689d-57b3-a236-7b34036cc891"",""01369374-689d-57b3-a236-7b34036cc891""]","[""1-ed64ea2f0250a3a219b5c44b1b1f0aba"",""1-ed64ea2f0250a3a219b5c44b1b1f0aba""]","{""_id"": ""01369374-689d-57b3-a236-7b34036cc891"", ""sex"": ""female"", ""_rev"": ""1-ed64ea2f0250a3a219b5c44b1b1f0aba"", ""name"": ""la personne 2660"", ""type"": ""person"", ""phone"": ""+16143334214"", ""parent"": {""_id"": ""c9b6c288-9359-5d24-8445-d09b30a00073"", ""name"": ""Clinic_16"", ""type"": ""clinic"", ""parent"": {""_id"": ""d995f0bd-497e-5335-a262-1b4cdc2450e5"", ""name"": ""HC6"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""52659"", ""date_of_birth"": ""2000/02/01"", ""reported_date"": ""1530978811000""}",True +"1","2023-08-04 20:24:51.194","[""016f4a4e-973f-5eb3-96e8-d3ade08cf803"",""016f4a4e-973f-5eb3-96e8-d3ade08cf803""]","[""1-f8fa6dd805d230bddc167c79069f29e6"",""1-f8fa6dd805d230bddc167c79069f29e6""]","{""_id"": ""016f4a4e-973f-5eb3-96e8-d3ade08cf803"", ""sex"": ""female"", ""_rev"": ""1-f8fa6dd805d230bddc167c79069f29e6"", ""name"": ""Person 1428"", ""type"": ""person"", ""phone"": ""+16143332982"", ""parent"": {""_id"": ""e6182af7-31f3-56b4-8d7a-56b6b7266069"", ""name"": ""Clinic_7"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""81428"", ""date_of_birth"": ""2003/12/25"", ""reported_date"": ""1530977579000""}",True +"1","2023-08-04 20:25:01.311","[""017c1197-6e4f-5ba2-b850-6bba1870105d"",""017c1197-6e4f-5ba2-b850-6bba1870105d""]","[""1-28e737b570616fe71916a27207e1957b"",""1-28e737b570616fe71916a27207e1957b""]","{""_id"": ""017c1197-6e4f-5ba2-b850-6bba1870105d"", ""sex"": ""male"", ""_rev"": ""1-28e737b570616fe71916a27207e1957b"", ""name"": ""Person 1857"", ""type"": ""person"", ""phone"": ""+16143333411"", ""parent"": {""_id"": ""e6182af7-31f3-56b4-8d7a-56b6b7266069"", ""name"": ""Clinic_7"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""81857"", ""date_of_birth"": ""2005/02/26"", ""reported_date"": ""1530978008000""}",True +"1","2023-08-04 20:25:11.44","[""018aa9b1-b102-52c8-ac29-b53100ad0dea"",""018aa9b1-b102-52c8-ac29-b53100ad0dea""]","[""1-fd1b345636f7399e133a4636b24225c8"",""1-fd1b345636f7399e133a4636b24225c8""]","{""_id"": ""018aa9b1-b102-52c8-ac29-b53100ad0dea"", ""sex"": ""female"", ""_rev"": ""1-fd1b345636f7399e133a4636b24225c8"", ""name"": ""Person 3957"", ""type"": ""person"", ""phone"": ""+16143335511"", ""parent"": {""_id"": ""c1f5db2f-0205-56ee-9433-dcc8a2f9b5c2"", ""name"": ""Clinic_9"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""83957"", ""date_of_birth"": ""2010/11/27"", ""reported_date"": ""1530980108000""}",True +"1","2023-08-04 20:24:47.156","[""0144bd2e-be96-5021-9009-cd2bda544afc"",""0144bd2e-be96-5021-9009-cd2bda544afc""]","[""1-d868d2d5000a8a545c675a60b0c5a177"",""1-d868d2d5000a8a545c675a60b0c5a177""]","{""_id"": ""0144bd2e-be96-5021-9009-cd2bda544afc"", ""sex"": ""female"", ""_rev"": ""1-d868d2d5000a8a545c675a60b0c5a177"", ""name"": ""Person 5217"", ""type"": ""person"", ""phone"": ""+16143336771"", ""parent"": {""_id"": ""b2e4c4ac-d748-5829-a9b0-0cfd5c0f52ab"", ""name"": ""Clinic_11"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""85221"", ""date_of_birth"": ""2014/05/10"", ""reported_date"": ""1530981368000""}",True +"1","2023-08-04 20:24:57.262","[""0175176b-20c1-506b-b6c6-31b3b53158ab"",""0175176b-20c1-506b-b6c6-31b3b53158ab""]","[""1-40c5c8338fb3b9d431d024f8a81385d3"",""1-40c5c8338fb3b9d431d024f8a81385d3""]","{""_id"": ""0175176b-20c1-506b-b6c6-31b3b53158ab"", ""sex"": ""male"", ""_rev"": ""1-40c5c8338fb3b9d431d024f8a81385d3"", ""name"": ""Person 739"", ""type"": ""person"", ""phone"": ""+16143332293"", ""parent"": {""_id"": ""7ba7f250-d52b-52ee-becd-3495cb5c50e2"", ""name"": ""Clinic_6"", ""type"": ""clinic"", ""parent"": {""_id"": ""8606a91a-f454-56e3-a089-0b686af3c6b7"", ""name"": ""HC1"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""80739"", ""date_of_birth"": ""2002/02/04"", ""reported_date"": ""1530976890000""}",True +"1","2023-08-04 20:25:07.393","[""017eaf7e-635f-58c0-ab9a-1b12ebe2c577"",""017eaf7e-635f-58c0-ab9a-1b12ebe2c577""]","[""1-1d78d4757bd2b8112b5ca5a35e5ff036"",""1-1d78d4757bd2b8112b5ca5a35e5ff036""]","{""_id"": ""017eaf7e-635f-58c0-ab9a-1b12ebe2c577"", ""sex"": ""male"", ""_rev"": ""1-1d78d4757bd2b8112b5ca5a35e5ff036"", ""name"": ""Person 4014"", ""type"": ""person"", ""phone"": ""+16143335568"", ""parent"": {""_id"": ""1785e39b-3691-57e4-9c36-59ec0f7621e6"", ""name"": ""Clinic_10"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""84016"", ""date_of_birth"": ""2011/01/23"", ""reported_date"": ""1530980165000""}",True +"1","2023-08-04 20:24:53.217","[""016fc6ac-59b2-511e-965c-06de3a431ca9"",""016fc6ac-59b2-511e-965c-06de3a431ca9""]","[""1-d4585f65986625bb718bd21e3c4629c1"",""1-d4585f65986625bb718bd21e3c4629c1""]","{""_id"": ""016fc6ac-59b2-511e-965c-06de3a431ca9"", ""sex"": ""female"", ""_rev"": ""1-d4585f65986625bb718bd21e3c4629c1"", ""name"": ""Person 2623"", ""type"": ""person"", ""phone"": ""+16143334177"", ""parent"": {""_id"": ""8852ee36-653a-51e1-aa60-492805ae957d"", ""name"": ""Clinic_8"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""82623"", ""date_of_birth"": ""2007/04/03"", ""reported_date"": ""1530978774000""}",True +"1","2023-08-04 20:25:03.335","[""017ca223-fbde-5127-bb32-b90be26026f9"",""017ca223-fbde-5127-bb32-b90be26026f9""]","[""1-6e61ce79d442a265e2e28543145fa8fb"",""1-6e61ce79d442a265e2e28543145fa8fb""]","{""_id"": ""017ca223-fbde-5127-bb32-b90be26026f9"", ""sex"": ""female"", ""_rev"": ""1-6e61ce79d442a265e2e28543145fa8fb"", ""name"": ""Person 902"", ""type"": ""person"", ""phone"": ""+16143332456"", ""parent"": {""_id"": ""7ba7f250-d52b-52ee-becd-3495cb5c50e2"", ""name"": ""Clinic_6"", ""type"": ""clinic"", ""parent"": {""_id"": ""8606a91a-f454-56e3-a089-0b686af3c6b7"", ""name"": ""HC1"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""80902"", ""date_of_birth"": ""2002/07/17"", ""reported_date"": ""1530977053000""}",True +"1","2023-08-04 20:25:13.469","[""01970ef2-ab09-5d8b-81bc-b9b3839bb1be"",""01970ef2-ab09-5d8b-81bc-b9b3839bb1be""]","[""1-025c75a045014197dacd203e01053a4f"",""1-025c75a045014197dacd203e01053a4f""]","{""_id"": ""01970ef2-ab09-5d8b-81bc-b9b3839bb1be"", ""sex"": ""male"", ""_rev"": ""1-025c75a045014197dacd203e01053a4f"", ""name"": ""Person 321"", ""type"": ""person"", ""phone"": ""+16143331875"", ""parent"": {""_id"": ""64cc225a-10fe-5d9a-aa31-0c29df922d0a"", ""name"": ""Clinic_5"", ""type"": ""clinic"", ""parent"": {""_id"": ""8606a91a-f454-56e3-a089-0b686af3c6b7"", ""name"": ""HC1"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""80321"", ""date_of_birth"": ""2000/12/13"", ""reported_date"": ""1530976472000""}",True +"1","2023-08-04 20:24:55.239","[""01700530-d52f-5d2e-aaf8-0c6bcb6b65ad"",""01700530-d52f-5d2e-aaf8-0c6bcb6b65ad""]","[""1-e237a801fd6bf95d8300ddc6f42dd1ca"",""1-e237a801fd6bf95d8300ddc6f42dd1ca""]","{""_id"": ""01700530-d52f-5d2e-aaf8-0c6bcb6b65ad"", ""sex"": ""male"", ""_rev"": ""1-e237a801fd6bf95d8300ddc6f42dd1ca"", ""name"": ""Person 2776"", ""type"": ""person"", ""phone"": ""+16143334330"", ""parent"": {""_id"": ""8852ee36-653a-51e1-aa60-492805ae957d"", ""name"": ""Clinic_8"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""82776"", ""date_of_birth"": ""2007/09/03"", ""reported_date"": ""1530978927000""}",True +"1","2023-08-04 20:25:05.363","[""017e06c5-c52e-540d-8cf5-9f3b728f932f"",""017e06c5-c52e-540d-8cf5-9f3b728f932f""]","[""1-491cb195d402c06100162f3df513e2f0"",""1-491cb195d402c06100162f3df513e2f0""]","{""_id"": ""017e06c5-c52e-540d-8cf5-9f3b728f932f"", ""sex"": ""male"", ""_rev"": ""1-491cb195d402c06100162f3df513e2f0"", ""name"": ""Person 4180"", ""type"": ""person"", ""phone"": ""+16143335734"", ""parent"": {""_id"": ""1785e39b-3691-57e4-9c36-59ec0f7621e6"", ""name"": ""Clinic_10"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""84182"", ""date_of_birth"": ""2011/07/08"", ""reported_date"": ""1530980331000""}",True +"1","2023-08-04 20:25:15.492","[""01b06873-1f2e-5556-87d3-70d0bca8ea7f"",""01b06873-1f2e-5556-87d3-70d0bca8ea7f""]","[""1-83d27335f0baf61edc481cac73069362"",""1-83d27335f0baf61edc481cac73069362""]","{""_id"": ""01b06873-1f2e-5556-87d3-70d0bca8ea7f"", ""sex"": ""male"", ""_rev"": ""1-83d27335f0baf61edc481cac73069362"", ""name"": ""Person 3546"", ""type"": ""person"", ""phone"": ""+16143335100"", ""parent"": {""_id"": ""c1f5db2f-0205-56ee-9433-dcc8a2f9b5c2"", ""name"": ""Clinic_9"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""83546"", ""date_of_birth"": ""2009/10/12"", ""reported_date"": ""1530979697000""}",True +"1","2023-08-04 20:24:59.288","[""017972fd-c31e-56d9-8a14-76afed906df6"",""017972fd-c31e-56d9-8a14-76afed906df6""]","[""1-372e200c2f718f87c02ba38cda36363f"",""1-372e200c2f718f87c02ba38cda36363f""]","{""_id"": ""017972fd-c31e-56d9-8a14-76afed906df6"", ""sex"": ""male"", ""_rev"": ""1-372e200c2f718f87c02ba38cda36363f"", ""name"": ""Person 2016"", ""type"": ""person"", ""phone"": ""+16143333570"", ""parent"": {""_id"": ""8852ee36-653a-51e1-aa60-492805ae957d"", ""name"": ""Clinic_8"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""82016"", ""date_of_birth"": ""2005/08/04"", ""reported_date"": ""1530978167000""}",True +"1","2023-08-04 20:25:09.424","[""0189e2bf-2ca5-58e3-ba86-04a3a8f7f31c"",""0189e2bf-2ca5-58e3-ba86-04a3a8f7f31c""]","[""1-b2ee78a9219a477b15ea879999542a0c"",""1-b2ee78a9219a477b15ea879999542a0c""]","{""_id"": ""0189e2bf-2ca5-58e3-ba86-04a3a8f7f31c"", ""sex"": ""female"", ""_rev"": ""1-b2ee78a9219a477b15ea879999542a0c"", ""name"": ""Person 5841"", ""type"": ""person"", ""phone"": ""+16143337395"", ""parent"": {""_id"": ""b2e4c4ac-d748-5829-a9b0-0cfd5c0f52ab"", ""name"": ""Clinic_11"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""85845"", ""date_of_birth"": ""2016/01/24"", ""reported_date"": ""1530981992000""}",True +"1","2023-08-04 20:24:26.524","[""004fd74a-8693-535e-9954-e0ec31b08c9c"",""004fd74a-8693-535e-9954-e0ec31b08c9c""]","[""1-882b2de9c0c2ad2375b9368438f62073"",""1-882b2de9c0c2ad2375b9368438f62073""]","{""_id"": ""004fd74a-8693-535e-9954-e0ec31b08c9c"", ""sex"": ""male"", ""_rev"": ""1-882b2de9c0c2ad2375b9368438f62073"", ""name"": ""Person 81"", ""type"": ""person"", ""phone"": ""+16143331635"", ""parent"": {""_id"": ""45b04318-0100-542d-916e-0bc2a08268fd"", ""name"": ""Clinic_4"", ""type"": ""clinic"", ""parent"": {""_id"": ""8606a91a-f454-56e3-a089-0b686af3c6b7"", ""name"": ""HC1"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""80081"", ""date_of_birth"": ""2000/04/17"", ""reported_date"": ""1530976232000""}",True +"1","2023-08-04 20:24:26.572","[""005e88b3-75e9-554a-9181-3ddabcea6962"",""005e88b3-75e9-554a-9181-3ddabcea6962""]","[""1-2ed4919d1d2a05abb19b40875c67b6be"",""1-2ed4919d1d2a05abb19b40875c67b6be""]","{""_id"": ""005e88b3-75e9-554a-9181-3ddabcea6962"", ""_rev"": ""1-2ed4919d1d2a05abb19b40875c67b6be"", ""form"": ""delivery"", ""from"": ""+16143331973"", ""type"": ""data_record"", ""fields"": {""meta"": {""instanceID"": """"}, ""inputs"": {""source"": ""contact"", ""contact"": {""_id"": ""9925008f-9c5c-5603-8550-40f609bd61e427"", ""sex"": ""female"", ""name"": ""Person 748"", ""phone"": ""+16143331974"", ""date_of_birth"": ""2001/03/25""}, ""source_id"": """"}, ""chw_sms"": """", ""chw_name"": """", ""chw_phone"": """", ""birth_date"": """", ""group_note"": {""g_chw_sms"": """", ""is_sms_edited"": """", ""default_chw_sms"": """", ""default_chw_sms_note"": """", ""default_chw_sms_text"": """"}, ""patient_name"": ""Person 748"", ""patient_uuid"": ""9925008f-9c5c-5603-8550-40f609bd61e427"", ""delivery_code"": """", ""group_summary"": {""submit"": """", ""r_summary"": """", ""r_followup"": """", ""r_birth_date"": """", ""r_patient_info"": """", ""r_followup_note1"": """", ""r_followup_note2"": """", ""r_delivery_location"": """", ""r_pregnancy_outcome"": """"}, ""pregnancy_outcome"": """", ""label_delivery_code"": """", ""patient_age_in_years"": """", ""patient_contact_phone"": """", ""group_delivery_summary"": {""g_birth_date"": """", ""g_delivery_code"": """", ""display_birth_date"": """", ""g_pregnancy_outcome"": """", ""display_delivery_outcome"": """"}, ""label_pregnancy_outcome"": """"}, ""contact"": {""_id"": ""9835d113-a7d9-53b7-8f86-4ed4fe769592"", ""parent"": {""_id"": ""d4767240-52b4-52e8-93ec-658b8f340b439"", ""parent"": {""_id"": ""e32bce1c-f419-562a-8fd3-f657271dac462"", ""parent"": {""_id"": ""0c31056a-3a80-54dd-b136-46145d451a484""}}}}, ""patient_id"": ""50179"", ""content_type"": ""xml"", ""reported_date"": 1599177126}",True +"1","2023-08-04 20:24:26.63","[""00c05bcd-0e4c-5f57-bc71-17c84cddf414"",""00c05bcd-0e4c-5f57-bc71-17c84cddf414""]","[""1-457c84d2494dd8a2a4ba26c3763e96d4"",""1-457c84d2494dd8a2a4ba26c3763e96d4""]","{""_id"": ""00c05bcd-0e4c-5f57-bc71-17c84cddf414"", ""sex"": ""female"", ""_rev"": ""1-457c84d2494dd8a2a4ba26c3763e96d4"", ""name"": ""Person 2717"", ""type"": ""person"", ""phone"": ""+16143334271"", ""parent"": {""_id"": ""8852ee36-653a-51e1-aa60-492805ae957d"", ""name"": ""Clinic_8"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""82717"", ""date_of_birth"": ""2007/07/06"", ""reported_date"": ""1530978868000""}",True +"1","2023-08-04 20:24:26.638","[""00db34e3-b2b9-5f65-9187-e7f53fe1678a"",""00db34e3-b2b9-5f65-9187-e7f53fe1678a""]","[""1-aba0c56beb901ad45e6a53723b7f720d"",""1-aba0c56beb901ad45e6a53723b7f720d""]","{""_id"": ""00db34e3-b2b9-5f65-9187-e7f53fe1678a"", ""_rev"": ""1-aba0c56beb901ad45e6a53723b7f720d"", ""form"": ""delivery"", ""from"": ""+16143332303"", ""type"": ""data_record"", ""fields"": {""meta"": {""instanceID"": """"}, ""inputs"": {""source"": ""contact"", ""contact"": {""_id"": ""9925008f-9c5c-5603-8550-40f609bd61e757"", ""sex"": ""female"", ""name"": ""Person 1078"", ""phone"": ""+16143332304"", ""date_of_birth"": ""2002/02/18""}, ""source_id"": """"}, ""chw_sms"": """", ""chw_name"": """", ""chw_phone"": """", ""birth_date"": """", ""group_note"": {""g_chw_sms"": """", ""is_sms_edited"": """", ""default_chw_sms"": """", ""default_chw_sms_note"": """", ""default_chw_sms_text"": """"}, ""patient_name"": ""Person 1078"", ""patient_uuid"": ""9925008f-9c5c-5603-8550-40f609bd61e757"", ""delivery_code"": """", ""group_summary"": {""submit"": """", ""r_summary"": """", ""r_followup"": """", ""r_birth_date"": """", ""r_patient_info"": """", ""r_followup_note1"": """", ""r_followup_note2"": """", ""r_delivery_location"": """", ""r_pregnancy_outcome"": """"}, ""pregnancy_outcome"": """", ""label_delivery_code"": """", ""patient_age_in_years"": """", ""patient_contact_phone"": """", ""group_delivery_summary"": {""g_birth_date"": """", ""g_delivery_code"": """", ""display_birth_date"": """", ""g_pregnancy_outcome"": """", ""display_delivery_outcome"": """"}, ""label_pregnancy_outcome"": """"}, ""contact"": {""_id"": ""9835d113-a7d9-53b7-8f86-4ed4fe769922"", ""parent"": {""_id"": ""d4767240-52b4-52e8-93ec-658b8f340b769"", ""parent"": {""_id"": ""e32bce1c-f419-562a-8fd3-f657271dac792"", ""parent"": {""_id"": ""0c31056a-3a80-54dd-b136-46145d451a814""}}}}, ""patient_id"": ""50839"", ""content_type"": ""xml"", ""reported_date"": 1599177126}",True +"1","2023-08-04 20:24:26.613","[""00db27b2-9784-5d8b-9ecc-976a2dbad9e7"",""00db27b2-9784-5d8b-9ecc-976a2dbad9e7""]","[""1-cd960667031c3274672a7ca776b5a9fc"",""1-cd960667031c3274672a7ca776b5a9fc""]","{""_id"": ""00db27b2-9784-5d8b-9ecc-976a2dbad9e7"", ""sex"": ""female"", ""_rev"": ""1-cd960667031c3274672a7ca776b5a9fc"", ""name"": ""Person 4839"", ""type"": ""person"", ""phone"": ""+16143336393"", ""parent"": {""_id"": ""1785e39b-3691-57e4-9c36-59ec0f7621e6"", ""name"": ""Clinic_10"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""84841"", ""date_of_birth"": ""2013/04/27"", ""reported_date"": ""1530980990000""}",True +"1","2023-08-04 20:24:30.974","[""011d1f90-8d70-5465-ad41-e6bd54780fed"",""011d1f90-8d70-5465-ad41-e6bd54780fed""]","[""1-c11c9f76fd62aacc3f6b0e324b335aed"",""1-c11c9f76fd62aacc3f6b0e324b335aed""]","{""_id"": ""011d1f90-8d70-5465-ad41-e6bd54780fed"", ""sex"": ""female"", ""_rev"": ""1-c11c9f76fd62aacc3f6b0e324b335aed"", ""name"": ""Person 4979"", ""type"": ""person"", ""phone"": ""+16143336533"", ""parent"": {""_id"": ""1785e39b-3691-57e4-9c36-59ec0f7621e6"", ""name"": ""Clinic_10"", ""type"": ""clinic"", ""parent"": {""_id"": ""7599762e-605f-5a8c-9801-3c7a4eb36f5f"", ""name"": ""HC2"", ""type"": ""health_center"", ""parent"": {""_id"": ""fc9928ae-9f48-5d2d-8a0f-222b2389f77f"", ""name"": ""Pregnancies"", ""type"": ""district_hospital"", ""notes"": """", ""parent"": """", ""external_id"": """", ""geolocation"": """", ""reported_date"": 1544031155715, ""is_name_generated"": ""false""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""reported_date"": 1544031155715, ""is_name_generated"": ""FALSE""}, ""patient_id"": ""84981"", ""date_of_birth"": ""2013/09/14"", ""reported_date"": ""1530981130000""}",True diff --git a/seeds/properties.yml b/seeds/properties.yml new file mode 100644 index 00000000..a55c5918 --- /dev/null +++ b/seeds/properties.yml @@ -0,0 +1,9 @@ +version: 2 + +seeds: + - name: couchdb_test_data + config: + column_types: + "@version": text + "@timestamp": timestamp without time zone + doc: jsonb diff --git a/tests/profiles.yml b/tests/profiles.yml new file mode 100644 index 00000000..279624d1 --- /dev/null +++ b/tests/profiles.yml @@ -0,0 +1,12 @@ +default: + outputs: + test: + type: postgres + threads: 1 + host: localhost + port: 5432 + user: "{{ env_var('DBT_POSTGRES_USER') }}" + pass: "{{ env_var('DBT_POSTGRES_PASSWORD') }}" + dbname: "{{ env_var('POSTGRES_DB') }}" + schema: "{{ env_var('DBT_POSTGRES_SCHEMA') }}" + target: test diff --git a/tests/run_dbt_tests.sh b/tests/run_dbt_tests.sh new file mode 100755 index 00000000..857a82b5 --- /dev/null +++ b/tests/run_dbt_tests.sh @@ -0,0 +1,20 @@ +#!/bin/bash +set -e +export POSTGRES_DB=data +export POSTGRES_TABLE=couchdb +export DBT_POSTGRES_USER=dbt_user +export DBT_POSTGRES_PASSWORD=supercoolpassword +export DBT_POSTGRES_SCHEMA=dbt +export DBT_POSTGRES_HOST=postgres +export ROOT_POSTGRES_SCHEMA=v1 + +export DBT_PROFILES_DIR=$PWD +echo Install dbt dependencies ... +dbt deps +echo Seeding test data ... +dbt seed --full-refresh +echo Running dbt ... +dbt run +echo Running tests ... +dbt test + diff --git a/tests/setup.sh b/tests/setup.sh new file mode 100755 index 00000000..814171b9 --- /dev/null +++ b/tests/setup.sh @@ -0,0 +1,31 @@ +#!/bin/bash +set -e +export POSTGRES_USER=root +export POSTGRES_PASSWORD=supercoolpassword +export POSTGRES_DB=data +export POSTGRES_TABLE=couchdb +export POSTGRES_SCHEMA=v1 +export DBT_POSTGRES_USER=dbt_user +export DBT_POSTGRES_PASSWORD=supercoolpassword +export DBT_POSTGRES_SCHEMA=dbt +export DBT_POSTGRES_HOST=postgres +export ROOT_POSTGRES_SCHEMA=v1 + +echo Creating database $POSTGRES_DB +docker run --name pgtest -p 5432:5432 -e POSTGRES_USER=$POSTGRES_USER -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD -e POSTGRES_DB=$POSTGRES_DB -d postgres:13 + +sleep 10 + +export PGPASSWORD=$POSTGRES_PASSWORD + +## DO NOT put any additional SQL here +# +# Put all SQL into DBT. Bootstrapping should be the absolute minimum +# +echo Setting up defaults + +psql -h localhost -p 5432 -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL + CREATE USER $DBT_POSTGRES_USER WITH PASSWORD '$DBT_POSTGRES_PASSWORD'; + CREATE SCHEMA IF NOT EXISTS $DBT_POSTGRES_SCHEMA AUTHORIZATION $DBT_POSTGRES_USER; +EOSQL + diff --git a/tests/tear_down.sh b/tests/tear_down.sh new file mode 100755 index 00000000..2d26df5a --- /dev/null +++ b/tests/tear_down.sh @@ -0,0 +1,2 @@ +docker stop pgtest +docker rm pgtest