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