{
  "name": "Adult inpatients with cardiac arrest",
  "expressionType": "SIMPLE_EXPRESSION",
  "expression": {
    "Title": "Adult inpatients with cardiac arrest",
    "ConceptSets": [
      {
        "id": 0,
        "name": "Cardiac arrest",
        "expression": {
          "items": [
            {
              "concept": {
                "CONCEPT_ID": 321042,
                "CONCEPT_NAME": "Cardiac arrest",
                "STANDARD_CONCEPT": "S",
                "INVALID_REASON": null,
                "CONCEPT_CODE": "410429000",
                "DOMAIN_ID": "Condition",
                "VOCABULARY_ID": "SNOMED",
                "CONCEPT_CLASS_ID": null
              },
              "isExcluded": false,
              "includeDescendants": true,
              "includeMapped": false
            }
          ]
        }
      },
      {
        "id": 1,
        "name": "Inpatient visit",
        "expression": {
          "items": [
            {
              "concept": {
                "CONCEPT_ID": 9201,
                "CONCEPT_NAME": "Inpatient Visit",
                "STANDARD_CONCEPT": "S",
                "INVALID_REASON": null,
                "CONCEPT_CODE": "IP",
                "DOMAIN_ID": "Visit",
                "VOCABULARY_ID": "Visit",
                "CONCEPT_CLASS_ID": null
              },
              "isExcluded": false,
              "includeDescendants": false,
              "includeMapped": false
            },
            {
              "concept": {
                "CONCEPT_ID": 262,
                "CONCEPT_NAME": "Emergency Room and Inpatient Visit",
                "STANDARD_CONCEPT": "S",
                "INVALID_REASON": null,
                "CONCEPT_CODE": "ERIP",
                "DOMAIN_ID": "Visit",
                "VOCABULARY_ID": "Visit",
                "CONCEPT_CLASS_ID": null
              },
              "isExcluded": false,
              "includeDescendants": false,
              "includeMapped": false
            }
          ]
        }
      }
    ],
    "PrimaryCriteria": {
      "CriteriaList": [
        {
          "ConditionOccurrence": {
            "CodesetId": 0,
            "First": true
          }
        }
      ],
      "ObservationWindow": {
        "PriorDays": 0,
        "PostDays": 0
      },
      "PrimaryCriteriaLimit": {
        "Type": "First"
      }
    },
    "AdditionalCriteria": null,
    "QualifiedLimit": {
      "Type": "First"
    },
    "ExpressionLimit": {
      "Type": "First"
    },
    "InclusionRules": [
      {
        "name": "Age 18 or older",
        "description": null,
        "expression": {
          "Type": "ALL",
          "CriteriaList": [],
          "DemographicCriteriaList": [
            {
              "Age": {
                "Op": "gte",
                "Value": 18
              }
            }
          ],
          "Groups": []
        }
      },
      {
        "name": "During an inpatient visit",
        "description": null,
        "expression": {
          "Type": "ALL",
          "CriteriaList": [
            {
              "Criteria": {
                "VisitOccurrence": {
                  "CodesetId": 1
                }
              },
              "StartWindow": {
                "Start": {
                  "Days": null,
                  "Coeff": -1
                },
                "End": {
                  "Days": 0,
                  "Coeff": 1
                },
                "UseIndexEnd": false,
                "UseEventEnd": false
              },
              "RestrictVisit": true,
              "IgnoreObservationPeriod": false,
              "Occurrence": {
                "Type": 2,
                "Count": 1,
                "IsDistinct": false
              }
            }
          ],
          "DemographicCriteriaList": [],
          "Groups": []
        }
      }
    ],
    "EndStrategy": {},
    "CensoringCriteria": [],
    "CollapseSettings": {
      "CollapseType": "ERA",
      "EraPad": 0
    },
    "CensorWindow": {},
    "cdmVersionRange": ">=5.0.0"
  }
}
