Skip to content

Commit

Permalink
Trying to see if the problem are the seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Lorena Rodriguez Viruel authored and Maria Lorena Rodriguez Viruel committed Oct 20, 2023
1 parent 0e61edf commit 5da2bbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions models/brac/useviews/useviews.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
version: 2

models:
- name: useview_postnatal_care
- name: useview_pregnancy_visit
columns:
- name: uuid
- name: xmlforms_uuid
tests:
- not_null
- unique
- relationships:
to: ref('couchdb')
field: doc ->> '_id'
- name: form
tests:
- not_null
- name: useview_pregnancy
columns:
- name: uuid
Expand Down
2 changes: 1 addition & 1 deletion seeds/couchdb_test_data.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"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.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_visit"", ""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
Expand Down

0 comments on commit 5da2bbb

Please sign in to comment.