001package org.hl7.fhir.r5.model.codesystems;
002
003/*
004 * #%L
005 * org.hl7.fhir.r5
006 * %%
007 * Copyright (C) 2014 - 2019 Health Level 7
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023/*
024  Copyright (c) 2011+, HL7, Inc.
025  All rights reserved.
026  
027  Redistribution and use in source and binary forms, with or without modification, 
028  are permitted provided that the following conditions are met:
029  
030   * Redistributions of source code must retain the above copyright notice, this 
031     list of conditions and the following disclaimer.
032   * Redistributions in binary form must reproduce the above copyright notice, 
033     this list of conditions and the following disclaimer in the documentation 
034     and/or other materials provided with the distribution.
035   * Neither the name of HL7 nor the names of its contributors may be used to 
036     endorse or promote products derived from this software without specific 
037     prior written permission.
038  
039  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
040  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
041  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
042  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
043  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
044  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
045  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
046  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
047  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
048  POSSIBILITY OF SUCH DAMAGE.
049  
050*/
051
052// Generated on Thu, Oct 17, 2019 09:42+1100 for FHIR v4.1.0
053
054
055import org.hl7.fhir.exceptions.FHIRException;
056
057public enum DataTypes {
058
059        /**
060         * An address expressed using postal conventions (as opposed to GPS or other location definition formats).  This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery.  There are a variety of postal address formats defined around the world.
061         */
062        ADDRESS, 
063        /**
064         * A duration of time during which an organism (or a process) has existed.
065         */
066        AGE, 
067        /**
068         * A  text note which also  contains information about who made the statement and when.
069         */
070        ANNOTATION, 
071        /**
072         * For referring to data content defined in other formats.
073         */
074        ATTACHMENT, 
075        /**
076         * Base definition for all elements that are defined inside a resource - but not those in a data type.
077         */
078        BACKBONEELEMENT, 
079        /**
080         * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.
081         */
082        CODEABLECONCEPT, 
083        /**
084         * A reference to a code defined by a terminology system.
085         */
086        CODING, 
087        /**
088         * Specifies contact information for a person or organization.
089         */
090        CONTACTDETAIL, 
091        /**
092         * Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc.
093         */
094        CONTACTPOINT, 
095        /**
096         * A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers.
097         */
098        CONTRIBUTOR, 
099        /**
100         * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
101         */
102        COUNT, 
103        /**
104         * Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data.
105         */
106        DATAREQUIREMENT, 
107        /**
108         * A length - a value with a unit that is a physical distance.
109         */
110        DISTANCE, 
111        /**
112         * Indicates how the medication is/was taken or should be taken by the patient.
113         */
114        DOSAGE, 
115        /**
116         * A length of time.
117         */
118        DURATION, 
119        /**
120         * Base definition for all elements in a resource.
121         */
122        ELEMENT, 
123        /**
124         * Captures constraints on each element within the resource, profile, or extension.
125         */
126        ELEMENTDEFINITION, 
127        /**
128         * A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used.
129         */
130        EXPRESSION, 
131        /**
132         * Optional Extension Element - found in all resources.
133         */
134        EXTENSION, 
135        /**
136         * A human's name with the ability to identify parts and usage.
137         */
138        HUMANNAME, 
139        /**
140         * An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers.
141         */
142        IDENTIFIER, 
143        /**
144         * The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available.
145         */
146        MARKETINGSTATUS, 
147        /**
148         * The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
149         */
150        META, 
151        /**
152         * An amount of economic utility in some recognized currency.
153         */
154        MONEY, 
155        /**
156         * null
157         */
158        MONEYQUANTITY, 
159        /**
160         * A human-readable summary of the resource conveying the essential clinical and business information for the resource.
161         */
162        NARRATIVE, 
163        /**
164         * An ordered list (distribution) of statistics.
165         */
166        ORDEREDDISTRIBUTION, 
167        /**
168         * The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse.
169         */
170        PARAMETERDEFINITION, 
171        /**
172         * A time period defined by a start and end date and optionally time.
173         */
174        PERIOD, 
175        /**
176         * A populatioof people with some set of grouping criteria.
177         */
178        POPULATION, 
179        /**
180         * The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available.
181         */
182        PRODCHARACTERISTIC, 
183        /**
184         * The shelf-life and storage information for a medicinal product item or container can be described using this class.
185         */
186        PRODUCTSHELFLIFE, 
187        /**
188         * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
189         */
190        QUANTITY, 
191        /**
192         * A set of ordered Quantities defined by a low and high limit.
193         */
194        RANGE, 
195        /**
196         * A relationship of two Quantity values - expressed as a numerator and a denominator.
197         */
198        RATIO, 
199        /**
200         * A reference from one resource to another.
201         */
202        REFERENCE, 
203        /**
204         * Related artifacts such as additional documentation, justification, or bibliographic references.
205         */
206        RELATEDARTIFACT, 
207        /**
208         * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data.
209         */
210        SAMPLEDDATA, 
211        /**
212         * A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities.
213         */
214        SIGNATURE, 
215        /**
216         * null
217         */
218        SIMPLEQUANTITY, 
219        /**
220         * A fact or piece of data from a  study of a large quantity of numerical data.  A mathematical or quantified characteristic of a group of observations.
221         */
222        STATISTIC, 
223        /**
224         * Chemical substances are a single substance type whose primary defining element is the molecular structure. Chemical substances shall be defined on the basis of their complete covalent molecular structure; the presence of a salt (counter-ion) and/or solvates (water, alcohols) is also captured. Purity, grade, physical form or particle size are not taken into account in the definition of a chemical substance or in the assignment of a Substance ID.
225         */
226        SUBSTANCEAMOUNT, 
227        /**
228         * Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out.
229         */
230        TIMING, 
231        /**
232         * A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element.
233         */
234        TRIGGERDEFINITION, 
235        /**
236         * Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care).
237         */
238        USAGECONTEXT, 
239        /**
240         * A stream of bytes
241         */
242        BASE64BINARY, 
243        /**
244         * Value of "true" or "false"
245         */
246        BOOLEAN, 
247        /**
248         * A URI that is a reference to a canonical URL on a FHIR resource
249         */
250        CANONICAL, 
251        /**
252         * A 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
253         */
254        CODE, 
255        /**
256         * A 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.
257         */
258        DATE, 
259        /**
260         * A date, date-time or partial date (e.g. just year or year + month).  If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored.                 Dates SHALL be valid dates.
261         */
262        DATETIME, 
263        /**
264         * A rational number with implicit precision
265         */
266        DECIMAL, 
267        /**
268         * Any combination of letters, numerals, "-" and ".", with a length limit of 64 characters.  (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.)  Ids are case-insensitive.
269         */
270        ID, 
271        /**
272         * An instant in time - known at least to the second
273         */
274        INSTANT, 
275        /**
276         * A whole number
277         */
278        INTEGER, 
279        /**
280         * A string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine
281         */
282        MARKDOWN, 
283        /**
284         * An OID represented as a URI
285         */
286        OID, 
287        /**
288         * An integer with a value that is positive (e.g. >0)
289         */
290        POSITIVEINT, 
291        /**
292         * A sequence of Unicode characters
293         */
294        STRING, 
295        /**
296         * A time during the day, with no date specified
297         */
298        TIME, 
299        /**
300         * An integer with a value that is not negative (e.g. >= 0)
301         */
302        UNSIGNEDINT, 
303        /**
304         * String of characters used to identify a name or a resource
305         */
306        URI, 
307        /**
308         * A URI that is a literal reference
309         */
310        URL, 
311        /**
312         * A UUID, represented as a URI
313         */
314        UUID, 
315        /**
316         * XHTML format, as defined by W3C, but restricted usage (mainly, no active content)
317         */
318        XHTML, 
319        /**
320         * added to help the parsers
321         */
322        NULL;
323        public static DataTypes fromCode(String codeString) throws FHIRException {
324            if (codeString == null || "".equals(codeString))
325                return null;
326        if ("Address".equals(codeString))
327          return ADDRESS;
328        if ("Age".equals(codeString))
329          return AGE;
330        if ("Annotation".equals(codeString))
331          return ANNOTATION;
332        if ("Attachment".equals(codeString))
333          return ATTACHMENT;
334        if ("BackboneElement".equals(codeString))
335          return BACKBONEELEMENT;
336        if ("CodeableConcept".equals(codeString))
337          return CODEABLECONCEPT;
338        if ("Coding".equals(codeString))
339          return CODING;
340        if ("ContactDetail".equals(codeString))
341          return CONTACTDETAIL;
342        if ("ContactPoint".equals(codeString))
343          return CONTACTPOINT;
344        if ("Contributor".equals(codeString))
345          return CONTRIBUTOR;
346        if ("Count".equals(codeString))
347          return COUNT;
348        if ("DataRequirement".equals(codeString))
349          return DATAREQUIREMENT;
350        if ("Distance".equals(codeString))
351          return DISTANCE;
352        if ("Dosage".equals(codeString))
353          return DOSAGE;
354        if ("Duration".equals(codeString))
355          return DURATION;
356        if ("Element".equals(codeString))
357          return ELEMENT;
358        if ("ElementDefinition".equals(codeString))
359          return ELEMENTDEFINITION;
360        if ("Expression".equals(codeString))
361          return EXPRESSION;
362        if ("Extension".equals(codeString))
363          return EXTENSION;
364        if ("HumanName".equals(codeString))
365          return HUMANNAME;
366        if ("Identifier".equals(codeString))
367          return IDENTIFIER;
368        if ("MarketingStatus".equals(codeString))
369          return MARKETINGSTATUS;
370        if ("Meta".equals(codeString))
371          return META;
372        if ("Money".equals(codeString))
373          return MONEY;
374        if ("MoneyQuantity".equals(codeString))
375          return MONEYQUANTITY;
376        if ("Narrative".equals(codeString))
377          return NARRATIVE;
378        if ("OrderedDistribution".equals(codeString))
379          return ORDEREDDISTRIBUTION;
380        if ("ParameterDefinition".equals(codeString))
381          return PARAMETERDEFINITION;
382        if ("Period".equals(codeString))
383          return PERIOD;
384        if ("Population".equals(codeString))
385          return POPULATION;
386        if ("ProdCharacteristic".equals(codeString))
387          return PRODCHARACTERISTIC;
388        if ("ProductShelfLife".equals(codeString))
389          return PRODUCTSHELFLIFE;
390        if ("Quantity".equals(codeString))
391          return QUANTITY;
392        if ("Range".equals(codeString))
393          return RANGE;
394        if ("Ratio".equals(codeString))
395          return RATIO;
396        if ("Reference".equals(codeString))
397          return REFERENCE;
398        if ("RelatedArtifact".equals(codeString))
399          return RELATEDARTIFACT;
400        if ("SampledData".equals(codeString))
401          return SAMPLEDDATA;
402        if ("Signature".equals(codeString))
403          return SIGNATURE;
404        if ("SimpleQuantity".equals(codeString))
405          return SIMPLEQUANTITY;
406        if ("Statistic".equals(codeString))
407          return STATISTIC;
408        if ("SubstanceAmount".equals(codeString))
409          return SUBSTANCEAMOUNT;
410        if ("Timing".equals(codeString))
411          return TIMING;
412        if ("TriggerDefinition".equals(codeString))
413          return TRIGGERDEFINITION;
414        if ("UsageContext".equals(codeString))
415          return USAGECONTEXT;
416        if ("base64Binary".equals(codeString))
417          return BASE64BINARY;
418        if ("boolean".equals(codeString))
419          return BOOLEAN;
420        if ("canonical".equals(codeString))
421          return CANONICAL;
422        if ("code".equals(codeString))
423          return CODE;
424        if ("date".equals(codeString))
425          return DATE;
426        if ("dateTime".equals(codeString))
427          return DATETIME;
428        if ("decimal".equals(codeString))
429          return DECIMAL;
430        if ("id".equals(codeString))
431          return ID;
432        if ("instant".equals(codeString))
433          return INSTANT;
434        if ("integer".equals(codeString))
435          return INTEGER;
436        if ("markdown".equals(codeString))
437          return MARKDOWN;
438        if ("oid".equals(codeString))
439          return OID;
440        if ("positiveInt".equals(codeString))
441          return POSITIVEINT;
442        if ("string".equals(codeString))
443          return STRING;
444        if ("time".equals(codeString))
445          return TIME;
446        if ("unsignedInt".equals(codeString))
447          return UNSIGNEDINT;
448        if ("uri".equals(codeString))
449          return URI;
450        if ("url".equals(codeString))
451          return URL;
452        if ("uuid".equals(codeString))
453          return UUID;
454        if ("xhtml".equals(codeString))
455          return XHTML;
456        throw new FHIRException("Unknown DataTypes code '"+codeString+"'");
457        }
458        public String toCode() {
459          switch (this) {
460            case ADDRESS: return "Address";
461            case AGE: return "Age";
462            case ANNOTATION: return "Annotation";
463            case ATTACHMENT: return "Attachment";
464            case BACKBONEELEMENT: return "BackboneElement";
465            case CODEABLECONCEPT: return "CodeableConcept";
466            case CODING: return "Coding";
467            case CONTACTDETAIL: return "ContactDetail";
468            case CONTACTPOINT: return "ContactPoint";
469            case CONTRIBUTOR: return "Contributor";
470            case COUNT: return "Count";
471            case DATAREQUIREMENT: return "DataRequirement";
472            case DISTANCE: return "Distance";
473            case DOSAGE: return "Dosage";
474            case DURATION: return "Duration";
475            case ELEMENT: return "Element";
476            case ELEMENTDEFINITION: return "ElementDefinition";
477            case EXPRESSION: return "Expression";
478            case EXTENSION: return "Extension";
479            case HUMANNAME: return "HumanName";
480            case IDENTIFIER: return "Identifier";
481            case MARKETINGSTATUS: return "MarketingStatus";
482            case META: return "Meta";
483            case MONEY: return "Money";
484            case MONEYQUANTITY: return "MoneyQuantity";
485            case NARRATIVE: return "Narrative";
486            case ORDEREDDISTRIBUTION: return "OrderedDistribution";
487            case PARAMETERDEFINITION: return "ParameterDefinition";
488            case PERIOD: return "Period";
489            case POPULATION: return "Population";
490            case PRODCHARACTERISTIC: return "ProdCharacteristic";
491            case PRODUCTSHELFLIFE: return "ProductShelfLife";
492            case QUANTITY: return "Quantity";
493            case RANGE: return "Range";
494            case RATIO: return "Ratio";
495            case REFERENCE: return "Reference";
496            case RELATEDARTIFACT: return "RelatedArtifact";
497            case SAMPLEDDATA: return "SampledData";
498            case SIGNATURE: return "Signature";
499            case SIMPLEQUANTITY: return "SimpleQuantity";
500            case STATISTIC: return "Statistic";
501            case SUBSTANCEAMOUNT: return "SubstanceAmount";
502            case TIMING: return "Timing";
503            case TRIGGERDEFINITION: return "TriggerDefinition";
504            case USAGECONTEXT: return "UsageContext";
505            case BASE64BINARY: return "base64Binary";
506            case BOOLEAN: return "boolean";
507            case CANONICAL: return "canonical";
508            case CODE: return "code";
509            case DATE: return "date";
510            case DATETIME: return "dateTime";
511            case DECIMAL: return "decimal";
512            case ID: return "id";
513            case INSTANT: return "instant";
514            case INTEGER: return "integer";
515            case MARKDOWN: return "markdown";
516            case OID: return "oid";
517            case POSITIVEINT: return "positiveInt";
518            case STRING: return "string";
519            case TIME: return "time";
520            case UNSIGNEDINT: return "unsignedInt";
521            case URI: return "uri";
522            case URL: return "url";
523            case UUID: return "uuid";
524            case XHTML: return "xhtml";
525            default: return "?";
526          }
527        }
528        public String getSystem() {
529          return "http://hl7.org/fhir/data-types";
530        }
531        public String getDefinition() {
532          switch (this) {
533            case ADDRESS: return "An address expressed using postal conventions (as opposed to GPS or other location definition formats).  This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery.  There are a variety of postal address formats defined around the world.";
534            case AGE: return "A duration of time during which an organism (or a process) has existed.";
535            case ANNOTATION: return "A  text note which also  contains information about who made the statement and when.";
536            case ATTACHMENT: return "For referring to data content defined in other formats.";
537            case BACKBONEELEMENT: return "Base definition for all elements that are defined inside a resource - but not those in a data type.";
538            case CODEABLECONCEPT: return "A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.";
539            case CODING: return "A reference to a code defined by a terminology system.";
540            case CONTACTDETAIL: return "Specifies contact information for a person or organization.";
541            case CONTACTPOINT: return "Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc.";
542            case CONTRIBUTOR: return "A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers.";
543            case COUNT: return "A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.";
544            case DATAREQUIREMENT: return "Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data.";
545            case DISTANCE: return "A length - a value with a unit that is a physical distance.";
546            case DOSAGE: return "Indicates how the medication is/was taken or should be taken by the patient.";
547            case DURATION: return "A length of time.";
548            case ELEMENT: return "Base definition for all elements in a resource.";
549            case ELEMENTDEFINITION: return "Captures constraints on each element within the resource, profile, or extension.";
550            case EXPRESSION: return "A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used.";
551            case EXTENSION: return "Optional Extension Element - found in all resources.";
552            case HUMANNAME: return "A human's name with the ability to identify parts and usage.";
553            case IDENTIFIER: return "An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers.";
554            case MARKETINGSTATUS: return "The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available.";
555            case META: return "The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.";
556            case MONEY: return "An amount of economic utility in some recognized currency.";
557            case MONEYQUANTITY: return "";
558            case NARRATIVE: return "A human-readable summary of the resource conveying the essential clinical and business information for the resource.";
559            case ORDEREDDISTRIBUTION: return "An ordered list (distribution) of statistics.";
560            case PARAMETERDEFINITION: return "The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse.";
561            case PERIOD: return "A time period defined by a start and end date and optionally time.";
562            case POPULATION: return "A populatioof people with some set of grouping criteria.";
563            case PRODCHARACTERISTIC: return "The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available.";
564            case PRODUCTSHELFLIFE: return "The shelf-life and storage information for a medicinal product item or container can be described using this class.";
565            case QUANTITY: return "A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.";
566            case RANGE: return "A set of ordered Quantities defined by a low and high limit.";
567            case RATIO: return "A relationship of two Quantity values - expressed as a numerator and a denominator.";
568            case REFERENCE: return "A reference from one resource to another.";
569            case RELATEDARTIFACT: return "Related artifacts such as additional documentation, justification, or bibliographic references.";
570            case SAMPLEDDATA: return "A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data.";
571            case SIGNATURE: return "A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities.";
572            case SIMPLEQUANTITY: return "";
573            case STATISTIC: return "A fact or piece of data from a  study of a large quantity of numerical data.  A mathematical or quantified characteristic of a group of observations.";
574            case SUBSTANCEAMOUNT: return "Chemical substances are a single substance type whose primary defining element is the molecular structure. Chemical substances shall be defined on the basis of their complete covalent molecular structure; the presence of a salt (counter-ion) and/or solvates (water, alcohols) is also captured. Purity, grade, physical form or particle size are not taken into account in the definition of a chemical substance or in the assignment of a Substance ID.";
575            case TIMING: return "Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out.";
576            case TRIGGERDEFINITION: return "A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element.";
577            case USAGECONTEXT: return "Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care).";
578            case BASE64BINARY: return "A stream of bytes";
579            case BOOLEAN: return "Value of \"true\" or \"false\"";
580            case CANONICAL: return "A URI that is a reference to a canonical URL on a FHIR resource";
581            case CODE: return "A 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";
582            case DATE: return "A 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.";
583            case DATETIME: return "A date, date-time or partial date (e.g. just year or year + month).  If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored.                 Dates SHALL be valid dates.";
584            case DECIMAL: return "A rational number with implicit precision";
585            case ID: return "Any combination of letters, numerals, \"-\" and \".\", with a length limit of 64 characters.  (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.)  Ids are case-insensitive.";
586            case INSTANT: return "An instant in time - known at least to the second";
587            case INTEGER: return "A whole number";
588            case MARKDOWN: return "A string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine";
589            case OID: return "An OID represented as a URI";
590            case POSITIVEINT: return "An integer with a value that is positive (e.g. >0)";
591            case STRING: return "A sequence of Unicode characters";
592            case TIME: return "A time during the day, with no date specified";
593            case UNSIGNEDINT: return "An integer with a value that is not negative (e.g. >= 0)";
594            case URI: return "String of characters used to identify a name or a resource";
595            case URL: return "A URI that is a literal reference";
596            case UUID: return "A UUID, represented as a URI";
597            case XHTML: return "XHTML format, as defined by W3C, but restricted usage (mainly, no active content)";
598            default: return "?";
599          }
600        }
601        public String getDisplay() {
602          switch (this) {
603            case ADDRESS: return "Address";
604            case AGE: return "Age";
605            case ANNOTATION: return "Annotation";
606            case ATTACHMENT: return "Attachment";
607            case BACKBONEELEMENT: return "BackboneElement";
608            case CODEABLECONCEPT: return "CodeableConcept";
609            case CODING: return "Coding";
610            case CONTACTDETAIL: return "ContactDetail";
611            case CONTACTPOINT: return "ContactPoint";
612            case CONTRIBUTOR: return "Contributor";
613            case COUNT: return "Count";
614            case DATAREQUIREMENT: return "DataRequirement";
615            case DISTANCE: return "Distance";
616            case DOSAGE: return "Dosage";
617            case DURATION: return "Duration";
618            case ELEMENT: return "Element";
619            case ELEMENTDEFINITION: return "ElementDefinition";
620            case EXPRESSION: return "Expression";
621            case EXTENSION: return "Extension";
622            case HUMANNAME: return "HumanName";
623            case IDENTIFIER: return "Identifier";
624            case MARKETINGSTATUS: return "MarketingStatus";
625            case META: return "Meta";
626            case MONEY: return "Money";
627            case MONEYQUANTITY: return "MoneyQuantity";
628            case NARRATIVE: return "Narrative";
629            case ORDEREDDISTRIBUTION: return "OrderedDistribution";
630            case PARAMETERDEFINITION: return "ParameterDefinition";
631            case PERIOD: return "Period";
632            case POPULATION: return "Population";
633            case PRODCHARACTERISTIC: return "ProdCharacteristic";
634            case PRODUCTSHELFLIFE: return "ProductShelfLife";
635            case QUANTITY: return "Quantity";
636            case RANGE: return "Range";
637            case RATIO: return "Ratio";
638            case REFERENCE: return "Reference";
639            case RELATEDARTIFACT: return "RelatedArtifact";
640            case SAMPLEDDATA: return "SampledData";
641            case SIGNATURE: return "Signature";
642            case SIMPLEQUANTITY: return "SimpleQuantity";
643            case STATISTIC: return "Statistic";
644            case SUBSTANCEAMOUNT: return "SubstanceAmount";
645            case TIMING: return "Timing";
646            case TRIGGERDEFINITION: return "TriggerDefinition";
647            case USAGECONTEXT: return "UsageContext";
648            case BASE64BINARY: return "base64Binary";
649            case BOOLEAN: return "boolean";
650            case CANONICAL: return "canonical";
651            case CODE: return "code";
652            case DATE: return "date";
653            case DATETIME: return "dateTime";
654            case DECIMAL: return "decimal";
655            case ID: return "id";
656            case INSTANT: return "instant";
657            case INTEGER: return "integer";
658            case MARKDOWN: return "markdown";
659            case OID: return "oid";
660            case POSITIVEINT: return "positiveInt";
661            case STRING: return "string";
662            case TIME: return "time";
663            case UNSIGNEDINT: return "unsignedInt";
664            case URI: return "uri";
665            case URL: return "url";
666            case UUID: return "uuid";
667            case XHTML: return "XHTML";
668            default: return "?";
669          }
670    }
671
672
673}
674