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 V3RoleLinkType { 038 039 /** 040 * An action taken with respect to a subject Entity by a regulatory or authoritative body with supervisory capacity over that entity. The action is taken in response to behavior by the subject Entity that body finds to be undesirable. 041 042 Suspension, license restrictions, monetary fine, letter of reprimand, mandated training, mandated supervision, etc.Examples: 043 */ 044 REL, 045 /** 046 * This relationship indicates the source Role is available to the target Role as a backup. An entity in a backup role will be available as a substitute or replacement in the event that the entity assigned the role is unavailable. In medical roles where it is critical that the function be performed and there is a possibility that the individual assigned may be ill or otherwise indisposed, another individual is assigned to cover for the individual originally assigned the role. A backup may be required to be identified, but unless the backup is actually used, he/she would not assume the assigned entity role. 047 */ 048 BACKUP, 049 /** 050 * This relationship indicates the target Role provides or receives information regarding the target role. For example, AssignedEntity is a contact for a ServiceDeliveryLocation. 051 */ 052 CONT, 053 /** 054 * The source Role has direct authority over the target role in a chain of authority. 055 */ 056 DIRAUTH, 057 /** 058 * Description: The source role provides identification for the target role. The source role must be IDENT. The player entity of the source role is constrained to be the same as (i.e. the equivalent of, or equal to) the player of the target role if present. If the player is absent from the source role, then it is assumed to be the same as the player of the target role. 059 */ 060 IDENT, 061 /** 062 * The source Role has indirect authority over the target role in a chain of authority. 063 */ 064 INDAUTH, 065 /** 066 * The target Role is part of the Source Role. 067 */ 068 PART, 069 /** 070 * This relationship indicates that the source Role replaces (or subsumes) the target Role. Allows for new identifiers and/or new effective time for a registry entry or a certification, etc. 071 */ 072 REPL, 073 /** 074 * added to help the parsers 075 */ 076 NULL; 077 public static V3RoleLinkType fromCode(String codeString) throws FHIRException { 078 if (codeString == null || "".equals(codeString)) 079 return null; 080 if ("REL".equals(codeString)) 081 return REL; 082 if ("BACKUP".equals(codeString)) 083 return BACKUP; 084 if ("CONT".equals(codeString)) 085 return CONT; 086 if ("DIRAUTH".equals(codeString)) 087 return DIRAUTH; 088 if ("IDENT".equals(codeString)) 089 return IDENT; 090 if ("INDAUTH".equals(codeString)) 091 return INDAUTH; 092 if ("PART".equals(codeString)) 093 return PART; 094 if ("REPL".equals(codeString)) 095 return REPL; 096 throw new FHIRException("Unknown V3RoleLinkType code '"+codeString+"'"); 097 } 098 public String toCode() { 099 switch (this) { 100 case REL: return "REL"; 101 case BACKUP: return "BACKUP"; 102 case CONT: return "CONT"; 103 case DIRAUTH: return "DIRAUTH"; 104 case IDENT: return "IDENT"; 105 case INDAUTH: return "INDAUTH"; 106 case PART: return "PART"; 107 case REPL: return "REPL"; 108 default: return "?"; 109 } 110 } 111 public String getSystem() { 112 return "http://hl7.org/fhir/v3/RoleLinkType"; 113 } 114 public String getDefinition() { 115 switch (this) { 116 case REL: return "An action taken with respect to a subject Entity by a regulatory or authoritative body with supervisory capacity over that entity. The action is taken in response to behavior by the subject Entity that body finds to be undesirable.\r\n\n Suspension, license restrictions, monetary fine, letter of reprimand, mandated training, mandated supervision, etc.Examples:"; 117 case BACKUP: return "This relationship indicates the source Role is available to the target Role as a backup. An entity in a backup role will be available as a substitute or replacement in the event that the entity assigned the role is unavailable. In medical roles where it is critical that the function be performed and there is a possibility that the individual assigned may be ill or otherwise indisposed, another individual is assigned to cover for the individual originally assigned the role. A backup may be required to be identified, but unless the backup is actually used, he/she would not assume the assigned entity role."; 118 case CONT: return "This relationship indicates the target Role provides or receives information regarding the target role. For example, AssignedEntity is a contact for a ServiceDeliveryLocation."; 119 case DIRAUTH: return "The source Role has direct authority over the target role in a chain of authority."; 120 case IDENT: return "Description: The source role provides identification for the target role. The source role must be IDENT. The player entity of the source role is constrained to be the same as (i.e. the equivalent of, or equal to) the player of the target role if present. If the player is absent from the source role, then it is assumed to be the same as the player of the target role."; 121 case INDAUTH: return "The source Role has indirect authority over the target role in a chain of authority."; 122 case PART: return "The target Role is part of the Source Role."; 123 case REPL: return "This relationship indicates that the source Role replaces (or subsumes) the target Role. Allows for new identifiers and/or new effective time for a registry entry or a certification, etc."; 124 default: return "?"; 125 } 126 } 127 public String getDisplay() { 128 switch (this) { 129 case REL: return "related"; 130 case BACKUP: return "is backup for"; 131 case CONT: return "has contact"; 132 case DIRAUTH: return "has direct authority over"; 133 case IDENT: return "Identification"; 134 case INDAUTH: return "has indirect authority over"; 135 case PART: return "has part"; 136 case REPL: return "replaces"; 137 default: return "?"; 138 } 139 } 140 141 142} 143