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 Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0 033 034import org.hl7.fhir.exceptions.FHIRException; 035 036public enum ContractContentDerivative { 037 038 /** 039 * Content derivative that conveys sufficient information needed to register the 040 * source basal content from which it is derived. This derivative content may be 041 * used to register the basal content as it changes status in its lifecycle. For 042 * example, content registration may occur when the basal content is created, 043 * updated, inactive, or deleted. 044 */ 045 REGISTRATION, 046 /** 047 * A content derivative that conveys sufficient information to locate and 048 * retrieve the content. 049 */ 050 RETRIEVAL, 051 /** 052 * Content derivative that has less than full fidelity to the basal information 053 * source from which it was 'transcribed'. It provides recipients with the full 054 * content representation they may require for compliance purposes, and 055 * typically include a reference to or an attached unstructured representation 056 * for recipients needing an exact copy of the legal agreement. 057 */ 058 STATEMENT, 059 /** 060 * A Content Derivative that conveys sufficient information to determine the 061 * authorized entities with which the content may be shared. 062 */ 063 SHAREABLE, 064 /** 065 * added to help the parsers 066 */ 067 NULL; 068 069 public static ContractContentDerivative fromCode(String codeString) throws FHIRException { 070 if (codeString == null || "".equals(codeString)) 071 return null; 072 if ("registration".equals(codeString)) 073 return REGISTRATION; 074 if ("retrieval".equals(codeString)) 075 return RETRIEVAL; 076 if ("statement".equals(codeString)) 077 return STATEMENT; 078 if ("shareable".equals(codeString)) 079 return SHAREABLE; 080 throw new FHIRException("Unknown ContractContentDerivative code '" + codeString + "'"); 081 } 082 083 public String toCode() { 084 switch (this) { 085 case REGISTRATION: 086 return "registration"; 087 case RETRIEVAL: 088 return "retrieval"; 089 case STATEMENT: 090 return "statement"; 091 case SHAREABLE: 092 return "shareable"; 093 case NULL: 094 return null; 095 default: 096 return "?"; 097 } 098 } 099 100 public String getSystem() { 101 return "http://terminology.hl7.org/CodeSystem/contract-content-derivative"; 102 } 103 104 public String getDefinition() { 105 switch (this) { 106 case REGISTRATION: 107 return "Content derivative that conveys sufficient information needed to register the source basal content from which it is derived. This derivative content may be used to register the basal content as it changes status in its lifecycle. For example, content registration may occur when the basal content is created, updated, inactive, or deleted."; 108 case RETRIEVAL: 109 return "A content derivative that conveys sufficient information to locate and retrieve the content."; 110 case STATEMENT: 111 return "Content derivative that has less than full fidelity to the basal information source from which it was 'transcribed'. It provides recipients with the full content representation they may require for compliance purposes, and typically include a reference to or an attached unstructured representation for recipients needing an exact copy of the legal agreement."; 112 case SHAREABLE: 113 return "A Content Derivative that conveys sufficient information to determine the authorized entities with which the content may be shared."; 114 case NULL: 115 return null; 116 default: 117 return "?"; 118 } 119 } 120 121 public String getDisplay() { 122 switch (this) { 123 case REGISTRATION: 124 return "Content Registration"; 125 case RETRIEVAL: 126 return "Content Retrieval"; 127 case STATEMENT: 128 return "Content Statement"; 129 case SHAREABLE: 130 return "Shareable Content"; 131 case NULL: 132 return null; 133 default: 134 return "?"; 135 } 136 } 137 138}