-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Instead of Age just a string. I would suggest we leverage what we had for the eCVI – and change it a bit. Instead of:
< xs:attribute name="Age" use="optional" type="xs:string" />
Can we have:
< xs:attribute name="Age" use="optional" type="AgeType" />
< xs:attribute name="DOB" use="optional" type="DOBType" />
Defined as:
< xs:simpleType name="AgeType">
< xs:annotation>
< xs:documentation>This can be an age specified as a number of days, weeks, months or years (suffixed with d, wk, mo or a to designate which)
The age definitions adhere to UCUM - http://unitsofmeasure.org/ucum.html/xs:documentation
< /xs:annotation>
< xs:restriction base="xs:string">
< xs:pattern value="[0-9]{1,2}(d|wk|mo|a)"/>
< /xs:restriction>
< /xs:simpleType>
< xs:simpleType name="DOBType">
< xs:annotation>
< xs:documentation>date of birth specified as "YYYY-MM-DD"< /xs:documentation>
< /xs:annotation>
< xs:restriction base="xs:string">
< xs:pattern value="(19|20)\d\d-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])"/>
< /xs:restriction>
< /xs:simpleType>