001package org.hl7.fhir.instance.model.valuesets;
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, Nov 11, 2015 10:54-0500 for FHIR v1.0.2
033
034
035public enum V3RoleLinkType {
036
037        /**
038         * 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.
039
040                        Suspension, license restrictions, monetary fine, letter of reprimand, mandated training, mandated supervision, etc.Examples:
041         */
042        REL, 
043        /**
044         * 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.
045         */
046        BACKUP, 
047        /**
048         * This relationship indicates the target Role provides or receives information regarding the target role.  For example, AssignedEntity is a contact for a ServiceDeliveryLocation.
049         */
050        CONT, 
051        /**
052         * The source Role has direct authority over the target role in a chain of authority.
053         */
054        DIRAUTH, 
055        /**
056         * 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.
057         */
058        IDENT, 
059        /**
060         * The source Role has indirect authority over the target role in a chain of authority.
061         */
062        INDAUTH, 
063        /**
064         * The target Role is part of the Source Role.
065         */
066        PART, 
067        /**
068         * 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.
069         */
070        REPL, 
071        /**
072         * added to help the parsers
073         */
074        NULL;
075        public static V3RoleLinkType fromCode(String codeString) throws Exception {
076            if (codeString == null || "".equals(codeString))
077                return null;
078        if ("REL".equals(codeString))
079          return REL;
080        if ("BACKUP".equals(codeString))
081          return BACKUP;
082        if ("CONT".equals(codeString))
083          return CONT;
084        if ("DIRAUTH".equals(codeString))
085          return DIRAUTH;
086        if ("IDENT".equals(codeString))
087          return IDENT;
088        if ("INDAUTH".equals(codeString))
089          return INDAUTH;
090        if ("PART".equals(codeString))
091          return PART;
092        if ("REPL".equals(codeString))
093          return REPL;
094        throw new Exception("Unknown V3RoleLinkType code '"+codeString+"'");
095        }
096        public String toCode() {
097          switch (this) {
098            case REL: return "REL";
099            case BACKUP: return "BACKUP";
100            case CONT: return "CONT";
101            case DIRAUTH: return "DIRAUTH";
102            case IDENT: return "IDENT";
103            case INDAUTH: return "INDAUTH";
104            case PART: return "PART";
105            case REPL: return "REPL";
106            default: return "?";
107          }
108        }
109        public String getSystem() {
110          return "http://hl7.org/fhir/v3/RoleLinkType";
111        }
112        public String getDefinition() {
113          switch (this) {
114            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:";
115            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.";
116            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.";
117            case DIRAUTH: return "The source Role has direct authority over the target role in a chain of authority.";
118            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.";
119            case INDAUTH: return "The source Role has indirect authority over the target role in a chain of authority.";
120            case PART: return "The target Role is part of the Source Role.";
121            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.";
122            default: return "?";
123          }
124        }
125        public String getDisplay() {
126          switch (this) {
127            case REL: return "related";
128            case BACKUP: return "is backup for";
129            case CONT: return "has contact";
130            case DIRAUTH: return "has direct authority over";
131            case IDENT: return "Identification";
132            case INDAUTH: return "has indirect authority over";
133            case PART: return "has part";
134            case REPL: return "replaces";
135            default: return "?";
136          }
137    }
138
139
140}
141