Skip to content

Accidental generation of nonexistent phecodes #7

@FearlessNewbie

Description

@FearlessNewbie

pcodes <- unique(c(icd9key$phecode,gsub("\\..+","",icd9key$phecode),gsub("(\\..).","\\1",icd9key$phecode)))
pcodes <- sort(pcodes)

Restrict phecode creation to known valid phecodes to avoid generating nonexistent parent codes (e.g., 305):

pcodes_raw <- unique(c(icd9key_master$phecode, gsub("\..+", "", icd9key_master$phecode), gsub("(\..).", "\1", icd9key_master$phecode)))
pcodes <- sort(intersect(pcodes_raw, unique(pheinfo$phecode)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions