DC_occurrenceIdNotGuid {bdchecks}R Documentation

Data check occurrenceIdNotGuid Check if an identifier for the occurrence is a globally uniquely identifier (currently we use regex pattern solution is implemented)

Description

This data check answers: "?" question.
Data check will pass if occurrenceID is a globally uninique identifier (GUID) and will fail if occurrenceID is an integer, assuring that it is not a globally uninique identifier (GUID).
Dimension of this data check is Conformance and it's flagging type is: FLAG
Example of entries that will pass: 3cfe9ab4-79f8-4afd-8da5-723183ef16a3, such data check would return Passed.
Example of entries that will fail: occurrenceID=42, such data check would return Failed.

Format

An object of class "dataCheck", see dataCheck for details.

samplePassData

occurrenceID is a globally uninique identifier (GUID)

sampleFailData

occurrenceID is an integer, assuring that it is not a globally uninique identifier (GUID)

targetDWCField

occurrenceID

checkCategory

Occurrence

References

None

Examples

performDC(DC = DC_occurrenceIdNotGuid, DATA = bdchecks::dataBats)

[Package bdchecks version 0.1.7 Index]