This wiki has undergone a migration to Confluence found Here
<meta name="googlebot" content="noindex">

Datatypes R2 Issue 86

From HL7Wiki
Jump to navigation Jump to search

Introducting TS Datatype flavors

A number of affiliate apecifications use various constraints on the contents of TS. In addition, As a consequence of the proposal to add valueSet to ED, we have a requirement for a date only value in the abstract specification.

While it would be possible to have valueSetVersoin : TS and impose a constraint on the value ttribute, it would seem to serve reuse better to define the flavor in the specification itself so that it can be used everywhere, and so that the implementation is cleaner.

Proposed flavors:

TS.DATE: A Timestamp constrained to the date-only portion, allowing for partial dates. Grammar constrained to YYYY[MM[DD]]

TS.FULLDATE: A Timestamp constrained to the date-only portion, allowing only complete dates. Grammar constrained to YYYYMMDD

TS.DATETIME: A Timestamp constrained to time only down to seconds, allowing for partial dates and times. Grammar constrained to YYYY[MM[DD[hh[mm[ss]]]]][+/-ZZZZ]

TS.DATETIME: A Timestamp constrained to time only down to seconds, requiring a fully specified time. Grammar constrained to YYYYMMDDhhmmss+/-ZZZZ

Discussion

These aren't datatypes in their own right, but they are commonly used flavors. The other commonly used flavor is TS.BirthDate, which is either a year, a date (no time) or a time to the minute with a timezone.

Disposition

Links

Back to Data Types R2 issues