compose: Select more specific SNOMED CT concepts based on attributes

View source: R/compose.R

composeR Documentation

Select more specific SNOMED CT concepts based on attributes

Description

Finds the most specific SNOMED CT concepts that matches the combination of a root concept and attributes. Based on a composeLookup table

Usage

compose(
  conceptId,
  CDB,
  composeLookup,
  attributes_conceptIds = bit64::integer64(0),
  due_to_conceptIds = bit64::integer64(0),
  without_conceptIds = bit64::integer64(0),
  with_conceptIds = bit64::integer64(0),
  SNOMED = getSNOMED,
  show_all_matches = FALSE
)

Arguments

conceptId

SNOMED CT concept to refine

CDB

SNOMED CT concept database, as created by createCDB. An environment containing the following data tables: FINDINGS, QUAL, CAUSES, BODY, FINDINGS, OTHERSUB, OVERLAP, TRANSITIVE

composeLookup

lookup table created by createComposeLookup

attributes_conceptIds

SNOMED concept Ids of attributes of concept e.g. laterality, severity, acuteness

due_to_conceptIds

SNOMED concept Ids of cause

without_conceptIds

SNOMED concept Ids of conditions stated to be absent

with_conceptIds

SNOMED concept Ids of conditions also present

SNOMED

environment containing SNOMED CT tables

show_all_matches

whether to stop if an exact match is found, or continue to search for all potential matches

Value

a refined SNOMED concept Id

Examples

# Not run
# refineSNOMEDfinding

anoopshah/Rdiagnosislist documentation built on Oct. 18, 2024, 9:48 a.m.