Hands-On Healthcare Data by Andrew Nguyen
Author:Andrew Nguyen [Andrew Nguyen]
Language: eng
Format: epub
Publisher: O'Reilly Media, Inc.
Published: 2022-08-15T00:00:00+00:00
Example 4-14. TypeDB Schema for Prescriptions
prescription sub relation, relates patient, relates prescribed_drug, owns startdate, owns enddate; druginstance sub entity, plays prescription:prescribed_drug, owns startdate, owns enddate, owns drug_type, owns drug, owns drug_name_poe, owns drug_name_generic, owns formulary_drug_cd, owns gsn, owns ndc, owns prod_strength, owns dose_val_rx, owns dose_unit_rx, owns form_val_disp, owns form_unit_disp, owns route;
Iâve split the original definition of the PRESCRIPTIONS table into an entity and a relation. The druginstance entity captures all of the drug information (e.g., name, dose, route, etc.) while the prescription relation captures the details of the prescription itself. Within the relation, we define two roles: patient and prescribed_drug. Roles allow TypeDB to capture and model an additional layer of contextâthe role that an entity plays within a particular relation.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Ultimate Bodybuilding Cookbook by Kendall Lou Schmidt(3680)
Warrior Workouts, Volume 2 by Stewart Smith(2466)
The Right Way to Do Wrong by Harry Houdini(1824)
10% Happier by Dan Harris(1643)
The Doctors Book of Home Remedies by Prevention Magazine Editors(1436)
Steroids: History, Science, and Issues by Standora Joan E.; Bogomolnik Alex; Slugocki Malgorzata(1406)
The Monk Who Sold His Ferrari by ROBIN SHARMA(1377)
The 7 Principles of Stress by Ori Hofmekler(1320)
The Dangerous Case of Donald Trump by Bandy X. Lee(1270)
Spiritual Midwifery by Ina May Gaskin(1262)
Complete Guide to Prescription & Nonprescription Drugs 2014 by H. Winter Griffith(1261)
Joey Green's Magic Health Remedies by Joey Green(1252)
The Ins and Outs of Gay Sex by Stephen E. Goldstone(1242)
Massage Anatomy by Abigail Ellsworth(1180)
Anatomy of the Moving Body by Theodore Dimon Jr(1175)
First Aid for Colleges and Universities (10th Edition) by Mistovich Joseph J. & Limmer Daniel J. & Karren Keith J. & Hafen Brent Q(1172)
The Anatomy of Sports Injuries by Brad Walker(1120)
The Ayurveda Encyclopedia by Swami Sadashiva Tirtha(1111)
Why Do Men Fall Asleep After Sex? by Mark Leyner(1002)
