diff --git a/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/DEMOGRAPHIC_DATA_qcs-20240530-testcase500_qcs-20240530-testcase500.csv b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/DEMOGRAPHIC_DATA_qcs-20240530-testcase500_qcs-20240530-testcase500.csv new file mode 100644 index 0000000..8ac6aed --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/DEMOGRAPHIC_DATA_qcs-20240530-testcase500_qcs-20240530-testcase500.csv @@ -0,0 +1,2 @@ +MPI_ID|PAT_MRN_ID|FACILITY_ID|CONSENT|FIRST_NAME|MIDDLE_NAME|LAST_NAME|ADMINISTRATIVE_SEX_CODE|ADMINISTRATIVE_SEX_CODE_DESCRIPTION|ADMINISTRATIVE_SEX_CODE_SYSTEM|SEX_AT_BIRTH_CODE|SEX_AT_BIRTH_CODE_DESCRIPTION|SEX_AT_BIRTH_CODE_SYSTEM|PAT_BIRTH_DATE|ADDRESS1|ADDRESS2|CITY|STATE|ZIP|GENDER_IDENTITY_CODE|GENDER_IDENTITY_CODE_DESCRIPTION|GENDER_IDENTITY_CODE_SYSTEM_NAME|SEXUAL_ORIENTATION_CODE|SEXUAL_ORIENTATION_CODE_DESCRIPTION|SEXUAL_ORIENTATION_CODE_SYSTEM_NAME|PREFERRED_LANGUAGE_CODE|PREFERRED_LANGUAGE_CODE_DESCRIPTION|PREFERRED_LANGUAGE_CODE_SYSTEM_NAME|RACE_CODE|RACE_CODE_DESCRIPTION|RACE_CODE_SYSTEM_NAME|ETHNICITY_CODE|ETHNICITY_CODE_DESCRIPTION|ETHNICITY_CODE_SYSTEM_NAME|MEDICAID_CIN +qcsHFT7WEQGXZ|qcs-20240530-testcase500-MRN|CNYSCN|Yes|Jamie|Adam|Serrano|M|Male|http://terminology.hl7.org/CodeSystem/v3-AdministrativeGender|ASKU|asked but unknown|http://terminology.hl7.org/CodeSystem/v3-NullFlavor|1971-07-25|3090 Tracey Street|Apt 356|Elmira|NY|14901|446141000124107|Female|http://snomed.info/sct|UNK|Unknown|http://snomed.info/sct|gem|Germanic languages|ISO|1186-6|Coushatta|urn:oid:2.16.840.1.113883.6.238|2175-8|South American Indian|urn:oid:2.16.840.1.113883.6.238|EP68884S diff --git a/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/DEMOGRAPHIC_DATA_qcs-test-20240603-testcase4.csv b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/DEMOGRAPHIC_DATA_qcs-test-20240603-testcase4.csv new file mode 100644 index 0000000..dceb0d0 --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/DEMOGRAPHIC_DATA_qcs-test-20240603-testcase4.csv @@ -0,0 +1,2 @@ +MPI_ID|PAT_MRN_ID|FACILITY_ID|CONSENT|FIRST_NAME|MIDDLE_NAME|LAST_NAME|ADMINISTRATIVE_SEX_CODE|ADMINISTRATIVE_SEX_CODE_DESCRIPTION|ADMINISTRATIVE_SEX_CODE_SYSTEM|SEX_AT_BIRTH_CODE|SEX_AT_BIRTH_CODE_DESCRIPTION|SEX_AT_BIRTH_CODE_SYSTEM|PAT_BIRTH_DATE|ADDRESS1|ADDRESS2|CITY|STATE|ZIP|PHONE|SSN|GENDER_IDENTITY_CODE|GENDER_IDENTITY_CODE_DESCRIPTION|GENDER_IDENTITY_CODE_SYSTEM_NAME|SEXUAL_ORIENTATION_CODE|SEXUAL_ORIENTATION_CODE_DESCRIPTION|SEXUAL_ORIENTATION_CODE_SYSTEM_NAME|PREFERRED_LANGUAGE_CODE|PREFERRED_LANGUAGE_CODE_DESCRIPTION|PREFERRED_LANGUAGE_CODE_SYSTEM_NAME|RACE_CODE|RACE_CODE_DESCRIPTION|RACE_CODE_SYSTEM_NAME|ETHNICITY_CODE|ETHNICITY_CODE_DESCRIPTION|ETHNICITY_CODE_SYSTEM_NAME|MEDICAID_CIN +|qcs-test-20240603-testcase4-MRN|CNYSCN|No|Amanda|Christina|Guerrero|X|Undifferentiated|http://terminology.hl7.org/CodeSystem/v3-AdministrativeGender|ASKU|asked but unknown|http://terminology.hl7.org/CodeSystem/v3-NullFlavor|1974-04-16|28007 Joanna Tunnel|Suite 11|Jamestown|NY|14701|(831)800-7041x27084|862-37-7633|446151000124109|Male|http://snomed.info/sct|UNK|Unknown|http://snomed.info/sct|mkd|Macedonian|ISO|1262-5|Grand Ronde|urn:oid:2.16.840.1.113883.6.238|2174-1|Venezuelan|urn:oid:2.16.840.1.113883.6.238|HM65654G diff --git a/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/QE_ADMIN_DATA_qcs-20240530-testcase500_qcs-20240530-testcase500.csv b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/QE_ADMIN_DATA_qcs-20240530-testcase500_qcs-20240530-testcase500.csv new file mode 100644 index 0000000..645feca --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/QE_ADMIN_DATA_qcs-20240530-testcase500_qcs-20240530-testcase500.csv @@ -0,0 +1,2 @@ +PAT_MRN_ID|FACILITY_ID|FACILITY_LONG_NAME|ORGANIZATION_TYPE|FACILITY_ADDRESS1|FACILITY_ADDRESS2|FACILITY_CITY|FACILITY_STATE|FACILITY_ZIP|VISIT_PART_2_FLAG|VISIT_OMH_FLAG|VISIT_OPWDD_FLAG +qcs-20240530-testcase500-MRN|CNYSCN|Crossroads NY Social Care Network|SCN|25 W 45th st|Suite 16|New York|New York|10036|No|No|No diff --git a/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/QE_ADMIN_DATA_qcs-test-20240603-testcase4.csv b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/QE_ADMIN_DATA_qcs-test-20240603-testcase4.csv new file mode 100644 index 0000000..9f11b27 --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/QE_ADMIN_DATA_qcs-test-20240603-testcase4.csv @@ -0,0 +1,2 @@ +PAT_MRN_ID|FACILITY_ID|FACILITY_LONG_NAME|ORGANIZATION_TYPE|FACILITY_ADDRESS1|FACILITY_ADDRESS2|FACILITY_CITY|FACILITY_STATE|FACILITY_ZIP|VISIT_PART_2_FLAG|VISIT_OMH_FLAG|VISIT_OPWDD_FLAG +qcs-test-20240603-testcase4-MRN|CNYSCN|Crossroads NY Social Care Network|SCN|25 W 45th st|Suite 16|New York|New York|10036|No|No|No diff --git a/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/SCREENING_qcs-20240530-testcase500_qcs-20240530-testcase500.csv b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/SCREENING_qcs-20240530-testcase500_qcs-20240530-testcase500.csv new file mode 100644 index 0000000..019be52 --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/SCREENING_qcs-20240530-testcase500_qcs-20240530-testcase500.csv @@ -0,0 +1,31 @@ +PAT_MRN_ID|FACILITY_ID|ENCOUNTER_ID|ENCOUNTER_CLASS_CODE|ENCOUNTER_CLASS_CODE_DESCRIPTION|ENCOUNTER_CLASS_CODE_SYSTEM|ENCOUNTER_STATUS_CODE|ENCOUNTER_STATUS_CODE_DESCRIPTION|ENCOUNTER_STATUS_CODE_SYSTEM|ENCOUNTER_TYPE_CODE|ENCOUNTER_TYPE_CODE_DESCRIPTION|ENCOUNTER_TYPE_CODE_SYSTEM|SCREENING_STATUS_CODE|SCREENING_STATUS_CODE_DESCRIPTION|SCREENING_STATUS_CODE_SYSTEM|SCREENING_CODE|SCREENING_CODE_DESCRIPTION|SCREENING_CODE_SYSTEM_NAME|RECORDED_TIME|QUESTION_CODE|QUESTION_CODE_DESCRIPTION|QUESTION_CODE_SYSTEM_NAME|UCUM_UNITS|SDOH_DOMAIN|PARENT_QUESTION_CODE|ANSWER_CODE|ANSWER_CODE_DESCRIPTION|ANSWER_CODE_SYSTEM_NAME|POTENTIAL_NEED_INDICATED +qcs-20240530-testcase500-MRN|CNYSCN|qcsBYLX3HYMT2|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-04-05T12:33:12.037861+04:00|71802-3|What is your living situation today?|http://loinc.org||Homelessness, Housing Instability||LA31995-6|I do not have a steady place to live (I am temporarily staying with others, in a hotel, in a shelter, living outside on the street, on a beach, in a car, abandoned building, bus or train station, or in a park)|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsBYLX3HYMT2|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-04-05T12:33:12.037861+04:00|96778-6|Think about the place you live. Do you have problems with any of the following?|http://loinc.org||Inadequate Housng||LA31996-4|Pests such as bugs, ants, or mice|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsBYLX3HYMT2|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-04-05T12:33:12.037861+04:00|88122-7|Within the past 12 months, you worried that your food would run out before you got money to buy more.|http://loinc.org||Food Insecurity||LA6729-3|Sometimes true|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsBYLX3HYMT2|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-04-05T12:33:12.037861+04:00|88123-5|Within the past 12 months, the food you bought just didn't last and you didn't have money to get more.|http://loinc.org||Food Insecurity||LA6729-3|Sometimes true|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsBYLX3HYMT2|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-04-05T12:33:12.037861+04:00|93030-5|In the past 12 months, has lack of reliable transportation kept you from medical appointments, meetings, work or from getting things needed for daily living?|http://loinc.org||Transportation Insecurity||LA33-6|Yes|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsBYLX3HYMT2|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-04-05T12:33:12.037861+04:00|96779-4|In the past 12 months has the electric, gas, oil, or water company threatened to shut off services in your home?|http://loinc.org||Utility Insecurity||LA32002-0|Already shut off|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsBYLX3HYMT2|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-04-05T12:33:12.037861+04:00|95618-5|How often does anyone, including family and friends, physically hurt you?|http://loinc.org||Interpersonal Safety||LA10066-1|Rarely|http://loinc.org|NA +qcs-20240530-testcase500-MRN|CNYSCN|qcsBYLX3HYMT2|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-04-05T12:33:12.037861+04:00|95617-7|How often does anyone, including family and friends, insult or talk down to you?|http://loinc.org||Interpersonal Safety||LA10066-1|Rarely|http://loinc.org|NA +qcs-20240530-testcase500-MRN|CNYSCN|qcsBYLX3HYMT2|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-04-05T12:33:12.037861+04:00|95616-9|How often does anyone, including family and friends, threaten you with harm?|http://loinc.org||Interpersonal Safety||LA16644-9|Fairly often|http://loinc.org|NA +qcs-20240530-testcase500-MRN|CNYSCN|qcsBYLX3HYMT2|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-04-05T12:33:12.037861+04:00|95615-1|How often does anyone, including family and friends, scream or curse at you?|http://loinc.org||Interpersonal Safety||LA16644-9|Fairly often|http://loinc.org|NA +qcs-20240530-testcase500-MRN|CNYSCN|qcsBYLX3HYMT2|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-04-05T12:33:12.037861+04:00|95614-4|Total Safety Score|http://loinc.org|{score}|Interpersonal Safety|||12||Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|76513-1|How hard is it for you to pay for the very basics like food, housing, medical care, and heating? Would you say it is|http://loinc.org||Financial Insecurity||LA31980-8|Not hard at all|http://loinc.org|No +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|96780-2|Do you want help finding or keeping work or a job?|http://loinc.org||Employment Status||LA31983-2|I do not need or want help|http://loinc.org|No +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|96781-0|If for any reason you need help with day-to-day activities such as bathing, preparing meals, shopping, managing finances, etc., do you get the help you need?|http://loinc.org||Social Connection||LA31978-2|I could use a little more help|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|93159-2|How often do you feel lonely or isolated from those around you?|http://loinc.org||Social Connection||LA6270-8|Never|http://loinc.org|No +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|97027-7|Do you speak a language other than English at home?|http://loinc.org||Language Accessibility||LA33-6|Yes|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|96782-8|Do you want help with school or training? For example, starting or completing job training or getting a high school diploma, GED or equivalent.|http://loinc.org||Education Attainment||LA33-6|Yes|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|89555-7|In the last 30 days, other than the activities you did for work, on average, how many days per week did you engage in moderate exercise (like walking fast, running, jogging, dancing, swimming, biking, or other similar activities)|http://loinc.org|d/wk|Physical Activity||LA6113-0|2|http://loinc.org|NA +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|68516-4|On average, how many minutes did you usually spend exercising at this level on one of those days?|http://loinc.org|min/d|Physical Activity||LA32060-8|150 or greater|http://loinc.org|NA +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00||Calculated Physical Activity Score||min/wk|Physical Activity|||300||No +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|68517-2|How many times in the past 12 months have you had 5 or more drinks in a day (males) or 4 or more drinks in a day (females)?|http://loinc.org|{#}/a|Substance Use (Alcohol Use)||LA6270-8|Never|http://loinc.org|No +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|96842-0|How many times in the past 12 months have you used tobacco products (like cigarettes, cigars, snuff, chew, electronic cigarettes)?|http://loinc.org|{#}/a|Substance Use (Tobacco Use)||LA18876-5|Monthly|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|95530-2|How many times in the past year have you used prescription drugs for non-medical reasons?|http://loinc.org|{#}/a|Substance Use||LA18891-4|Weekly|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|68524-8|How many times in the past year have you used illegal drugs?|http://loinc.org||Substance Use||LA18934-2|Daily or almost daily|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|44250-9|Little interest or pleasure in doing things?|http://loinc.org||Mental Health (Depression)||LA6571-9|Nearly every day|http://loinc.org|NA +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|44255-8|Feeling down, depressed, or hopeless?|http://loinc.org||Mental Health (Depression)||LA6571-9|Nearly every day|http://loinc.org|NA +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00||Calculated mental health score|||Mental Health (Depression)|||6||Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|93038-8|Stress means a situation in which a person feels tense, restless, nervous, or anxious, or is unable to sleep at night because his or her mind is troubled all the time. Do you feel this kind of stress these days?|http://loinc.org||Stress||LA13902-4|Quite a bit|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|69858-9|Because of a physical, mental, or emotional condition, do you have serious difficulty concentrating, remembering, or making decisions?|http://loinc.org||Disability||LA33-6|Yes|http://loinc.org|Yes +qcs-20240530-testcase500-MRN|CNYSCN|qcsV5ZGJBWUCC|IMP|inpatient encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|discharged|Discharged|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|unknown|Unknown|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2024-04-08T12:01:45.891605-02:00|69861-3|Because of a physical, mental, or emotional condition, do you have difficulty doing errands alone such as visiting a physician's office or shopping|http://loinc.org||Disability||LA32-8|No|http://loinc.org|No diff --git a/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/SCREENING_qcs-test-20240603-testcase4.csv b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/SCREENING_qcs-test-20240603-testcase4.csv new file mode 100644 index 0000000..40f01dd --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data/SCREENING_qcs-test-20240603-testcase4.csv @@ -0,0 +1,31 @@ +PAT_MRN_ID|FACILITY_ID|ENCOUNTER_ID|ENCOUNTER_CLASS_CODE|ENCOUNTER_CLASS_CODE_DESCRIPTION|ENCOUNTER_CLASS_CODE_SYSTEM|ENCOUNTER_STATUS_CODE|ENCOUNTER_STATUS_CODE_DESCRIPTION|ENCOUNTER_STATUS_CODE_SYSTEM|ENCOUNTER_TYPE_CODE|ENCOUNTER_TYPE_CODE_DESCRIPTION|ENCOUNTER_TYPE_CODE_SYSTEM|SCREENING_STATUS_CODE|SCREENING_STATUS_CODE_DESCRIPTION|SCREENING_STATUS_CODE_SYSTEM|SCREENING_CODE|SCREENING_CODE_DESCRIPTION|SCREENING_CODE_SYSTEM_NAME|RECORDED_TIME|QUESTION_CODE|QUESTION_CODE_DESCRIPTION|QUESTION_CODE_SYSTEM_NAME|UCUM_UNITS|SDOH_DOMAIN|PARENT_QUESTION_CODE|ANSWER_CODE|ANSWER_CODE_DESCRIPTION|ANSWER_CODE_SYSTEM_NAME|POTENTIAL_NEED_INDICATED +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testXP2WQPOA9A|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-02-26T22:57:44.192288+00:00|71802-3|What is your living situation today?|http://loinc.org||Homelessness, Housing Instability||LA31995-6|I do not have a steady place to live (I am temporarily staying with others, in a hotel, in a shelter, living outside on the street, on a beach, in a car, abandoned building, bus or train station, or in a park)|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testXP2WQPOA9A|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-02-26T22:57:44.192288+00:00|96778-6|Think about the place you live. Do you have problems with any of the following?|http://loinc.org||Inadequate Housng||LA31996-4|Pests such as bugs, ants, or mice|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testXP2WQPOA9A|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-02-26T22:57:44.192288+00:00|88122-7|Within the past 12 months, you worried that your food would run out before you got money to buy more.|http://loinc.org||Food Insecurity||LA28397-0|Often true|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testXP2WQPOA9A|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-02-26T22:57:44.192288+00:00|88123-5|Within the past 12 months, the food you bought just didn't last and you didn't have money to get more.|http://loinc.org||Food Insecurity||LA28397-0|Often true|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testXP2WQPOA9A|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-02-26T22:57:44.192288+00:00|93030-5|In the past 12 months, has lack of reliable transportation kept you from medical appointments, meetings, work or from getting things needed for daily living?|http://loinc.org||Transportation Insecurity||LA32-8|No|http://loinc.org|No +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testXP2WQPOA9A|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-02-26T22:57:44.192288+00:00|96779-4|In the past 12 months has the electric, gas, oil, or water company threatened to shut off services in your home?|http://loinc.org||Utility Insecurity||LA32-8|No|http://loinc.org|No +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testXP2WQPOA9A|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-02-26T22:57:44.192288+00:00|95618-5|How often does anyone, including family and friends, physically hurt you?|http://loinc.org||Interpersonal Safety||LA10082-8|Sometimes|http://loinc.org|NA +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testXP2WQPOA9A|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-02-26T22:57:44.192288+00:00|95617-7|How often does anyone, including family and friends, insult or talk down to you?|http://loinc.org||Interpersonal Safety||LA10066-1|Rarely|http://loinc.org|NA +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testXP2WQPOA9A|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-02-26T22:57:44.192288+00:00|95616-9|How often does anyone, including family and friends, threaten you with harm?|http://loinc.org||Interpersonal Safety||LA16644-9|Fairly often|http://loinc.org|NA +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testXP2WQPOA9A|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-02-26T22:57:44.192288+00:00|95615-1|How often does anyone, including family and friends, scream or curse at you?|http://loinc.org||Interpersonal Safety||LA6270-8|Never|http://loinc.org|NA +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testXP2WQPOA9A|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|96777-8|Accountable health communities (AHC) health-related social needs screening (HRSN) tool|http://loinc.org|2023-02-26T22:57:44.192288+00:00|95614-4|Total Safety Score|http://loinc.org|{score}|Interpersonal Safety|||10||No +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|76513-1|How hard is it for you to pay for the very basics like food, housing, medical care, and heating? Would you say it is|http://loinc.org||Financial Insecurity||LA22683-9|Somewhat hard|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|96780-2|Do you want help finding or keeping work or a job?|http://loinc.org||Employment Status||LA31981-6|Yes, help finding work|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|96781-0|If for any reason you need help with day-to-day activities such as bathing, preparing meals, shopping, managing finances, etc., do you get the help you need?|http://loinc.org||Social Connection||LA31979-0|I need a lot more help|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|93159-2|How often do you feel lonely or isolated from those around you?|http://loinc.org||Social Connection||LA9933-8|Always|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|97027-7|Do you speak a language other than English at home?|http://loinc.org||Language Accessibility||LA33-6|Yes|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|96782-8|Do you want help with school or training? For example, starting or completing job training or getting a high school diploma, GED or equivalent.|http://loinc.org||Education Attainment||LA33-6|Yes|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|89555-7|In the last 30 days, other than the activities you did for work, on average, how many days per week did you engage in moderate exercise (like walking fast, running, jogging, dancing, swimming, biking, or other similar activities)|http://loinc.org|d/wk|Physical Activity||LA6115-5|4|http://loinc.org|NA +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|68516-4|On average, how many minutes did you usually spend exercising at this level on one of those days?|http://loinc.org|min/d|Physical Activity||LA19282-5|20|http://loinc.org|NA +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00||Calculated Physical Activity Score||min/wk|Physical Activity|||80||Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|68517-2|How many times in the past 12 months have you had 5 or more drinks in a day (males) or 4 or more drinks in a day (females)?|http://loinc.org|{#}/a|Substance Use (Alcohol Use)||LA18891-4|Weekly|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|96842-0|How many times in the past 12 months have you used tobacco products (like cigarettes, cigars, snuff, chew, electronic cigarettes)?|http://loinc.org|{#}/a|Substance Use (Tobacco Use)||LA18876-5|Monthly|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|95530-2|How many times in the past year have you used prescription drugs for non-medical reasons?|http://loinc.org|{#}/a|Substance Use||LA26460-8|Once or Twice|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|68524-8|How many times in the past year have you used illegal drugs?|http://loinc.org||Substance Use||LA6270-8|Never|http://loinc.org|No +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|44250-9|Little interest or pleasure in doing things?|http://loinc.org||Mental Health (Depression)||LA6570-1|More than half the days|http://loinc.org|NA +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|44255-8|Feeling down, depressed, or hopeless?|http://loinc.org||Mental Health (Depression)||LA6568-5|Not at all|http://loinc.org|NA +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00||Calculated mental health score|||Mental Health (Depression)|||2||No +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|93038-8|Stress means a situation in which a person feels tense, restless, nervous, or anxious, or is unable to sleep at night because his or her mind is troubled all the time. Do you feel this kind of stress these days?|http://loinc.org||Stress||LA13914-9|Very much|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|69858-9|Because of a physical, mental, or emotional condition, do you have serious difficulty concentrating, remembering, or making decisions?|http://loinc.org||Disability||LA33-6|Yes|http://loinc.org|Yes +qcs-test-20240603-testcase4-MRN|CNYSCN|qcs-testO4EXTMVMWQ|OBSENC|observation encounter|http://terminology.hl7.org/CodeSystem/v3-ActCode|completed|Completed|http://hl7.org/fhir/encounter-status|32166003|History taking, self-administered, questionnaire|http://snomed.info/sct|preliminary|Preliminary|http://hl7.org/fhir/observation-status|97023-6|Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions|http://loinc.org|2023-08-05T08:03:27.565473+02:00|69861-3|Because of a physical, mental, or emotional condition, do you have difficulty doing errands alone such as visiting a physician's office or shopping|http://loinc.org||Disability||LA32-8|No|http://loinc.org|No diff --git a/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/datapackage.json b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/datapackage.json new file mode 100644 index 0000000..ab76ce0 --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/datapackage.json @@ -0,0 +1,135 @@ +{ + "name": "my-dataset", + "resources": [ + { + "name": "qe_admin_data", + "path": "data/QE_ADMIN_DATA_qcs-test-20240603-testcase4.csv", + "schema": { + "fields": [ + {"name": "PAT_MRN_ID", "type": "string", "constraints": {"required": true}}, + {"name": "FACILITY_ID", "type": "string", "constraints": {"required": true}}, + {"name": "FACILITY_LONG_NAME", "type": "string", "constraints": {"required": true, "pattern": "^[a-zA-Z\\s]+$"}}, + {"name": "ORGANIZATION_TYPE", "type": "string", "constraints": {"required": true, "enum":["prov","dept","team","govt","ins","pay","edu","reli","crs","cg","bus","other","laboratory","imaging","pharmacy","health-information-network","health-data-aggregator"]}}, + {"name": "FACILITY_ADDRESS1", "type": "string", "constraints": {"required": true}}, + {"name": "FACILITY_ADDRESS2", "type": "string"}, + {"name": "FACILITY_CITY", "type": "string"}, + {"name": "FACILITY_STATE", "type": "string", "constraints": {"enum":["FACILITY_STATE", "NY", "New York"]}}, + {"name": "FACILITY_ZIP", "type": "string", "constraints": {"required": true}}, + {"name": "VISIT_PART_2_FLAG", "type": "string", "constraints": {"required": true, "enum":["Yes", "No"]}}, + {"name": "VISIT_OMH_FLAG", "type": "string", "constraints": {"required": true, "enum":["Yes", "No"]}}, + {"name": "VISIT_OPWDD_FLAG", "type": "string", "constraints": {"required": true, "enum":["Yes", "No"]}} + ], + "primaryKey": ["PAT_MRN_ID"] + }, + "dialect": { + "delimiter": "|" + } + }, + { + "name": "screening_data", + "path": "data/SCREENING_qcs-test-20240603-testcase4.csv", + "schema": { + "fields": [ + {"name": "PAT_MRN_ID", "type": "string", "constraints": {"required": true}}, + {"name": "FACILITY_ID", "type": "string", "constraints": {"required": true}}, + {"name": "ENCOUNTER_ID", "type": "string"}, + {"name": "ENCOUNTER_CLASS_CODE", "type": "string", "constraints": {"required": true}}, + {"name": "ENCOUNTER_CLASS_CODE_DESCRIPTION", "type": "string"}, + {"name": "ENCOUNTER_CLASS_CODE_SYSTEM", "type": "string", "constraints": {"required": true, "enum": ["http://terminology.hl7.org/CodeSystem/v3-ActCode"]}}, + {"name": "ENCOUNTER_STATUS_CODE", "type": "string", "constraints": {"required": true}}, + {"name": "ENCOUNTER_STATUS_CODE_DESCRIPTION", "type": "string"}, + {"name": "ENCOUNTER_STATUS_CODE_SYSTEM", "type": "string", "constraints": {"required": true, "enum": ["http://hl7.org/fhir/encounter-status"]}}, + {"name": "ENCOUNTER_TYPE_CODE", "type": "string"}, + {"name": "ENCOUNTER_TYPE_CODE_DESCRIPTION", "type": "string"}, + {"name": "ENCOUNTER_TYPE_CODE_SYSTEM", "type": "string", "constraints": {"enum": ["SNOMED-CT", "snomed-ct", "Snomed-ct", "SNOMED", "snomed", "Snomed", "http://snomed.info/sct"]} }, + {"name": "SCREENING_STATUS_CODE", "type": "string", "constraints": {"required": true}}, + {"name": "SCREENING_STATUS_CODE_DESCRIPTION", "type": "string"}, + {"name": "SCREENING_STATUS_CODE_SYSTEM", "type": "string", "constraints": {"required": true, "enum": ["http://hl7.org/fhir/observation-status"]}}, + {"name": "SCREENING_CODE", "type": "string", "constraints": {"required": true, "enum": ["96777-8", "97023-6"]}}, + {"name": "SCREENING_CODE_DESCRIPTION", "type": "string", "constraints": {"required": true, "enum": ["Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions","accountable health communities (AHC) health-related social needs (HRSN) supplemental questions","Accountable health communities (AHC) health-related social needs screening (HRSN) tool","accountable health communities (AHC) health-related social needs screening (HRSN) tool","NYS AHC HRSN screening"]}}, + {"name": "SCREENING_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": true, "enum": ["LN", "ln", "LOINC", "loinc", "http://loinc.org", "NYS standard","NYS Standard"]}}, + {"name": "RECORDED_TIME", "type": "datetime", "constraints": {"required": true}}, + {"name": "QUESTION_CODE", "type": "string", "constraints": {"required": true}}, + {"name": "QUESTION_CODE_DESCRIPTION", "type": "string", "constraints": {"required": true}}, + {"name": "QUESTION_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": true, "enum": ["LN","LOINC","http://loinc.org"]}}, + {"name": "UCUM_UNITS", "type": "string"}, + {"name": "SDOH_DOMAIN", "type": "string", "constraints": {"required": true}}, + {"name": "PARENT_QUESTION_CODE", "type": "string"}, + {"name": "ANSWER_CODE", "type": "string", "constraints": {"required": true}}, + {"name": "ANSWER_CODE_DESCRIPTION", "type": "string", "constraints": {"required": true}}, + {"name": "ANSWER_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": true, "enum": ["LN","LOINC","http://loinc.org"]}}, + {"name": "POTENTIAL_NEED_INDICATED", "type": "string", "constraints": {"required": true, "enum": ["Yes","No","NA","yes","no","na"]}} + ], + "foreignKeys": [ + { + "fields": ["PAT_MRN_ID"], + "reference": { + "resource": "qe_admin_data", + "fields": ["PAT_MRN_ID"] + } + } + ] + }, + "dialect": { + "delimiter": "|" + } + }, + { + "name": "demographic_data", + "path": "data/DEMOGRAPHIC_DATA_qcs-test-20240603-testcase4.csv", + "schema": { + "fields": [ + {"name": "MPI_ID", "type": "string", "constraints": {"required": true}}, + {"name": "PAT_MRN_ID", "type": "string", "constraints": {"required": true}}, + {"name": "FACILITY_ID", "type": "string", "constraints": {"required": true}}, + {"name": "CONSENT", "type": "string", "constraints": {"required": true, "enum": ["Yes", "YES", "yes", "Y", "y", "No", "NO", "no","N", "n","Unknown", "UNKNOWN", "unknown","UNK", "Unk", "unk"]}}, + {"name": "FIRST_NAME", "type": "string", "constraints": {"required": true, "pattern":"^[A-Za-z]+$"}}, + {"name": "MIDDLE_NAME", "type": "string", "constraints": {"pattern":"^[A-Za-z]+$"}}, + {"name": "LAST_NAME", "type": "string", "constraints": {"required": true, "pattern":"^[A-Za-z]+$"}}, + {"name": "ADMINISTRATIVE_SEX_CODE", "type": "string", "constraints": {"required": true}}, + {"name": "ADMINISTRATIVE_SEX_CODE_DESCRIPTION", "type": "string"}, + {"name": "ADMINISTRATIVE_SEX_CODE_SYSTEM", "type": "string", "constraints": {"required": true}}, + {"name": "SEX_AT_BIRTH_CODE", "type": "string", "constraints": {"required": true}}, + {"name": "SEX_AT_BIRTH_CODE_DESCRIPTION", "type": "string"}, + {"name": "SEX_AT_BIRTH_CODE_SYSTEM", "type": "string"}, + {"name": "PAT_BIRTH_DATE", "type": "date"}, + {"name": "ADDRESS1", "type": "string"}, + {"name": "ADDRESS2", "type": "string"}, + {"name": "CITY", "type": "string", "constraints": {"required": true}}, + {"name": "STATE", "type": "string", "constraints": {"required": true, "enum":["NY", "ny", "New York","new york", "NEW YORK"]}}, + {"name": "ZIP", "type": "string", "constraints": {"required": true, "pattern": "^\\d{5}(\\d{4})?$"}}, + {"name": "PHONE", "type": "string"}, + {"name": "SSN", "type": "string"}, + {"name": "GENDER_IDENTITY_CODE", "type": "string"}, + {"name": "GENDER_IDENTITY_CODE_DESCRIPTION", "type": "string"}, + {"name": "GENDER_IDENTITY_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": true, "enum":["SNOMED-CT","SNOMED","http://snomed.info/sct"]}}, + {"name": "SEXUAL_ORIENTATION_CODE", "type": "string"}, + {"name": "SEXUAL_ORIENTATION_CODE_DESCRIPTION", "type": "string"}, + {"name": "SEXUAL_ORIENTATION_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": true, "enum":["SNOMED-CT","SNOMED","http://snomed.info/sct"]}}, + {"name": "PREFERRED_LANGUAGE_CODE", "type": "string"}, + {"name": "PREFERRED_LANGUAGE_CODE_DESCRIPTION", "type": "string"}, + {"name": "PREFERRED_LANGUAGE_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": true, "enum":["ISO","ISO 639-2","http://hl7.org/fhir/us/core/ValueSet/simple-language"]}}, + {"name": "RACE_CODE", "type": "string"}, + {"name": "RACE_CODE_DESCRIPTION", "type": "string"}, + {"name": "RACE_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": true, "enum":["CDC","CDCRE","urn:oid:2.16.840.1.113883.6.238"]}}, + {"name": "ETHNICITY_CODE", "type": "string"}, + {"name": "ETHNICITY_CODE_DESCRIPTION", "type": "string"}, + {"name": "ETHNICITY_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": true, "enum":["CDC","CDCRE","urn:oid:2.16.840.1.113883.6.238"]}}, + {"name": "MEDICAID_CIN", "type": "string", "constraints": {"pattern": "^[A-Za-z]{2}\\d{5}[A-Za-z]$"}} + ], + "foreignKeys": [ + { + "fields": ["PAT_MRN_ID"], + "reference": { + "resource": "qe_admin_data", + "fields": ["PAT_MRN_ID"] + } + } + ] + }, + "dialect": { + "delimiter": "|" + } + } + ] +} diff --git a/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/validate.py b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/validate.py new file mode 100644 index 0000000..48bba85 --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/validate.py @@ -0,0 +1,42 @@ +import json +from frictionless import Package, Report + +def validate_package(package_path, output_path): + # Load the data package + package = Package(package_path) + + # Validate the package + report = package.validate() + print(report) + # Prepare the results dictionary + results = { + "report": report.to_dict(), + "errorsummary": [] + } + + # Check if validation passed + if report.valid: + print("Data package is valid.") + else: + print("Data package has validation errors.") + for error in report.flatten(["rowNumber", "fieldNumber", "fieldName", "message", "type"]): + print(f"Row: {error[0]}, fieldNumber: {error[1]}, fieldName: {error[2]}, Message: {error[3]}, Type: {error[4]}") + # Append each error to the results dictionary + results["errorsummary"].append({ + "rowNumber": error[0], + "fieldNumber": error[1], + "fieldName": error[2], + "message": error[3], + "type": error[4] + }) + + + + # Write the results to a JSON file + with open(output_path, 'w') as json_file: + json.dump(results, json_file, indent=4) + +if __name__ == "__main__": + package_path = "datapackage.json" + output_path = "validation_report.json" + validate_package(package_path, output_path) diff --git a/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/validate_csv.py b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/validate_csv.py new file mode 100644 index 0000000..3e6e1c9 --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/validate_csv.py @@ -0,0 +1,151 @@ +from frictionless import Package + +# Define your schema +schema = { + "name": "my-dataset", + "resources": [ + { + "name": "qe_admin_data", + "path": "data/QE_ADMIN_DATA_qcs-test-20240603-testcase4.csv", + "schema": { + "fields": [ + {"name": "PAT_MRN_ID", "type": "string", "constraints": {"required": True}}, + {"name": "FACILITY_ID", "type": "string", "constraints": {"required": True}}, + {"name": "FACILITY_LONG_NAME", "type": "string", "constraints": {"required": True, "pattern": "^[a-zA-Z\\s]+$"}}, + {"name": "ORGANIZATION_TYPE", "type": "string", "constraints": {"required": True, "enum":["prov","dept","team","govt","ins","pay","edu","reli","crs","cg","bus","other","laboratory","imaging","pharmacy","health-information-network","health-data-aggregator"]}}, + {"name": "FACILITY_ADDRESS1", "type": "string", "constraints": {"required": True}}, + {"name": "FACILITY_ADDRESS2", "type": "string"}, + {"name": "FACILITY_CITY", "type": "string"}, + {"name": "FACILITY_STATE", "type": "string", "constraints": {"enum":["FACILITY_STATE", "NY", "New York"]}}, + {"name": "FACILITY_ZIP", "type": "string", "constraints": {"required": True}}, + {"name": "VISIT_PART_2_FLAG", "type": "string", "constraints": {"required": True, "enum":["Yes", "No"]}}, + {"name": "VISIT_OMH_FLAG", "type": "string", "constraints": {"required": True, "enum":["Yes", "No"]}}, + {"name": "VISIT_OPWDD_FLAG", "type": "string", "constraints": {"required": True, "enum":["Yes", "No"]}} + ], + "primaryKey": ["PAT_MRN_ID"] + }, + "dialect": { + "delimiter": "|" + } + }, + { + "name": "screening_data", + "path": "data/SCREENING_qcs-test-20240603-testcase4.csv", + "schema": { + "fields": [ + {"name": "PAT_MRN_ID", "type": "string", "constraints": {"required": True}}, + {"name": "FACILITY_ID", "type": "string", "constraints": {"required": True}}, + {"name": "ENCOUNTER_ID", "type": "string"}, + {"name": "ENCOUNTER_CLASS_CODE", "type": "string", "constraints": {"required": True}}, + {"name": "ENCOUNTER_CLASS_CODE_DESCRIPTION", "type": "string"}, + {"name": "ENCOUNTER_CLASS_CODE_SYSTEM", "type": "string", "constraints": {"required": True, "enum": ["http://terminology.hl7.org/CodeSystem/v3-ActCode"]}}, + {"name": "ENCOUNTER_STATUS_CODE", "type": "string", "constraints": {"required": True}}, + {"name": "ENCOUNTER_STATUS_CODE_DESCRIPTION", "type": "string"}, + {"name": "ENCOUNTER_STATUS_CODE_SYSTEM", "type": "string", "constraints": {"required": True, "enum": ["http://hl7.org/fhir/encounter-status"]}}, + {"name": "ENCOUNTER_TYPE_CODE", "type": "string"}, + {"name": "ENCOUNTER_TYPE_CODE_DESCRIPTION", "type": "string"}, + {"name": "ENCOUNTER_TYPE_CODE_SYSTEM", "type": "string", "constraints": {"enum": ["SNOMED-CT", "snomed-ct", "Snomed-ct", "SNOMED", "snomed", "Snomed", "http://snomed.info/sct"]} }, + {"name": "SCREENING_STATUS_CODE", "type": "string", "constraints": {"required": True}}, + {"name": "SCREENING_STATUS_CODE_DESCRIPTION", "type": "string"}, + {"name": "SCREENING_STATUS_CODE_SYSTEM", "type": "string", "constraints": {"required": True, "enum": ["http://hl7.org/fhir/observation-status"]}}, + {"name": "SCREENING_CODE", "type": "string", "constraints": {"required": True, "enum": ["96777-8", "97023-6"]}}, + {"name": "SCREENING_CODE_DESCRIPTION", "type": "string", "constraints": {"required": True, "enum": ["Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions","accountable health communities (AHC) health-related social needs (HRSN) supplemental questions","Accountable health communities (AHC) health-related social needs screening (HRSN) tool","accountable health communities (AHC) health-related social needs screening (HRSN) tool","NYS AHC HRSN screening"]}}, + {"name": "SCREENING_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": True, "enum": ["LN", "ln", "LOINC", "loinc", "http://loinc.org", "NYS standard","NYS Standard"]}}, + {"name": "RECORDED_TIME", "type": "datetime", "constraints": {"required": True}}, + {"name": "QUESTION_CODE", "type": "string", "constraints": {"required": True}}, + {"name": "QUESTION_CODE_DESCRIPTION", "type": "string", "constraints": {"required": True}}, + {"name": "QUESTION_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": True, "enum": ["LN","LOINC","http://loinc.org"]}}, + {"name": "UCUM_UNITS", "type": "string"}, + {"name": "SDOH_DOMAIN", "type": "string", "constraints": {"required": True}}, + {"name": "PARENT_QUESTION_CODE", "type": "string"}, + {"name": "ANSWER_CODE", "type": "string", "constraints": {"required": True}}, + {"name": "ANSWER_CODE_DESCRIPTION", "type": "string", "constraints": {"required": True}}, + {"name": "ANSWER_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": True, "enum": ["LN","LOINC","http://loinc.org"]}}, + {"name": "POTENTIAL_NEED_INDICATED", "type": "string", "constraints": {"required": True, "enum": ["Yes","No","NA","yes","no","na"]}} + ], + "foreignKeys": [ + { + "fields": ["PAT_MRN_ID"], + "reference": { + "resource": "qe_admin_data", + "fields": ["PAT_MRN_ID"] + } + } + ] + }, + "dialect": { + "delimiter": "|" + } + }, + { + "name": "demographic_data", + "path": "data/DEMOGRAPHIC_DATA_qcs-test-20240603-testcase4.csv", + "schema": { + "fields": [ + {"name": "MPI_ID", "type": "string", "constraints": {"required": True}}, + {"name": "PAT_MRN_ID", "type": "string", "constraints": {"required": True}}, + {"name": "FACILITY_ID", "type": "string", "constraints": {"required": True}}, + {"name": "CONSENT", "type": "string", "constraints": {"required": True, "enum": ["Yes", "YES", "yes", "Y", "y", "No", "NO", "no","N", "n","Unknown", "UNKNOWN", "unknown","UNK", "Unk", "unk"]}}, + {"name": "FIRST_NAME", "type": "string", "constraints": {"required": True, "pattern":"^[A-Za-z]+$"}}, + {"name": "MIDDLE_NAME", "type": "string", "constraints": {"pattern":"^[A-Za-z]+$"}}, + {"name": "LAST_NAME", "type": "string", "constraints": {"required": True, "pattern":"^[A-Za-z]+$"}}, + {"name": "ADMINISTRATIVE_SEX_CODE", "type": "string", "constraints": {"required": True}}, + {"name": "ADMINISTRATIVE_SEX_CODE_DESCRIPTION", "type": "string"}, + {"name": "ADMINISTRATIVE_SEX_CODE_SYSTEM", "type": "string", "constraints": {"required": True}}, + {"name": "SEX_AT_BIRTH_CODE", "type": "string", "constraints": {"required": True}}, + {"name": "SEX_AT_BIRTH_CODE_DESCRIPTION", "type": "string"}, + {"name": "SEX_AT_BIRTH_CODE_SYSTEM", "type": "string"}, + {"name": "PAT_BIRTH_DATE", "type": "date"}, + {"name": "ADDRESS1", "type": "string"}, + {"name": "ADDRESS2", "type": "string"}, + {"name": "CITY", "type": "string", "constraints": {"required": True}}, + {"name": "STATE", "type": "string", "constraints": {"required": True, "enum":["NY", "ny", "New York","new york", "NEW YORK"]}}, + {"name": "ZIP", "type": "string", "constraints": {"required": True, "pattern": "^\\d{5}(\\d{4})?$"}}, + {"name": "PHONE", "type": "string"}, + {"name": "SSN", "type": "string"}, + {"name": "GENDER_IDENTITY_CODE", "type": "string"}, + {"name": "GENDER_IDENTITY_CODE_DESCRIPTION", "type": "string"}, + {"name": "GENDER_IDENTITY_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": True, "enum":["SNOMED-CT","SNOMED","http://snomed.info/sct"]}}, + {"name": "SEXUAL_ORIENTATION_CODE", "type": "string"}, + {"name": "SEXUAL_ORIENTATION_CODE_DESCRIPTION", "type": "string"}, + {"name": "SEXUAL_ORIENTATION_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": True, "enum":["SNOMED-CT","SNOMED","http://snomed.info/sct"]}}, + {"name": "PREFERRED_LANGUAGE_CODE", "type": "string"}, + {"name": "PREFERRED_LANGUAGE_CODE_DESCRIPTION", "type": "string"}, + {"name": "PREFERRED_LANGUAGE_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": True, "enum":["ISO","ISO 639-2","http://hl7.org/fhir/us/core/ValueSet/simple-language"]}}, + {"name": "RACE_CODE", "type": "string"}, + {"name": "RACE_CODE_DESCRIPTION", "type": "string"}, + {"name": "RACE_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": True, "enum":["CDC","CDCRE","urn:oid:2.16.840.1.113883.6.238"]}}, + {"name": "ETHNICITY_CODE", "type": "string"}, + {"name": "ETHNICITY_CODE_DESCRIPTION", "type": "string"}, + {"name": "ETHNICITY_CODE_SYSTEM_NAME", "type": "string", "constraints": {"required": True, "enum":["CDC","CDCRE","urn:oid:2.16.840.1.113883.6.238"]}}, + {"name": "MEDICAID_CIN", "type": "string", "constraints": {"pattern": "^[A-Za-z]{2}\\d{5}[A-Za-z]$"}} + ], + "foreignKeys": [ + { + "fields": ["PAT_MRN_ID"], + "reference": { + "resource": "qe_admin_data", + "fields": ["PAT_MRN_ID"] + } + } + ] + }, + "dialect": { + "delimiter": "|" + } + } + ] +} + + +# Create and validate the package +package = Package(schema) + +# Validate the package +errors = package.validate() + +# Check for validation errors +if errors: + print("Schema validation errors:", errors) +else: + print("Schema is valid!") diff --git a/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/validation_report.json b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/validation_report.json new file mode 100644 index 0000000..9097ece --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/validation_report.json @@ -0,0 +1,797 @@ +{ + "report": { + "valid": false, + "stats": { + "tasks": 3, + "errors": 12, + "warnings": 0, + "seconds": 0.08 + }, + "warnings": [], + "errors": [], + "tasks": [ + { + "name": "qe_admin_data", + "type": "table", + "valid": false, + "place": "data/QE_ADMIN_DATA_qcs-test-20240603-testcase4.csv", + "labels": [ + "PAT_MRN_ID", + "FACILITY_ID", + "FACILITY_LONG_NAME", + "ORGANIZATION_TYPE", + "FACILITY_ADDRESS1", + "FACILITY_ADDRESS2", + "FACILITY_CITY", + "FACILITY_STATE", + "FACILITY_ZIP", + "VISIT_PART_2_FLAG", + "VISIT_OMH_FLAG", + "VISIT_OPWDD_FLAG" + ], + "stats": { + "errors": 1, + "warnings": 0, + "seconds": 0.022, + "md5": "ad7c65a23e07ea4c7d90fded130c43e8", + "sha256": "3cf5221abb1682f7560e59a88c269061de7011c74c5cb9bdeb4b4df9a94f814a", + "bytes": 322, + "fields": 12, + "rows": 1 + }, + "warnings": [], + "errors": [ + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"SCN\" in row at position \"2\" and field \"ORGANIZATION_TYPE\" at position \"4\" does not conform to a constraint: constraint \"enum\" is \"['prov', 'dept', 'team', 'govt', 'ins', 'pay', 'edu', 'reli', 'crs', 'cg', 'bus', 'other', 'laboratory', 'imaging', 'pharmacy', 'health-information-network', 'health-data-aggregator']\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"enum\" is \"['prov', 'dept', 'team', 'govt', 'ins', 'pay', 'edu', 'reli', 'crs', 'cg', 'bus', 'other', 'laboratory', 'imaging', 'pharmacy', 'health-information-network', 'health-data-aggregator']\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "Crossroads NY Social Care Network", + "SCN", + "25 W 45th st", + "Suite 16", + "New York", + "New York", + "10036", + "No", + "No", + "No" + ], + "rowNumber": 2, + "cell": "SCN", + "fieldName": "ORGANIZATION_TYPE", + "fieldNumber": 4 + } + ] + }, + { + "name": "screening_data", + "type": "table", + "valid": false, + "place": "data/SCREENING_qcs-test-20240603-testcase4.csv", + "labels": [ + "PAT_MRN_ID", + "FACILITY_ID", + "ENCOUNTER_ID", + "ENCOUNTER_CLASS_CODE", + "ENCOUNTER_CLASS_CODE_DESCRIPTION", + "ENCOUNTER_CLASS_CODE_SYSTEM", + "ENCOUNTER_STATUS_CODE", + "ENCOUNTER_STATUS_CODE_DESCRIPTION", + "ENCOUNTER_STATUS_CODE_SYSTEM", + "ENCOUNTER_TYPE_CODE", + "ENCOUNTER_TYPE_CODE_DESCRIPTION", + "ENCOUNTER_TYPE_CODE_SYSTEM", + "SCREENING_STATUS_CODE", + "SCREENING_STATUS_CODE_DESCRIPTION", + "SCREENING_STATUS_CODE_SYSTEM", + "SCREENING_CODE", + "SCREENING_CODE_DESCRIPTION", + "SCREENING_CODE_SYSTEM_NAME", + "RECORDED_TIME", + "QUESTION_CODE", + "QUESTION_CODE_DESCRIPTION", + "QUESTION_CODE_SYSTEM_NAME", + "UCUM_UNITS", + "SDOH_DOMAIN", + "PARENT_QUESTION_CODE", + "ANSWER_CODE", + "ANSWER_CODE_DESCRIPTION", + "ANSWER_CODE_SYSTEM_NAME", + "POTENTIAL_NEED_INDICATED" + ], + "stats": { + "errors": 10, + "warnings": 0, + "seconds": 0.026, + "md5": "4b7c67e1be27632767eda37c3bf73d99", + "sha256": "912197075c80f40db032896c3afcee7e383b877ce27444aa0b677044997eca50", + "bytes": 20875, + "fields": 29, + "rows": 30 + }, + "warnings": [], + "errors": [ + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"12\" and field \"ANSWER_CODE\" at position \"26\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testXP2WQPOA9A", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "96777-8", + "Accountable health communities (AHC) health-related social needs screening (HRSN) tool", + "http://loinc.org", + "2023-02-26T22:57:44.192288+00:00", + "95614-4", + "Total Safety Score", + "http://loinc.org", + "{score}", + "Interpersonal Safety", + "", + "", + "10", + "", + "No" + ], + "rowNumber": 12, + "cell": "", + "fieldName": "ANSWER_CODE", + "fieldNumber": 26 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"12\" and field \"ANSWER_CODE_SYSTEM_NAME\" at position \"28\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testXP2WQPOA9A", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "96777-8", + "Accountable health communities (AHC) health-related social needs screening (HRSN) tool", + "http://loinc.org", + "2023-02-26T22:57:44.192288+00:00", + "95614-4", + "Total Safety Score", + "http://loinc.org", + "{score}", + "Interpersonal Safety", + "", + "", + "10", + "", + "No" + ], + "rowNumber": 12, + "cell": "", + "fieldName": "ANSWER_CODE_SYSTEM_NAME", + "fieldNumber": 28 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"21\" and field \"QUESTION_CODE\" at position \"20\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated Physical Activity Score", + "", + "min/wk", + "Physical Activity", + "", + "", + "80", + "", + "Yes" + ], + "rowNumber": 21, + "cell": "", + "fieldName": "QUESTION_CODE", + "fieldNumber": 20 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"21\" and field \"QUESTION_CODE_SYSTEM_NAME\" at position \"22\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated Physical Activity Score", + "", + "min/wk", + "Physical Activity", + "", + "", + "80", + "", + "Yes" + ], + "rowNumber": 21, + "cell": "", + "fieldName": "QUESTION_CODE_SYSTEM_NAME", + "fieldNumber": 22 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"21\" and field \"ANSWER_CODE\" at position \"26\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated Physical Activity Score", + "", + "min/wk", + "Physical Activity", + "", + "", + "80", + "", + "Yes" + ], + "rowNumber": 21, + "cell": "", + "fieldName": "ANSWER_CODE", + "fieldNumber": 26 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"21\" and field \"ANSWER_CODE_SYSTEM_NAME\" at position \"28\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated Physical Activity Score", + "", + "min/wk", + "Physical Activity", + "", + "", + "80", + "", + "Yes" + ], + "rowNumber": 21, + "cell": "", + "fieldName": "ANSWER_CODE_SYSTEM_NAME", + "fieldNumber": 28 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"28\" and field \"QUESTION_CODE\" at position \"20\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated mental health score", + "", + "", + "Mental Health (Depression)", + "", + "", + "2", + "", + "No" + ], + "rowNumber": 28, + "cell": "", + "fieldName": "QUESTION_CODE", + "fieldNumber": 20 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"28\" and field \"QUESTION_CODE_SYSTEM_NAME\" at position \"22\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated mental health score", + "", + "", + "Mental Health (Depression)", + "", + "", + "2", + "", + "No" + ], + "rowNumber": 28, + "cell": "", + "fieldName": "QUESTION_CODE_SYSTEM_NAME", + "fieldNumber": 22 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"28\" and field \"ANSWER_CODE\" at position \"26\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated mental health score", + "", + "", + "Mental Health (Depression)", + "", + "", + "2", + "", + "No" + ], + "rowNumber": 28, + "cell": "", + "fieldName": "ANSWER_CODE", + "fieldNumber": 26 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"28\" and field \"ANSWER_CODE_SYSTEM_NAME\" at position \"28\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated mental health score", + "", + "", + "Mental Health (Depression)", + "", + "", + "2", + "", + "No" + ], + "rowNumber": 28, + "cell": "", + "fieldName": "ANSWER_CODE_SYSTEM_NAME", + "fieldNumber": 28 + } + ] + }, + { + "name": "demographic_data", + "type": "table", + "valid": false, + "place": "data/DEMOGRAPHIC_DATA_qcs-test-20240603-testcase4.csv", + "labels": [ + "MPI_ID", + "PAT_MRN_ID", + "FACILITY_ID", + "CONSENT", + "FIRST_NAME", + "MIDDLE_NAME", + "LAST_NAME", + "ADMINISTRATIVE_SEX_CODE", + "ADMINISTRATIVE_SEX_CODE_DESCRIPTION", + "ADMINISTRATIVE_SEX_CODE_SYSTEM", + "SEX_AT_BIRTH_CODE", + "SEX_AT_BIRTH_CODE_DESCRIPTION", + "SEX_AT_BIRTH_CODE_SYSTEM", + "PAT_BIRTH_DATE", + "ADDRESS1", + "ADDRESS2", + "CITY", + "STATE", + "ZIP", + "PHONE", + "SSN", + "GENDER_IDENTITY_CODE", + "GENDER_IDENTITY_CODE_DESCRIPTION", + "GENDER_IDENTITY_CODE_SYSTEM_NAME", + "SEXUAL_ORIENTATION_CODE", + "SEXUAL_ORIENTATION_CODE_DESCRIPTION", + "SEXUAL_ORIENTATION_CODE_SYSTEM_NAME", + "PREFERRED_LANGUAGE_CODE", + "PREFERRED_LANGUAGE_CODE_DESCRIPTION", + "PREFERRED_LANGUAGE_CODE_SYSTEM_NAME", + "RACE_CODE", + "RACE_CODE_DESCRIPTION", + "RACE_CODE_SYSTEM_NAME", + "ETHNICITY_CODE", + "ETHNICITY_CODE_DESCRIPTION", + "ETHNICITY_CODE_SYSTEM_NAME", + "MEDICAID_CIN" + ], + "stats": { + "errors": 1, + "warnings": 0, + "seconds": 0.022, + "md5": "d9f36c72708e12726d7fcdbb7eb26b26", + "sha256": "91a4bebf4a74eb702f3a149a1a3988d48038587a1f0eabb7d8bfaf1f3c05cf4f", + "bytes": 1234, + "fields": 37, + "rows": 1 + }, + "warnings": [], + "errors": [ + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"2\" and field \"MPI_ID\" at position \"1\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "", + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "No", + "Amanda", + "Christina", + "Guerrero", + "X", + "Undifferentiated", + "http://terminology.hl7.org/CodeSystem/v3-AdministrativeGender", + "ASKU", + "asked but unknown", + "http://terminology.hl7.org/CodeSystem/v3-NullFlavor", + "1974-04-16", + "28007 Joanna Tunnel", + "Suite 11", + "Jamestown", + "NY", + "14701", + "(831)800-7041x27084", + "862-37-7633", + "446151000124109", + "Male", + "http://snomed.info/sct", + "UNK", + "Unknown", + "http://snomed.info/sct", + "mkd", + "Macedonian", + "ISO", + "1262-5", + "Grand Ronde", + "urn:oid:2.16.840.1.113883.6.238", + "2174-1", + "Venezuelan", + "urn:oid:2.16.840.1.113883.6.238", + "HM65654G" + ], + "rowNumber": 2, + "cell": "", + "fieldName": "MPI_ID", + "fieldNumber": 1 + } + ] + } + ] + }, + "errorsummary": [ + { + "rowNumber": 2, + "fieldNumber": 4, + "fieldName": "ORGANIZATION_TYPE", + "message": "The cell \"SCN\" in row at position \"2\" and field \"ORGANIZATION_TYPE\" at position \"4\" does not conform to a constraint: constraint \"enum\" is \"['prov', 'dept', 'team', 'govt', 'ins', 'pay', 'edu', 'reli', 'crs', 'cg', 'bus', 'other', 'laboratory', 'imaging', 'pharmacy', 'health-information-network', 'health-data-aggregator']\"", + "type": "constraint-error" + }, + { + "rowNumber": 12, + "fieldNumber": 26, + "fieldName": "ANSWER_CODE", + "message": "The cell \"\" in row at position \"12\" and field \"ANSWER_CODE\" at position \"26\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 12, + "fieldNumber": 28, + "fieldName": "ANSWER_CODE_SYSTEM_NAME", + "message": "The cell \"\" in row at position \"12\" and field \"ANSWER_CODE_SYSTEM_NAME\" at position \"28\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 21, + "fieldNumber": 20, + "fieldName": "QUESTION_CODE", + "message": "The cell \"\" in row at position \"21\" and field \"QUESTION_CODE\" at position \"20\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 21, + "fieldNumber": 22, + "fieldName": "QUESTION_CODE_SYSTEM_NAME", + "message": "The cell \"\" in row at position \"21\" and field \"QUESTION_CODE_SYSTEM_NAME\" at position \"22\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 21, + "fieldNumber": 26, + "fieldName": "ANSWER_CODE", + "message": "The cell \"\" in row at position \"21\" and field \"ANSWER_CODE\" at position \"26\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 21, + "fieldNumber": 28, + "fieldName": "ANSWER_CODE_SYSTEM_NAME", + "message": "The cell \"\" in row at position \"21\" and field \"ANSWER_CODE_SYSTEM_NAME\" at position \"28\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 28, + "fieldNumber": 20, + "fieldName": "QUESTION_CODE", + "message": "The cell \"\" in row at position \"28\" and field \"QUESTION_CODE\" at position \"20\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 28, + "fieldNumber": 22, + "fieldName": "QUESTION_CODE_SYSTEM_NAME", + "message": "The cell \"\" in row at position \"28\" and field \"QUESTION_CODE_SYSTEM_NAME\" at position \"22\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 28, + "fieldNumber": 26, + "fieldName": "ANSWER_CODE", + "message": "The cell \"\" in row at position \"28\" and field \"ANSWER_CODE\" at position \"26\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 28, + "fieldNumber": 28, + "fieldName": "ANSWER_CODE_SYSTEM_NAME", + "message": "The cell \"\" in row at position \"28\" and field \"ANSWER_CODE_SYSTEM_NAME\" at position \"28\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 2, + "fieldNumber": 1, + "fieldName": "MPI_ID", + "message": "The cell \"\" in row at position \"2\" and field \"MPI_ID\" at position \"1\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + } + ] +} \ No newline at end of file diff --git a/src/content/docs/1115-hub/sftp-services/CSV Schema/csv-validation-results.md b/src/content/docs/1115-hub/sftp-services/CSV Schema/csv-validation-results.md new file mode 100644 index 0000000..6430438 --- /dev/null +++ b/src/content/docs/1115-hub/sftp-services/CSV Schema/csv-validation-results.md @@ -0,0 +1,815 @@ +--- +title: CSV Validation Results +--- + +### CSV Validation + +- [Files Used](https://github.com/tech-by-design/docs.techbd.org/tree/main/public/assurance/1115-waiver/ahc-hrsn/screening/csv-schema/datapackage/data) + +#### CSV Validation Using frictionless-py + +[https://pypi.org/project/frictionless/](https://pypi.org/project/frictionless/) + + +#### Validation Results + +```json +{ + "report": { + "valid": false, + "stats": { + "tasks": 3, + "errors": 12, + "warnings": 0, + "seconds": 0.08 + }, + "warnings": [], + "errors": [], + "tasks": [ + { + "name": "qe_admin_data", + "type": "table", + "valid": false, + "place": "data/QE_ADMIN_DATA_qcs-test-20240603-testcase4.csv", + "labels": [ + "PAT_MRN_ID", + "FACILITY_ID", + "FACILITY_LONG_NAME", + "ORGANIZATION_TYPE", + "FACILITY_ADDRESS1", + "FACILITY_ADDRESS2", + "FACILITY_CITY", + "FACILITY_STATE", + "FACILITY_ZIP", + "VISIT_PART_2_FLAG", + "VISIT_OMH_FLAG", + "VISIT_OPWDD_FLAG" + ], + "stats": { + "errors": 1, + "warnings": 0, + "seconds": 0.022, + "md5": "ad7c65a23e07ea4c7d90fded130c43e8", + "sha256": "3cf5221abb1682f7560e59a88c269061de7011c74c5cb9bdeb4b4df9a94f814a", + "bytes": 322, + "fields": 12, + "rows": 1 + }, + "warnings": [], + "errors": [ + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"SCN\" in row at position \"2\" and field \"ORGANIZATION_TYPE\" at position \"4\" does not conform to a constraint: constraint \"enum\" is \"['prov', 'dept', 'team', 'govt', 'ins', 'pay', 'edu', 'reli', 'crs', 'cg', 'bus', 'other', 'laboratory', 'imaging', 'pharmacy', 'health-information-network', 'health-data-aggregator']\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"enum\" is \"['prov', 'dept', 'team', 'govt', 'ins', 'pay', 'edu', 'reli', 'crs', 'cg', 'bus', 'other', 'laboratory', 'imaging', 'pharmacy', 'health-information-network', 'health-data-aggregator']\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "Crossroads NY Social Care Network", + "SCN", + "25 W 45th st", + "Suite 16", + "New York", + "New York", + "10036", + "No", + "No", + "No" + ], + "rowNumber": 2, + "cell": "SCN", + "fieldName": "ORGANIZATION_TYPE", + "fieldNumber": 4 + } + ] + }, + { + "name": "screening_data", + "type": "table", + "valid": false, + "place": "data/SCREENING_qcs-test-20240603-testcase4.csv", + "labels": [ + "PAT_MRN_ID", + "FACILITY_ID", + "ENCOUNTER_ID", + "ENCOUNTER_CLASS_CODE", + "ENCOUNTER_CLASS_CODE_DESCRIPTION", + "ENCOUNTER_CLASS_CODE_SYSTEM", + "ENCOUNTER_STATUS_CODE", + "ENCOUNTER_STATUS_CODE_DESCRIPTION", + "ENCOUNTER_STATUS_CODE_SYSTEM", + "ENCOUNTER_TYPE_CODE", + "ENCOUNTER_TYPE_CODE_DESCRIPTION", + "ENCOUNTER_TYPE_CODE_SYSTEM", + "SCREENING_STATUS_CODE", + "SCREENING_STATUS_CODE_DESCRIPTION", + "SCREENING_STATUS_CODE_SYSTEM", + "SCREENING_CODE", + "SCREENING_CODE_DESCRIPTION", + "SCREENING_CODE_SYSTEM_NAME", + "RECORDED_TIME", + "QUESTION_CODE", + "QUESTION_CODE_DESCRIPTION", + "QUESTION_CODE_SYSTEM_NAME", + "UCUM_UNITS", + "SDOH_DOMAIN", + "PARENT_QUESTION_CODE", + "ANSWER_CODE", + "ANSWER_CODE_DESCRIPTION", + "ANSWER_CODE_SYSTEM_NAME", + "POTENTIAL_NEED_INDICATED" + ], + "stats": { + "errors": 10, + "warnings": 0, + "seconds": 0.026, + "md5": "4b7c67e1be27632767eda37c3bf73d99", + "sha256": "912197075c80f40db032896c3afcee7e383b877ce27444aa0b677044997eca50", + "bytes": 20875, + "fields": 29, + "rows": 30 + }, + "warnings": [], + "errors": [ + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"12\" and field \"ANSWER_CODE\" at position \"26\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testXP2WQPOA9A", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "96777-8", + "Accountable health communities (AHC) health-related social needs screening (HRSN) tool", + "http://loinc.org", + "2023-02-26T22:57:44.192288+00:00", + "95614-4", + "Total Safety Score", + "http://loinc.org", + "{score}", + "Interpersonal Safety", + "", + "", + "10", + "", + "No" + ], + "rowNumber": 12, + "cell": "", + "fieldName": "ANSWER_CODE", + "fieldNumber": 26 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"12\" and field \"ANSWER_CODE_SYSTEM_NAME\" at position \"28\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testXP2WQPOA9A", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "96777-8", + "Accountable health communities (AHC) health-related social needs screening (HRSN) tool", + "http://loinc.org", + "2023-02-26T22:57:44.192288+00:00", + "95614-4", + "Total Safety Score", + "http://loinc.org", + "{score}", + "Interpersonal Safety", + "", + "", + "10", + "", + "No" + ], + "rowNumber": 12, + "cell": "", + "fieldName": "ANSWER_CODE_SYSTEM_NAME", + "fieldNumber": 28 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"21\" and field \"QUESTION_CODE\" at position \"20\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated Physical Activity Score", + "", + "min/wk", + "Physical Activity", + "", + "", + "80", + "", + "Yes" + ], + "rowNumber": 21, + "cell": "", + "fieldName": "QUESTION_CODE", + "fieldNumber": 20 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"21\" and field \"QUESTION_CODE_SYSTEM_NAME\" at position \"22\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated Physical Activity Score", + "", + "min/wk", + "Physical Activity", + "", + "", + "80", + "", + "Yes" + ], + "rowNumber": 21, + "cell": "", + "fieldName": "QUESTION_CODE_SYSTEM_NAME", + "fieldNumber": 22 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"21\" and field \"ANSWER_CODE\" at position \"26\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated Physical Activity Score", + "", + "min/wk", + "Physical Activity", + "", + "", + "80", + "", + "Yes" + ], + "rowNumber": 21, + "cell": "", + "fieldName": "ANSWER_CODE", + "fieldNumber": 26 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"21\" and field \"ANSWER_CODE_SYSTEM_NAME\" at position \"28\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated Physical Activity Score", + "", + "min/wk", + "Physical Activity", + "", + "", + "80", + "", + "Yes" + ], + "rowNumber": 21, + "cell": "", + "fieldName": "ANSWER_CODE_SYSTEM_NAME", + "fieldNumber": 28 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"28\" and field \"QUESTION_CODE\" at position \"20\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated mental health score", + "", + "", + "Mental Health (Depression)", + "", + "", + "2", + "", + "No" + ], + "rowNumber": 28, + "cell": "", + "fieldName": "QUESTION_CODE", + "fieldNumber": 20 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"28\" and field \"QUESTION_CODE_SYSTEM_NAME\" at position \"22\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated mental health score", + "", + "", + "Mental Health (Depression)", + "", + "", + "2", + "", + "No" + ], + "rowNumber": 28, + "cell": "", + "fieldName": "QUESTION_CODE_SYSTEM_NAME", + "fieldNumber": 22 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"28\" and field \"ANSWER_CODE\" at position \"26\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated mental health score", + "", + "", + "Mental Health (Depression)", + "", + "", + "2", + "", + "No" + ], + "rowNumber": 28, + "cell": "", + "fieldName": "ANSWER_CODE", + "fieldNumber": 26 + }, + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"28\" and field \"ANSWER_CODE_SYSTEM_NAME\" at position \"28\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "qcs-testO4EXTMVMWQ", + "OBSENC", + "observation encounter", + "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "completed", + "Completed", + "http://hl7.org/fhir/encounter-status", + "32166003", + "History taking, self-administered, questionnaire", + "http://snomed.info/sct", + "preliminary", + "Preliminary", + "http://hl7.org/fhir/observation-status", + "97023-6", + "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions", + "http://loinc.org", + "2023-08-05T08:03:27.565473+02:00", + "", + "Calculated mental health score", + "", + "", + "Mental Health (Depression)", + "", + "", + "2", + "", + "No" + ], + "rowNumber": 28, + "cell": "", + "fieldName": "ANSWER_CODE_SYSTEM_NAME", + "fieldNumber": 28 + } + ] + }, + { + "name": "demographic_data", + "type": "table", + "valid": false, + "place": "data/DEMOGRAPHIC_DATA_qcs-test-20240603-testcase4.csv", + "labels": [ + "MPI_ID", + "PAT_MRN_ID", + "FACILITY_ID", + "CONSENT", + "FIRST_NAME", + "MIDDLE_NAME", + "LAST_NAME", + "ADMINISTRATIVE_SEX_CODE", + "ADMINISTRATIVE_SEX_CODE_DESCRIPTION", + "ADMINISTRATIVE_SEX_CODE_SYSTEM", + "SEX_AT_BIRTH_CODE", + "SEX_AT_BIRTH_CODE_DESCRIPTION", + "SEX_AT_BIRTH_CODE_SYSTEM", + "PAT_BIRTH_DATE", + "ADDRESS1", + "ADDRESS2", + "CITY", + "STATE", + "ZIP", + "PHONE", + "SSN", + "GENDER_IDENTITY_CODE", + "GENDER_IDENTITY_CODE_DESCRIPTION", + "GENDER_IDENTITY_CODE_SYSTEM_NAME", + "SEXUAL_ORIENTATION_CODE", + "SEXUAL_ORIENTATION_CODE_DESCRIPTION", + "SEXUAL_ORIENTATION_CODE_SYSTEM_NAME", + "PREFERRED_LANGUAGE_CODE", + "PREFERRED_LANGUAGE_CODE_DESCRIPTION", + "PREFERRED_LANGUAGE_CODE_SYSTEM_NAME", + "RACE_CODE", + "RACE_CODE_DESCRIPTION", + "RACE_CODE_SYSTEM_NAME", + "ETHNICITY_CODE", + "ETHNICITY_CODE_DESCRIPTION", + "ETHNICITY_CODE_SYSTEM_NAME", + "MEDICAID_CIN" + ], + "stats": { + "errors": 1, + "warnings": 0, + "seconds": 0.022, + "md5": "d9f36c72708e12726d7fcdbb7eb26b26", + "sha256": "91a4bebf4a74eb702f3a149a1a3988d48038587a1f0eabb7d8bfaf1f3c05cf4f", + "bytes": 1234, + "fields": 37, + "rows": 1 + }, + "warnings": [], + "errors": [ + { + "type": "constraint-error", + "title": "Constraint Error", + "description": "A field value does not conform to a constraint.", + "message": "The cell \"\" in row at position \"2\" and field \"MPI_ID\" at position \"1\" does not conform to a constraint: constraint \"required\" is \"True\"", + "tags": [ + "#table", + "#row", + "#cell" + ], + "note": "constraint \"required\" is \"True\"", + "cells": [ + "", + "qcs-test-20240603-testcase4-MRN", + "CNYSCN", + "No", + "Amanda", + "Christina", + "Guerrero", + "X", + "Undifferentiated", + "http://terminology.hl7.org/CodeSystem/v3-AdministrativeGender", + "ASKU", + "asked but unknown", + "http://terminology.hl7.org/CodeSystem/v3-NullFlavor", + "1974-04-16", + "28007 Joanna Tunnel", + "Suite 11", + "Jamestown", + "NY", + "14701", + "(831)800-7041x27084", + "862-37-7633", + "446151000124109", + "Male", + "http://snomed.info/sct", + "UNK", + "Unknown", + "http://snomed.info/sct", + "mkd", + "Macedonian", + "ISO", + "1262-5", + "Grand Ronde", + "urn:oid:2.16.840.1.113883.6.238", + "2174-1", + "Venezuelan", + "urn:oid:2.16.840.1.113883.6.238", + "HM65654G" + ], + "rowNumber": 2, + "cell": "", + "fieldName": "MPI_ID", + "fieldNumber": 1 + } + ] + } + ] + }, + "errorsummary": [ + { + "rowNumber": 2, + "fieldNumber": 4, + "fieldName": "ORGANIZATION_TYPE", + "message": "The cell \"SCN\" in row at position \"2\" and field \"ORGANIZATION_TYPE\" at position \"4\" does not conform to a constraint: constraint \"enum\" is \"['prov', 'dept', 'team', 'govt', 'ins', 'pay', 'edu', 'reli', 'crs', 'cg', 'bus', 'other', 'laboratory', 'imaging', 'pharmacy', 'health-information-network', 'health-data-aggregator']\"", + "type": "constraint-error" + }, + { + "rowNumber": 12, + "fieldNumber": 26, + "fieldName": "ANSWER_CODE", + "message": "The cell \"\" in row at position \"12\" and field \"ANSWER_CODE\" at position \"26\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 12, + "fieldNumber": 28, + "fieldName": "ANSWER_CODE_SYSTEM_NAME", + "message": "The cell \"\" in row at position \"12\" and field \"ANSWER_CODE_SYSTEM_NAME\" at position \"28\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 21, + "fieldNumber": 20, + "fieldName": "QUESTION_CODE", + "message": "The cell \"\" in row at position \"21\" and field \"QUESTION_CODE\" at position \"20\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 21, + "fieldNumber": 22, + "fieldName": "QUESTION_CODE_SYSTEM_NAME", + "message": "The cell \"\" in row at position \"21\" and field \"QUESTION_CODE_SYSTEM_NAME\" at position \"22\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 21, + "fieldNumber": 26, + "fieldName": "ANSWER_CODE", + "message": "The cell \"\" in row at position \"21\" and field \"ANSWER_CODE\" at position \"26\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 21, + "fieldNumber": 28, + "fieldName": "ANSWER_CODE_SYSTEM_NAME", + "message": "The cell \"\" in row at position \"21\" and field \"ANSWER_CODE_SYSTEM_NAME\" at position \"28\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 28, + "fieldNumber": 20, + "fieldName": "QUESTION_CODE", + "message": "The cell \"\" in row at position \"28\" and field \"QUESTION_CODE\" at position \"20\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 28, + "fieldNumber": 22, + "fieldName": "QUESTION_CODE_SYSTEM_NAME", + "message": "The cell \"\" in row at position \"28\" and field \"QUESTION_CODE_SYSTEM_NAME\" at position \"22\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 28, + "fieldNumber": 26, + "fieldName": "ANSWER_CODE", + "message": "The cell \"\" in row at position \"28\" and field \"ANSWER_CODE\" at position \"26\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 28, + "fieldNumber": 28, + "fieldName": "ANSWER_CODE_SYSTEM_NAME", + "message": "The cell \"\" in row at position \"28\" and field \"ANSWER_CODE_SYSTEM_NAME\" at position \"28\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + }, + { + "rowNumber": 2, + "fieldNumber": 1, + "fieldName": "MPI_ID", + "message": "The cell \"\" in row at position \"2\" and field \"MPI_ID\" at position \"1\" does not conform to a constraint: constraint \"required\" is \"True\"", + "type": "constraint-error" + } + ] +} + +```