Skip to content

Add cancer ICD9 vars to field names request#41

Open
hdg204 wants to merge 6 commits intolcpilling:mainfrom
hdg204:patch-1
Open

Add cancer ICD9 vars to field names request#41
hdg204 wants to merge 6 commits intolcpilling:mainfrom
hdg204:patch-1

Conversation

@hdg204
Copy link
Copy Markdown

@hdg204 hdg204 commented Apr 21, 2026

No description provided.

hdg204 and others added 6 commits April 21, 2026 13:31
`fields_to_phenos` didn't always recognise instanced fields correctly. This is now fixed (in the Schema "instanced" can be 1 or 2 it turns out.

For getting the cancer registry fields, rather than having to manually specify the N in each array, use `fields_to_phenos`
`get_diagnoses` will now send ICD9s to `get_cancer_registry` if they are in the cancer range.

`get_cancer_registry` returns an addition column "icd9" to the derived "long" cancer registry object
Not fully tested - will do some checks
And fix a character/numeric comparison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants