The Concepts class enforces several properties of a data frame. First of all, it must have columns:

  • conceptId

  • conceptName

  • vocabularyId

  • domainId

  • conceptClassId

  • origin

  • status

Second, the origin column must be one of these values:

  • SEED

  • DESCENDANT

  • RECOMMENDED

Third, the status column must be one of these values:

  • UNADJUDICATED

  • APPROVED

  • REJECTED

  • BELOW_MIN_COUNT

Finally, the conceptId column cannot have duplicates.

asConcepts(dataFrame, origin = NULL, status = NULL)

Arguments

dataFrame

Input data frame

origin

Optional: the origin to use for all concepts in the input. Can be 'SEED', 'DESCENDANT', or 'RECOMMENDED'.

status

Optional: the status to use for all concepts in the input. Can be 'UNADJUDICATED', 'APPROVED', 'REJECTED', or 'BELOW_MIN_COUNT.

Value

An object of type Concepts.