Pack Year History Of Smoking
Min value = 1
Max value = 100
Ws_DTO
- rules that apply to all WS DTOs( data transfer object ), unless specifically stated otherwise.
id field
id value:
id == null OR == 0 : indicates a transient object that is not associated with a database record.
id > 0 : indicates the DTO is associated with a database record.
id < 0 : is illegal.
add/update record method behavior:
The input "id" field value affects the behavior of methods that adds or updates DB records:
If ( the value of id == 0 ) : the method will add a new record.
ElseIf ( the value of id > 0 ) : the method will update the existing record.
Else (the value of id < 0 ) : illegal value, the method will throw an error.
id field notNull
id value:
id == 0 : indicates a transient object that is not associated with a database record.
id > 0 : indicates the DTO is associated with a database record.
id < 0 : is illegal.
add/update record method behavior:
The input "id" field value affects the behavior of methods that adds or updates DB records:
If ( the value of id == 0 ) : the method will add a new record.
ElseIf ( the value of id > 0 ) : the method will update the existing record.
Else (the value of id < 0 ) : illegal value, the method will throw an error.
patientId field
The field represents the numeric part of the CTR "NationalId" identifier.
The patientId field is a system returned value field.
On input, if the patientId field is set, the input value will be ignored ( except for XSD data type validation ).
collectionDate field
The sample/result collection date and time.
format: see
Xml date/time format.
constraints: the date/time >= the date of birth AND the date/time <= than the current date/time.
dateUniqueInSet constraint
A date/time field of an object, the said object being part of a collection, is constrained to be unique within the collection.
Free format text, max L="Huge"
constraints: The text is saved as a "CLOB" and has a maximum size of (4 GB - 1).
Free format text, max L=25
constraints: The text has a maximum length of 25 characters.
Free format text, max L=50
constraints: The text has a maximum length of 50 characters.
Free format text, max L=70
constraints: The text has a maximum length of 70 characters.
Free format text, max L=100
constraints: The text has a maximum length of 100 characters.
Free format text, max L=200
constraints: The text has a maximum length of 200 characters.
Free format text, max L=500
constraints: The text has a maximum length of 500 characters.
Free format text, max L=1000
constraints: The text has a maximum length of 1000 characters.
Free format text, max L=2000
constraints: The text has a maximum length of 2000 characters.
Free format text, max L=8000
constraints: The text has a maximum length of 8000 characters.
XmlDateTime
format without time zone: "YYYY-MM-DDThh:mm:ss" where:
YYYY indicates the year
MM indicates the month
DD indicates the day
T indicates the start of the required time section
hh indicates the hour
mm indicates the minute
ss indicates the second
Note: All components are required see:
www.w3schools.com-xsd-schema_dtypes_date, DateTime data type.
format with time zone offset specified: "YYYY-MM-DDThh:mm:ss-hh:mm" where:
YYYY indicates the year
MM indicates the month
DD indicates the day
T indicates the start of the required time section
hh indicates the hour
mm indicates the minute
ss indicates the second
time zone offset:
+ or -
hh indicates the hour offset
mm indicates the minute offset
Note: All components are required see:
www.w3schools.com-xsd-schema_dtypes_date, Time Zones.