Data Types

Clinia defines a type-system that is at the core of how resources are modelled and processed. Data types define both the underlying attributes and types of properties that make up resources and relationships

Data types are grouped into two categories:

  1. Primitive types, which are single elements with a primitive value
  2. General-purpose complex types, which are re-usable clusters of elements

Primitive Types

Data TypeDescription
booleanValue of true or false.
codeA string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents.
dateA date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates.
datetimeA date, date-time or partial date (e.g. just year or year + month).
decimalA rational number with implicit precision.
instantAn instant in time - known at least to the second.
integerA whole number.
markdownA string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine.
symbolA sequence of Unicode characters.
timeA time during the day, with no date specified.
uriString of characters used to identify a name or a resource.
urlA URI that is a literal reference.
xhtmlxhtml - escaped html (see specification)

General-Purpose Complex Types

Data TypeDescription
addressAn address expressed using postal conventions (as opposed to GPS or other location definition formats).
attachmentContent in a format defined elsewhere.
codingA reference to a code defined by a terminology system.
contactdetailGeneral contact details.
contactpointDetails for all kinds of technology-mediated contact points for a person or organization, including telephone, email, etc.
geopointA location expressed using the geographic coordinate system (GCS) composed of a longitude and latitude component.
humannameA human's name with the ability to identify parts and usage.
identifierAn identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers.
periodA time period defined by a start and end date/time.
referenceA reference to another resource, internal or external to the system.