AssertVocabDomain¶
Fails the record unless the input concept id belongs to a named OMOP vocabulary domain.
Takes a domain name and the input concept id. The rule fails the record
unless the concept id is in the named OMOP CDM vocabulary domain. Setting
the second parameter to TRUE allows the special concept id 0.
Parameters¶
- 1 —
domainMandatory — accepts: STRING -
The name of the OMOP CDM domain the input concept must belong to.
- 2 —
allowZeroMandatory — accepts: BOOLEAN -
When
TRUE, the concept id0is accepted. WhenFALSE,0causes the assertion to fail. - 3 —
commentOptional — accepts: STRING -
A comment written to the log when the assertion does not match.
Input type¶
INT
Output type¶
same-as-input
Examples¶
Concept must be in the Condition domain (0 allowed)
Concept must be Procedure with custom failure message