001package org.hl7.fhir.dstu2016may.model.codesystems; 002 003 004 005 006/* 007 Copyright (c) 2011+, HL7, Inc. 008 All rights reserved. 009 010 Redistribution and use in source and binary forms, with or without modification, 011 are permitted provided that the following conditions are met: 012 013 * Redistributions of source code must retain the above copyright notice, this 014 list of conditions and the following disclaimer. 015 * Redistributions in binary form must reproduce the above copyright notice, 016 this list of conditions and the following disclaimer in the documentation 017 and/or other materials provided with the distribution. 018 * Neither the name of HL7 nor the names of its contributors may be used to 019 endorse or promote products derived from this software without specific 020 prior written permission. 021 022 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 023 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 024 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 025 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 026 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 027 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 028 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 029 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 030 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 031 POSSIBILITY OF SUCH DAMAGE. 032 033*/ 034 035// Generated on Sun, May 8, 2016 03:05+1000 for FHIR v1.4.0 036 037 038import org.hl7.fhir.exceptions.FHIRException; 039 040public enum ModuleMetadataResourceType { 041 042 /** 043 * Additional documentation for the module. This would include additional instructions on usage as well additional information on clinical context or appropriateness 044 */ 045 DOCUMENTATION, 046 /** 047 * A summary of the justification for the artifact including supporting evidence, relevant guidelines, or other clinically important information. This information is intended to provide a way to make the justification for the module available to the consumer of interventions or results produced by the artifact 048 */ 049 JUSTIFICATION, 050 /** 051 * Bibliographic citation for papers, references, or other relevant material for the module. This is intended to allow for citation of related material, but that was not necessarily specifically prepared in connection with this module 052 */ 053 CITATION, 054 /** 055 * The previous version of the module 056 */ 057 PREDECESSOR, 058 /** 059 * The next version of the module 060 */ 061 SUCCESSOR, 062 /** 063 * The module is derived from the resource. This is intended to capture the relationship when a particular module is based on the content of another module, but is modified to capture either a different set of overall requirements, or a more specific set of requirements such as those involved in a particular institution or clinical setting 064 */ 065 DERIVEDFROM, 066 /** 067 * added to help the parsers 068 */ 069 NULL; 070 public static ModuleMetadataResourceType fromCode(String codeString) throws FHIRException { 071 if (codeString == null || "".equals(codeString)) 072 return null; 073 if ("documentation".equals(codeString)) 074 return DOCUMENTATION; 075 if ("justification".equals(codeString)) 076 return JUSTIFICATION; 077 if ("citation".equals(codeString)) 078 return CITATION; 079 if ("predecessor".equals(codeString)) 080 return PREDECESSOR; 081 if ("successor".equals(codeString)) 082 return SUCCESSOR; 083 if ("derived-from".equals(codeString)) 084 return DERIVEDFROM; 085 throw new FHIRException("Unknown ModuleMetadataResourceType code '"+codeString+"'"); 086 } 087 public String toCode() { 088 switch (this) { 089 case DOCUMENTATION: return "documentation"; 090 case JUSTIFICATION: return "justification"; 091 case CITATION: return "citation"; 092 case PREDECESSOR: return "predecessor"; 093 case SUCCESSOR: return "successor"; 094 case DERIVEDFROM: return "derived-from"; 095 case NULL: return null; 096 default: return "?"; 097 } 098 } 099 public String getSystem() { 100 return "http://hl7.org/fhir/module-metadata-resource-type"; 101 } 102 public String getDefinition() { 103 switch (this) { 104 case DOCUMENTATION: return "Additional documentation for the module. This would include additional instructions on usage as well additional information on clinical context or appropriateness"; 105 case JUSTIFICATION: return "A summary of the justification for the artifact including supporting evidence, relevant guidelines, or other clinically important information. This information is intended to provide a way to make the justification for the module available to the consumer of interventions or results produced by the artifact"; 106 case CITATION: return "Bibliographic citation for papers, references, or other relevant material for the module. This is intended to allow for citation of related material, but that was not necessarily specifically prepared in connection with this module"; 107 case PREDECESSOR: return "The previous version of the module"; 108 case SUCCESSOR: return "The next version of the module"; 109 case DERIVEDFROM: return "The module is derived from the resource. This is intended to capture the relationship when a particular module is based on the content of another module, but is modified to capture either a different set of overall requirements, or a more specific set of requirements such as those involved in a particular institution or clinical setting"; 110 case NULL: return null; 111 default: return "?"; 112 } 113 } 114 public String getDisplay() { 115 switch (this) { 116 case DOCUMENTATION: return "Documentation"; 117 case JUSTIFICATION: return "Justification"; 118 case CITATION: return "Citation"; 119 case PREDECESSOR: return "Predecessor"; 120 case SUCCESSOR: return "Successor"; 121 case DERIVEDFROM: return "Derived From"; 122 case NULL: return null; 123 default: return "?"; 124 } 125 } 126 127 128}