{
  "ConceptSets": [
    {
      "id": 0,
      "name": "Gastrointestinal hemorrhage",
      "expression": {
        "items": [
          {
            "concept": {
              "CONCEPT_CLASS_ID": "Clinical Finding",
              "CONCEPT_CODE": "74474003",
              "CONCEPT_ID": 192671,
              "CONCEPT_NAME": "Gastrointestinal hemorrhage",
              "DOMAIN_ID": "Condition",
              "INVALID_REASON": "V",
              "INVALID_REASON_CAPTION": "Valid",
              "STANDARD_CONCEPT": "S",
              "STANDARD_CONCEPT_CAPTION": "Standard",
              "VOCABULARY_ID": "SNOMED"
            },
            "includeDescendants": true
          }
        ]
      }
    }
  ],
  "PrimaryCriteria": {
    "CriteriaList": [
      {
        "ConditionOccurrence": {
          "CodesetId": 0
        }
      }
    ],
    "ObservationWindow": {
      "PriorDays": 0,
      "PostDays": 0
    },
    "PrimaryCriteriaLimit": {
      "Type": "All"
    }
  },
  "QualifiedLimit": {
    "Type": "First"
  },
  "ExpressionLimit": {
    "Type": "First"
  },
  "InclusionRules": [
    {
      "name": "Male",
      "expression": {
        "Type": "ALL",
        "CriteriaList": [],
        "DemographicCriteriaList": [
          {
            "Gender": [
              {
                "CONCEPT_CODE": "M",
                "CONCEPT_ID": 8507,
                "CONCEPT_NAME": "MALE",
                "DOMAIN_ID": "Gender",
                "INVALID_REASON_CAPTION": "Unknown",
                "STANDARD_CONCEPT_CAPTION": "Unknown",
                "VOCABULARY_ID": "Gender"
              }
            ]
          }
        ],
        "Groups": []
      }
    },
    {
      "name": "30 days prior observation",
      "expression": {
        "Type": "ALL",
        "CriteriaList": [
          {
            "Criteria": {
              "ObservationPeriod": {}
            },
            "StartWindow": {
              "Start": {
                "Coeff": -1
              },
              "End": {
                "Days": 30,
                "Coeff": -1
              },
              "UseEventEnd": false
            },
            "EndWindow": {
              "Start": {
                "Days": 0,
                "Coeff": 1
              },
              "End": {
                "Coeff": 1
              },
              "UseEventEnd": true
            },
            "Occurrence": {
              "Type": 2,
              "Count": 1
            }
          }
        ],
        "DemographicCriteriaList": [],
        "Groups": []
      }
    }
  ],
  "CensoringCriteria": [],
  "CollapseSettings": {
    "CollapseType": "ERA",
    "EraPad": 0
  },
  "CensorWindow": {},
  "cdmVersionRange": ">=5.0.0"
}
