bdchecks (version 0.1.7)

DC_occurrenceIdNotGuid: 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.

Arguments

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

Run this code
# NOT RUN {
performDC(DC = DC_occurrenceIdNotGuid, DATA = bdchecks::dataBats)
# }

Run the code above in your browser using DataLab