Skip to content

renalreg/ukrr_models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

125 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Issues MIT License


UKRR Models

About The Project

A limited set of database models for the RR database

Usage

poetry add ukrr_models

Built With

SQLAlchemy

Utils quick guide

Deleting patient

Delete patient with the specified rr_no from the database.

python ukrr_models/utils.py delete --rrno {rr_no} --username {username} --authorised-by {authorised_by} --reason {reason}

Merge patient

Move entries in the table for one patient into another.

python ukrr_models/utils.py merge --rrno 123456789 --destination-rrno 123456790

Undelete patient

Check DELETED_PATIENTS table and re-construct the deleted patient back using data in the AUDIT tables.

python ukrr_models/utils.py undelete --rrno 123456789 --update

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Renal Registry

Project Link - https://github.com/renalreg/ukrr_models


(back to top)

About

SQL Alchemy models for the UKRR Database. Also exports to RDA.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages