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 Thu, Sep 13, 2018 09:04-0400 for FHIR v3.5.0 033 034 035import org.hl7.fhir.exceptions.FHIRException; 036 037public enum V3DocumentCompletion { 038 039 /** 040 * A completion status in which a document has been signed manually or electronically by one or more individuals who attest to its accuracy. No explicit determination is made that the assigned individual has performed the authentication. While the standard allows multiple instances of authentication, it would be typical to have a single instance of authentication, usually by the assigned individual. 041 */ 042 AU, 043 /** 044 * A completion status in which information has been orally recorded but not yet transcribed. 045 */ 046 DI, 047 /** 048 * A completion status in which document content, other than dictation, has been received but has not been translated into the final electronic format. Examples include paper documents, whether hand-written or typewritten, and intermediate electronic forms, such as voice to text. 049 */ 050 DO, 051 /** 052 * A completion status in which information is known to be missing from a transcribed document. 053 */ 054 IN, 055 /** 056 * A workflow status where the material has been assigned to personnel to perform the task of transcription. The document remains in this state until the document is transcribed. 057 */ 058 IP, 059 /** 060 * A completion status in which a document has been signed manually or electronically by the individual who is legally responsible for that document. This is the most mature state in the workflow progression. 061 */ 062 LA, 063 /** 064 * A completion status in which a document was created in error or was placed in the wrong chart. The document is no longer available. 065 */ 066 NU, 067 /** 068 * A completion status in which a document is transcribed but not authenticated. 069 */ 070 PA, 071 /** 072 * A completion status where the document is complete and there is no expectation that the document will be signed. 073 */ 074 UC, 075 /** 076 * added to help the parsers 077 */ 078 NULL; 079 public static V3DocumentCompletion fromCode(String codeString) throws FHIRException { 080 if (codeString == null || "".equals(codeString)) 081 return null; 082 if ("AU".equals(codeString)) 083 return AU; 084 if ("DI".equals(codeString)) 085 return DI; 086 if ("DO".equals(codeString)) 087 return DO; 088 if ("IN".equals(codeString)) 089 return IN; 090 if ("IP".equals(codeString)) 091 return IP; 092 if ("LA".equals(codeString)) 093 return LA; 094 if ("NU".equals(codeString)) 095 return NU; 096 if ("PA".equals(codeString)) 097 return PA; 098 if ("UC".equals(codeString)) 099 return UC; 100 throw new FHIRException("Unknown V3DocumentCompletion code '"+codeString+"'"); 101 } 102 public String toCode() { 103 switch (this) { 104 case AU: return "AU"; 105 case DI: return "DI"; 106 case DO: return "DO"; 107 case IN: return "IN"; 108 case IP: return "IP"; 109 case LA: return "LA"; 110 case NU: return "NU"; 111 case PA: return "PA"; 112 case UC: return "UC"; 113 default: return "?"; 114 } 115 } 116 public String getSystem() { 117 return "http://terminology.hl7.org/CodeSystem/v3-DocumentCompletion"; 118 } 119 public String getDefinition() { 120 switch (this) { 121 case AU: return "A completion status in which a document has been signed manually or electronically by one or more individuals who attest to its accuracy. No explicit determination is made that the assigned individual has performed the authentication. While the standard allows multiple instances of authentication, it would be typical to have a single instance of authentication, usually by the assigned individual."; 122 case DI: return "A completion status in which information has been orally recorded but not yet transcribed."; 123 case DO: return "A completion status in which document content, other than dictation, has been received but has not been translated into the final electronic format. Examples include paper documents, whether hand-written or typewritten, and intermediate electronic forms, such as voice to text."; 124 case IN: return "A completion status in which information is known to be missing from a transcribed document."; 125 case IP: return "A workflow status where the material has been assigned to personnel to perform the task of transcription. The document remains in this state until the document is transcribed."; 126 case LA: return "A completion status in which a document has been signed manually or electronically by the individual who is legally responsible for that document. This is the most mature state in the workflow progression."; 127 case NU: return "A completion status in which a document was created in error or was placed in the wrong chart. The document is no longer available."; 128 case PA: return "A completion status in which a document is transcribed but not authenticated."; 129 case UC: return "A completion status where the document is complete and there is no expectation that the document will be signed."; 130 default: return "?"; 131 } 132 } 133 public String getDisplay() { 134 switch (this) { 135 case AU: return "authenticated"; 136 case DI: return "dictated"; 137 case DO: return "documented"; 138 case IN: return "incomplete"; 139 case IP: return "in progress"; 140 case LA: return "legally authenticated"; 141 case NU: return "nullified document"; 142 case PA: return "pre-authenticated"; 143 case UC: return "unsigned completed document"; 144 default: return "?"; 145 } 146 } 147 148 149} 150