001package org.hl7.fhir.r5.model.codesystems;
002
003/*
004 * #%L
005 * org.hl7.fhir.r5
006 * %%
007 * Copyright (C) 2014 - 2019 Health Level 7
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023/*
024  Copyright (c) 2011+, HL7, Inc.
025  All rights reserved.
026  
027  Redistribution and use in source and binary forms, with or without modification, 
028  are permitted provided that the following conditions are met:
029  
030   * Redistributions of source code must retain the above copyright notice, this 
031     list of conditions and the following disclaimer.
032   * Redistributions in binary form must reproduce the above copyright notice, 
033     this list of conditions and the following disclaimer in the documentation 
034     and/or other materials provided with the distribution.
035   * Neither the name of HL7 nor the names of its contributors may be used to 
036     endorse or promote products derived from this software without specific 
037     prior written permission.
038  
039  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
040  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
041  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
042  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
043  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
044  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
045  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
046  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
047  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
048  POSSIBILITY OF SUCH DAMAGE.
049  
050*/
051
052// Generated on Thu, Oct 17, 2019 09:42+1100 for FHIR v4.1.0
053
054
055import org.hl7.fhir.exceptions.FHIRException;
056
057public enum V3ActMood {
058
059        /**
060         * These are moods describing activities as they progress in the business cycle, from defined, through planned and ordered to completed.
061         */
062        _ACTMOODCOMPLETIONTRACK, 
063        /**
064         * Definition: A possible act.
065         */
066        _ACTMOODPOTENTIAL, 
067        /**
068         * Definition: A definition of a kind of act that can occur .
069
070                        
071                           OpenIssue: The semantic constructs embodied in DEF and CRT moods seem indistinguishable, and their uses can readily be determined by the context in which these are used. Therefore, this OpenIssue has been created to declare that it is likely that ActMood.DEF will be "retired" in the future in favor of the more general ActMood.CRT.
072         */
073        DEF, 
074        /**
075         * Definition: A kind of act that defines a permission that has been granted.
076         */
077        PERM, 
078        /**
079         * Definition: A kind of act that may occur during the specified time period.
080         */
081        SLOT, 
082        /**
083         * Definition: An act that actually happens (may be an ongoing act or a documentation of a past act).
084         */
085        EVN, 
086        /**
087         * Definition: An intention or plan for an act. 
088
089                        
090                           >UsageNotes: The final outcome of the intent, the act that is intended to occur, is always an event. However the final outcome may be reached indirectly via steps through other intents, such as promise, permission request, or an appointment that may lead to an actual event to occur. Alternatively, the intended act may never occur.
091         */
092        INT, 
093        /**
094         * Definition:  A desire to have an act occur.
095         */
096        _ACTMOODDESIRE, 
097        /**
098         * Definition: A request (or order) for an act that is part of a defined request/fulfillment cycle.
099
100                        
101                           UsageNotes: Use of an HL7 defined request/fulfillment framework is not required to use this mood code.
102         */
103        _ACTMOODACTREQUEST, 
104        /**
105         * Definition: A request act that is specialized for the appointment scheduling request/fulfillment cycle. An appointment request is fulfilled only and completely by an appointment (APT), i.e., all that the appointment request intends is to create an appointment (the actual act may well not happen if that is the professional decision during the appointment).
106         */
107        ARQ, 
108        /**
109         * Definition: A request for a permission to perform the act. Typically a payer (or possibly a supervisor) is being requested to give permission to perform the act. As opposed to the RQO, the requestee is not asked to perform or cause to perform the act but only to give the permission.
110         */
111        PERMRQ, 
112        /**
113         * Definition: A request act that is specialized for an event request/fulfillment cycle. 
114
115                        
116                           UsageNotes: The fulfillment cycle may involve intermediary fulfilling acts in moods such as PRMS, APT, or even another RQO before being fulfilled by the final event. 
117
118                        
119                           UsageNotes: The concepts of a "request" and an "order" are viewed as different, because there is an implication of a mandate associated with order.  In practice, however, this distinction has no general functional value in the inter-operation of health care computing.  "Orders" are commonly refused for a variety of clinical and business reasons, and the notion of a "request" obligates the recipient (the fulfiller) to respond to the sender (the author).  Indeed, in many regions, including Australia and Europe, the common term used is "request."
120
121                        Thus, the concept embodies both notions, as there is no useful distinction to be made.  If a mandate is to be associated with a request, this will be embodied in the "local" business rules applied to the transactions.  Should HL7 desire to provide a distinction between these in the future, the individual concepts could be added as specializations of this concept.
122
123                        The critical distinction here, is the difference between this concept and an "intent", of which it is a specialization.  An intent involves decisions by a single party, the author.  A request, however, involves decisions by two parties, the author and the fulfiller, with an obligation on the part of the fulfiller to respond to the request indicating that the fulfiller will indeed fulfill the request.
124         */
125        RQO, 
126        /**
127         * Definition: A suggestion that an act might be performed. Not an explicit request, and professional responsibility may or may not be present.
128         */
129        PRP, 
130        /**
131         * Definition: A suggestion that an act should be performed with an acceptance of some degree of professional responsibility for the resulting act. Not an explicit request. .
132
133                        
134                           UsageNotes: Where there is no clear definition or applicable concept of "professional responsibility�, RMD becomes indistinguishable from PRP. .
135         */
136        RMD, 
137        /**
138         * Definition: A commitment to perform an act (may be either solicited or unsolicited). The committer becomes responsible to the other party for executing the act, and, as a consequence, the other party may rely on the first party to perform or cause to perform the act.
139
140                        
141                           UsageNotes: Commitments may be retracted or cancelled.
142         */
143        PRMS, 
144        /**
145         * Definition: An act that has been scheduled to be performed at a specific place and time.
146         */
147        APT, 
148        /**
149         * Definition: An act that expresses condition statements for other acts.
150         */
151        _ACTMOODPREDICATE, 
152        /**
153         * Deprecation Comment: 
154                           This concept This codes should no longer be used.  Instead, set attribute Act.isCriterionInd to "true" and use the desired mood for your criterion.
155
156                        
157                           Definition: A condition that must be true for the source act to be considered.
158         */
159        CRT, 
160        /**
161         * Deprecation Comment: 
162                           This concept This codes should no longer be used.  Instead, set attribute Act.isCriterionInd to "true" and use the desired mood for your criterion.
163
164                        
165                           Definition: A criterion (CRT) that has_match = an event (EVN).
166         */
167        EVN_CRT, 
168        /**
169         * A criterion expressed over goals (ActMood.GOL).
170         */
171        GOL_CRT, 
172        /**
173         * A criterion expressed over intents (ActMood.INT).
174         */
175        INT_CRT, 
176        /**
177         * A criterion expressed over promises (ActMood.PRMS).
178         */
179        PRMS_CRT, 
180        /**
181         * A criterion expressed over requests or orders (ActMood.RQO).
182         */
183        RQO_CRT, 
184        /**
185         * A criterion expressed over risks (ActMood.RSK).
186         */
187        RSK_CRT, 
188        /**
189         * Definition: An act that is considered to have some noteworthy likelihood of occurring in the future (has_match = event).
190
191                        
192                           Examples:Prognosis of a condition, Expected date of discharge from hospital, patient will likely need an emergency decompression of the intracranial pressure by morning.
193
194                        
195                           UsageNotes:INT (intent) reflects a plan for the future, which is a declaration to do something. This contrasts with expectation, which is a prediction that something will happen in the future. GOL (goal) reflects a hope rather than a prediction. RSK (risk) reflects a potential negative event that may or may not be expected to happen.
196         */
197        EXPEC, 
198        /**
199         * Definition: An expectation that is considered to be desirable to occur in the future 
200
201                        
202                           Examples:Target weight below 80Kg, Stop smoking, Regain ability to walk, goal is to administer thrombolytics to candidate patients presenting with acute myocardial infarction.
203
204                        
205                           UsageNotes: INT (intent) reflects a plan for the future, which is a declaration to do something.  This contrasts with goal which doesn't represent an intention to act, merely a hope for an eventual result.  A goal is distinct from the intended actions to reach that goal.  "I will reduce the dose of drug x to 20mg" is an intent.  "I hope to be able to get the patient to the point where I can reduce the dose of drug x to 20mg" is a goal. EXPEC (expectation) reflects a prediction rather than a hope. RSK (risk) reflects a potential negative event rather than a hope.
206         */
207        GOL, 
208        /**
209         * Definition:An act that may occur in the future and which is regarded as undesirable 
210
211                        
212                           Examples:Increased risk of DVT, at risk for sub-acute bacterial endocarditis.
213
214                        
215                           UsageNotes:Note: An observation in RSK mood expresses the undesirable act, and not the underlying risk factor. A risk factor that is present (e.g. obesity, smoking, etc) should be expressed in event mood. INT (intent) reflects a plan for the future, which is a declaration to do something. This contrasts with RSK (risk), which is the potential that something negative will occur that may or may not ever happen. GOL (goal) reflects a hope to achieve something. EXPEC (expectation) is the prediction of a positive or negative event. This contrasts with RSK (risk), which is the potential that something negative will occur that may or may not ever happen, and may not be expected to happen.
216         */
217        RSK, 
218        /**
219         * Definition: One of a set of acts that specify an option for the property values that the parent act may have. Typically used in definitions or orders to describe alternatives. An option can only be used as a group, that is, all assigned values must be used together. The actual mood of the act is the same as the parent act, and they must be linked by an actrelationship with type = OPTN.
220         */
221        OPT, 
222        /**
223         * added to help the parsers
224         */
225        NULL;
226        public static V3ActMood fromCode(String codeString) throws FHIRException {
227            if (codeString == null || "".equals(codeString))
228                return null;
229        if ("_ActMoodCompletionTrack".equals(codeString))
230          return _ACTMOODCOMPLETIONTRACK;
231        if ("_ActMoodPotential".equals(codeString))
232          return _ACTMOODPOTENTIAL;
233        if ("DEF".equals(codeString))
234          return DEF;
235        if ("PERM".equals(codeString))
236          return PERM;
237        if ("SLOT".equals(codeString))
238          return SLOT;
239        if ("EVN".equals(codeString))
240          return EVN;
241        if ("INT".equals(codeString))
242          return INT;
243        if ("_ActMoodDesire".equals(codeString))
244          return _ACTMOODDESIRE;
245        if ("_ActMoodActRequest".equals(codeString))
246          return _ACTMOODACTREQUEST;
247        if ("ARQ".equals(codeString))
248          return ARQ;
249        if ("PERMRQ".equals(codeString))
250          return PERMRQ;
251        if ("RQO".equals(codeString))
252          return RQO;
253        if ("PRP".equals(codeString))
254          return PRP;
255        if ("RMD".equals(codeString))
256          return RMD;
257        if ("PRMS".equals(codeString))
258          return PRMS;
259        if ("APT".equals(codeString))
260          return APT;
261        if ("_ActMoodPredicate".equals(codeString))
262          return _ACTMOODPREDICATE;
263        if ("CRT".equals(codeString))
264          return CRT;
265        if ("EVN.CRT".equals(codeString))
266          return EVN_CRT;
267        if ("GOL.CRT".equals(codeString))
268          return GOL_CRT;
269        if ("INT.CRT".equals(codeString))
270          return INT_CRT;
271        if ("PRMS.CRT".equals(codeString))
272          return PRMS_CRT;
273        if ("RQO.CRT".equals(codeString))
274          return RQO_CRT;
275        if ("RSK.CRT".equals(codeString))
276          return RSK_CRT;
277        if ("EXPEC".equals(codeString))
278          return EXPEC;
279        if ("GOL".equals(codeString))
280          return GOL;
281        if ("RSK".equals(codeString))
282          return RSK;
283        if ("OPT".equals(codeString))
284          return OPT;
285        throw new FHIRException("Unknown V3ActMood code '"+codeString+"'");
286        }
287        public String toCode() {
288          switch (this) {
289            case _ACTMOODCOMPLETIONTRACK: return "_ActMoodCompletionTrack";
290            case _ACTMOODPOTENTIAL: return "_ActMoodPotential";
291            case DEF: return "DEF";
292            case PERM: return "PERM";
293            case SLOT: return "SLOT";
294            case EVN: return "EVN";
295            case INT: return "INT";
296            case _ACTMOODDESIRE: return "_ActMoodDesire";
297            case _ACTMOODACTREQUEST: return "_ActMoodActRequest";
298            case ARQ: return "ARQ";
299            case PERMRQ: return "PERMRQ";
300            case RQO: return "RQO";
301            case PRP: return "PRP";
302            case RMD: return "RMD";
303            case PRMS: return "PRMS";
304            case APT: return "APT";
305            case _ACTMOODPREDICATE: return "_ActMoodPredicate";
306            case CRT: return "CRT";
307            case EVN_CRT: return "EVN.CRT";
308            case GOL_CRT: return "GOL.CRT";
309            case INT_CRT: return "INT.CRT";
310            case PRMS_CRT: return "PRMS.CRT";
311            case RQO_CRT: return "RQO.CRT";
312            case RSK_CRT: return "RSK.CRT";
313            case EXPEC: return "EXPEC";
314            case GOL: return "GOL";
315            case RSK: return "RSK";
316            case OPT: return "OPT";
317            default: return "?";
318          }
319        }
320        public String getSystem() {
321          return "http://terminology.hl7.org/CodeSystem/v3-ActMood";
322        }
323        public String getDefinition() {
324          switch (this) {
325            case _ACTMOODCOMPLETIONTRACK: return "These are moods describing activities as they progress in the business cycle, from defined, through planned and ordered to completed.";
326            case _ACTMOODPOTENTIAL: return "Definition: A possible act.";
327            case DEF: return "Definition: A definition of a kind of act that can occur .\r\n\n                        \n                           OpenIssue: The semantic constructs embodied in DEF and CRT moods seem indistinguishable, and their uses can readily be determined by the context in which these are used. Therefore, this OpenIssue has been created to declare that it is likely that ActMood.DEF will be \"retired\" in the future in favor of the more general ActMood.CRT.";
328            case PERM: return "Definition: A kind of act that defines a permission that has been granted.";
329            case SLOT: return "Definition: A kind of act that may occur during the specified time period.";
330            case EVN: return "Definition: An act that actually happens (may be an ongoing act or a documentation of a past act).";
331            case INT: return "Definition: An intention or plan for an act. \r\n\n                        \n                           >UsageNotes: The final outcome of the intent, the act that is intended to occur, is always an event. However the final outcome may be reached indirectly via steps through other intents, such as promise, permission request, or an appointment that may lead to an actual event to occur. Alternatively, the intended act may never occur.";
332            case _ACTMOODDESIRE: return "Definition:  A desire to have an act occur.";
333            case _ACTMOODACTREQUEST: return "Definition: A request (or order) for an act that is part of a defined request/fulfillment cycle.\r\n\n                        \n                           UsageNotes: Use of an HL7 defined request/fulfillment framework is not required to use this mood code.";
334            case ARQ: return "Definition: A request act that is specialized for the appointment scheduling request/fulfillment cycle. An appointment request is fulfilled only and completely by an appointment (APT), i.e., all that the appointment request intends is to create an appointment (the actual act may well not happen if that is the professional decision during the appointment).";
335            case PERMRQ: return "Definition: A request for a permission to perform the act. Typically a payer (or possibly a supervisor) is being requested to give permission to perform the act. As opposed to the RQO, the requestee is not asked to perform or cause to perform the act but only to give the permission.";
336            case RQO: return "Definition: A request act that is specialized for an event request/fulfillment cycle. \r\n\n                        \n                           UsageNotes: The fulfillment cycle may involve intermediary fulfilling acts in moods such as PRMS, APT, or even another RQO before being fulfilled by the final event. \r\n\n                        \n                           UsageNotes: The concepts of a \"request\" and an \"order\" are viewed as different, because there is an implication of a mandate associated with order.  In practice, however, this distinction has no general functional value in the inter-operation of health care computing.  \"Orders\" are commonly refused for a variety of clinical and business reasons, and the notion of a \"request\" obligates the recipient (the fulfiller) to respond to the sender (the author).  Indeed, in many regions, including Australia and Europe, the common term used is \"request.\"\r\n\n                        Thus, the concept embodies both notions, as there is no useful distinction to be made.  If a mandate is to be associated with a request, this will be embodied in the \"local\" business rules applied to the transactions.  Should HL7 desire to provide a distinction between these in the future, the individual concepts could be added as specializations of this concept.\r\n\n                        The critical distinction here, is the difference between this concept and an \"intent\", of which it is a specialization.  An intent involves decisions by a single party, the author.  A request, however, involves decisions by two parties, the author and the fulfiller, with an obligation on the part of the fulfiller to respond to the request indicating that the fulfiller will indeed fulfill the request.";
337            case PRP: return "Definition: A suggestion that an act might be performed. Not an explicit request, and professional responsibility may or may not be present.";
338            case RMD: return "Definition: A suggestion that an act should be performed with an acceptance of some degree of professional responsibility for the resulting act. Not an explicit request. .\r\n\n                        \n                           UsageNotes: Where there is no clear definition or applicable concept of \"professional responsibility�, RMD becomes indistinguishable from PRP. .";
339            case PRMS: return "Definition: A commitment to perform an act (may be either solicited or unsolicited). The committer becomes responsible to the other party for executing the act, and, as a consequence, the other party may rely on the first party to perform or cause to perform the act.\r\n\n                        \n                           UsageNotes: Commitments may be retracted or cancelled.";
340            case APT: return "Definition: An act that has been scheduled to be performed at a specific place and time.";
341            case _ACTMOODPREDICATE: return "Definition: An act that expresses condition statements for other acts.";
342            case CRT: return "Deprecation Comment: \n                           This concept This codes should no longer be used.  Instead, set attribute Act.isCriterionInd to \"true\" and use the desired mood for your criterion.\r\n\n                        \n                           Definition: A condition that must be true for the source act to be considered.";
343            case EVN_CRT: return "Deprecation Comment: \n                           This concept This codes should no longer be used.  Instead, set attribute Act.isCriterionInd to \"true\" and use the desired mood for your criterion.\r\n\n                        \n                           Definition: A criterion (CRT) that has_match = an event (EVN).";
344            case GOL_CRT: return "A criterion expressed over goals (ActMood.GOL).";
345            case INT_CRT: return "A criterion expressed over intents (ActMood.INT).";
346            case PRMS_CRT: return "A criterion expressed over promises (ActMood.PRMS).";
347            case RQO_CRT: return "A criterion expressed over requests or orders (ActMood.RQO).";
348            case RSK_CRT: return "A criterion expressed over risks (ActMood.RSK).";
349            case EXPEC: return "Definition: An act that is considered to have some noteworthy likelihood of occurring in the future (has_match = event).\r\n\n                        \n                           Examples:Prognosis of a condition, Expected date of discharge from hospital, patient will likely need an emergency decompression of the intracranial pressure by morning.\r\n\n                        \n                           UsageNotes:INT (intent) reflects a plan for the future, which is a declaration to do something. This contrasts with expectation, which is a prediction that something will happen in the future. GOL (goal) reflects a hope rather than a prediction. RSK (risk) reflects a potential negative event that may or may not be expected to happen.";
350            case GOL: return "Definition: An expectation that is considered to be desirable to occur in the future \r\n\n                        \n                           Examples:Target weight below 80Kg, Stop smoking, Regain ability to walk, goal is to administer thrombolytics to candidate patients presenting with acute myocardial infarction.\r\n\n                        \n                           UsageNotes: INT (intent) reflects a plan for the future, which is a declaration to do something.  This contrasts with goal which doesn't represent an intention to act, merely a hope for an eventual result.  A goal is distinct from the intended actions to reach that goal.  \"I will reduce the dose of drug x to 20mg\" is an intent.  \"I hope to be able to get the patient to the point where I can reduce the dose of drug x to 20mg\" is a goal. EXPEC (expectation) reflects a prediction rather than a hope. RSK (risk) reflects a potential negative event rather than a hope.";
351            case RSK: return "Definition:An act that may occur in the future and which is regarded as undesirable \r\n\n                        \n                           Examples:Increased risk of DVT, at risk for sub-acute bacterial endocarditis.\r\n\n                        \n                           UsageNotes:Note: An observation in RSK mood expresses the undesirable act, and not the underlying risk factor. A risk factor that is present (e.g. obesity, smoking, etc) should be expressed in event mood. INT (intent) reflects a plan for the future, which is a declaration to do something. This contrasts with RSK (risk), which is the potential that something negative will occur that may or may not ever happen. GOL (goal) reflects a hope to achieve something. EXPEC (expectation) is the prediction of a positive or negative event. This contrasts with RSK (risk), which is the potential that something negative will occur that may or may not ever happen, and may not be expected to happen.";
352            case OPT: return "Definition: One of a set of acts that specify an option for the property values that the parent act may have. Typically used in definitions or orders to describe alternatives. An option can only be used as a group, that is, all assigned values must be used together. The actual mood of the act is the same as the parent act, and they must be linked by an actrelationship with type = OPTN.";
353            default: return "?";
354          }
355        }
356        public String getDisplay() {
357          switch (this) {
358            case _ACTMOODCOMPLETIONTRACK: return "ActMoodCompletionTrack";
359            case _ACTMOODPOTENTIAL: return "potential";
360            case DEF: return "definition";
361            case PERM: return "permission";
362            case SLOT: return "resource slot";
363            case EVN: return "event (occurrence)";
364            case INT: return "intent";
365            case _ACTMOODDESIRE: return "desire";
366            case _ACTMOODACTREQUEST: return "act request";
367            case ARQ: return "appointment request";
368            case PERMRQ: return "permission request";
369            case RQO: return "request";
370            case PRP: return "proposal";
371            case RMD: return "recommendation";
372            case PRMS: return "promise";
373            case APT: return "appointment";
374            case _ACTMOODPREDICATE: return "ActMoodPredicate";
375            case CRT: return "criterion";
376            case EVN_CRT: return "event criterion";
377            case GOL_CRT: return "goal criterion";
378            case INT_CRT: return "intent criterion";
379            case PRMS_CRT: return "promise criterion";
380            case RQO_CRT: return "request criterion";
381            case RSK_CRT: return "risk criterion";
382            case EXPEC: return "expectation";
383            case GOL: return "Goal";
384            case RSK: return "risk";
385            case OPT: return "option";
386            default: return "?";
387          }
388    }
389
390
391}
392