Permalink
Browse files

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

…actly as

found in the CDA.
  • Loading branch information...
1 parent 688730b commit 4ceb20fb3ced940d685638daef205552e48bdf55 @pbugni committed Mar 30, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 cds/database/cds.sql
  2. +2 −1 cds/database/mcds.sql
View
@@ -29,7 +29,8 @@ CREATE TABLE `cda` (
`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',
- `birthdate` date COMMENT 'date of birth following MOH guidance',
+ `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',
`source_system` varchar(64) DEFAULT NULL,
View
@@ -29,7 +29,8 @@ CREATE TABLE `cda` (
`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',
- `birthdate` date COMMENT 'date of birth following MOH guidance',
+ `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',
`source_system` varchar(64) DEFAULT NULL,

0 comments on commit 4ceb20f

Please sign in to comment.