Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the DEATH table #152

Open
calmacx opened this issue Jun 15, 2022 · 1 comment
Open

Implement the DEATH table #152

calmacx opened this issue Jun 15, 2022 · 1 comment
Assignees

Comments

@calmacx
Copy link
Contributor

calmacx commented Jun 15, 2022

No description provided.

@calmacx calmacx self-assigned this Jun 15, 2022
@calmacx
Copy link
Contributor Author

calmacx commented Jun 15, 2022

https://hdruk.github.io/CaRROT-Docs/CaRROT-CDM/CommonDataModel/

Steps to reproduce...

  1. ssh into the test-link [email protected]
  2. sudo -s; su - bcos_srv; datasettool2 export-form DEATH --database bclink
  3. extract from output
  4. create csv for these output in git add -f export-DEATH.csv
  5. use helper function to create new destination field templates
$ carrot generate cdm death 5.3.1
self.person_id = DestinationField(dtype="Integer", required=False , pk=True)
self.death_date = DestinationField(dtype="Date", required=False )
self.death_datetime = DestinationField(dtype="Timestamp", required=False )
self.death_type_concept_id = DestinationField(dtype="Integer", required=False )
self.cause_concept_id = DestinationField(dtype="Integer", required=False )
self.cause_source_value = DestinationField(dtype="Text50", required=False )
self.cause_source_concept_id = DestinationField(dtype="Integer", required=False )
  1. create cdm/objects/versions/v5_3_1/death.py
  2. update cdm/objects/versions/v5_3_1/__init__.py
  3. update cdm/decorators.py

@calmacx calmacx mentioned this issue Jun 15, 2022
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

No branches or pull requests

1 participant