Skip to content

Loading…

cds schema change - two DOB fields. #66

Merged
merged 1 commit into from

1 participant

@pbugni

No description provided.

@pbugni pbugni merged commit cc62dc9 into I-TECH:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 30, 2012
  1. @pbugni

    Two date of birth fields - one conforming to the MOH standard, one ex…

    pbugni committed
    …actly as
    
    found in the CDA.
Showing with 4 additions and 2 deletions.
  1. +2 −1 cds/database/cds.sql
  2. +2 −1 cds/database/mcds.sql
View
3 cds/database/cds.sql
@@ -29,7 +29,8 @@ CREATE TABLE `cda` (
`facility_name` varchar(100) DEFAULT NULL COMMENT 'name of the facility',
`cda` longtext COMMENT 'summarized patient information',
`first_name` varchar(64) DEFAULT NULL COMMENT 'patient''s first name',
- `last_name` varchar(64) DEFAULT NULL COMMENT 'patient''s last name',
+ `last_name` varchar(64) DEFAULT NULL COMMENT 'patient''s last name',
+ `cda_dob` varchar(8) COMMENT 'date of birth as defined in the cda',
`moh_dob` date COMMENT 'date of birth following MOH guidance',
`gender` ENUM ('M', 'F', 'U', 'N') DEFAULT 'N' COMMENT '''M'' (male), ''F'' (female), ''U'' (undifferentiated) and ''N'' (nullFlavor/unknown)',
`source_type` varchar(25) DEFAULT NULL COMMENT 'source of the document: EMR,LIS, Pharm etc',
View
3 cds/database/mcds.sql
@@ -29,7 +29,8 @@ CREATE TABLE `cda` (
`facility_name` varchar(100) DEFAULT NULL COMMENT 'name of the facility',
`cda` longtext COMMENT 'summarized patient information',
`first_name` varchar(64) DEFAULT NULL COMMENT 'patient''s first name',
- `last_name` varchar(64) DEFAULT NULL COMMENT 'patient''s last name',
+ `last_name` varchar(64) DEFAULT NULL COMMENT 'patient''s last name',
+ `cda_dob` varchar(8) COMMENT 'date of birth as defined in the cda',
`moh_dob` date COMMENT 'date of birth following MOH guidance',
`gender` ENUM ('M', 'F', 'U', 'N') DEFAULT 'N' COMMENT '''M'' (male), ''F'' (female), ''U'' (undifferentiated) and ''N'' (nullFlavor/unknown)',
`source_type` varchar(25) DEFAULT NULL COMMENT 'source of the document: EMR,LIS, Pharm etc',
Something went wrong with that request. Please try again.