Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validating Combinations of Fields in CSV Files #1667

Open
megin1989 opened this issue Jul 1, 2024 · 0 comments
Open

Validating Combinations of Fields in CSV Files #1667

megin1989 opened this issue Jul 1, 2024 · 0 comments

Comments

@megin1989
Copy link

megin1989 commented Jul 1, 2024

Overview

How can I perform Validating Combinations of Fields?

Example:
Validate that all combinations of the ENCOUNTER_CLASS_CODE and ENCOUNTER_CLASS_CODE_DESCRIPTION fields in the primary CSV file exactly match the data given in the validation file. The check should ensure that each pair of ENCOUNTER_CLASS_CODE and ENCOUNTER_CLASS_CODE_DESCRIPTION in the primary CSV exists in the validation.json file using enum fields.

{
  "name": "ENCOUNTER_CLASS_CODE",
  "type": "string",
  "constraints": {
    "required": true,
    "enum": [
      "amb",
      "emer",
      "fld",
      "hh",
      "imp",
      "acute",
      "nonac",
      "obsenc",
      "prenc",
      "ss",
      "vr"
    ]
  }
},
{
  "name": "ENCOUNTER_CLASS_CODE_DESCRIPTION",
  "type": "string",
  "constraints": {
    "enum": [
      "ambulatory",
      "emergency",
      "field",
      "home health",
      "inpatient encounter",
      "inpatient acute",
      "inpatient non-acute",
      "observation encounter",
      "pre-admission",
      "short stay",
      "virtual"
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant