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 V3DocumentCompletion {
036
037        /**
038         * 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.
039         */
040        AU, 
041        /**
042         * A completion status in which information has been orally recorded but not yet transcribed.
043         */
044        DI, 
045        /**
046         * 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.
047         */
048        DO, 
049        /**
050         * A completion status in which information is known to be missing from a transcribed document.
051         */
052        IN, 
053        /**
054         * 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.
055         */
056        IP, 
057        /**
058         * 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.
059         */
060        LA, 
061        /**
062         * A completion status in which a document was created in error or was placed in the wrong chart. The document is no longer available.
063         */
064        NU, 
065        /**
066         * A completion status in which a document is transcribed but not authenticated.
067         */
068        PA, 
069        /**
070         * A completion status where the document is complete and there is no expectation that the document will be signed.
071         */
072        UC, 
073        /**
074         * added to help the parsers
075         */
076        NULL;
077        public static V3DocumentCompletion fromCode(String codeString) throws Exception {
078            if (codeString == null || "".equals(codeString))
079                return null;
080        if ("AU".equals(codeString))
081          return AU;
082        if ("DI".equals(codeString))
083          return DI;
084        if ("DO".equals(codeString))
085          return DO;
086        if ("IN".equals(codeString))
087          return IN;
088        if ("IP".equals(codeString))
089          return IP;
090        if ("LA".equals(codeString))
091          return LA;
092        if ("NU".equals(codeString))
093          return NU;
094        if ("PA".equals(codeString))
095          return PA;
096        if ("UC".equals(codeString))
097          return UC;
098        throw new Exception("Unknown V3DocumentCompletion code '"+codeString+"'");
099        }
100        public String toCode() {
101          switch (this) {
102            case AU: return "AU";
103            case DI: return "DI";
104            case DO: return "DO";
105            case IN: return "IN";
106            case IP: return "IP";
107            case LA: return "LA";
108            case NU: return "NU";
109            case PA: return "PA";
110            case UC: return "UC";
111            default: return "?";
112          }
113        }
114        public String getSystem() {
115          return "http://hl7.org/fhir/v3/DocumentCompletion";
116        }
117        public String getDefinition() {
118          switch (this) {
119            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.";
120            case DI: return "A completion status in which information has been orally recorded but not yet transcribed.";
121            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.";
122            case IN: return "A completion status in which information is known to be missing from a transcribed document.";
123            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.";
124            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.";
125            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.";
126            case PA: return "A completion status in which a document is transcribed but not authenticated.";
127            case UC: return "A completion status where the document is complete and there is no expectation that the document will be signed.";
128            default: return "?";
129          }
130        }
131        public String getDisplay() {
132          switch (this) {
133            case AU: return "authenticated";
134            case DI: return "dictated";
135            case DO: return "documented";
136            case IN: return "incomplete";
137            case IP: return "in progress";
138            case LA: return "legally authenticated";
139            case NU: return "nullified document";
140            case PA: return "pre-authenticated";
141            case UC: return "unsigned completed document";
142            default: return "?";
143          }
144    }
145
146
147}
148