001package org.hl7.fhir.dstu2016may.model.codesystems; 002 003 004 005 006/* 007 Copyright (c) 2011+, HL7, Inc. 008 All rights reserved. 009 010 Redistribution and use in source and binary forms, with or without modification, 011 are permitted provided that the following conditions are met: 012 013 * Redistributions of source code must retain the above copyright notice, this 014 list of conditions and the following disclaimer. 015 * Redistributions in binary form must reproduce the above copyright notice, 016 this list of conditions and the following disclaimer in the documentation 017 and/or other materials provided with the distribution. 018 * Neither the name of HL7 nor the names of its contributors may be used to 019 endorse or promote products derived from this software without specific 020 prior written permission. 021 022 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 023 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 024 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 025 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 026 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 027 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 028 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 029 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 030 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 031 POSSIBILITY OF SUCH DAMAGE. 032 033*/ 034 035// Generated on Sun, May 8, 2016 03:05+1000 for FHIR v1.4.0 036 037 038import org.hl7.fhir.exceptions.FHIRException; 039 040public enum ModuleMetadataFocusType { 041 042 /** 043 * The gender of the patient. For this item type, use HL7 administrative gender codes (OID: 2.16.840.1.113883.1.11.1) 044 */ 045 PATIENTGENDER, 046 /** 047 * A patient demographic category for which this artifact is applicable. Allows specification of age groups using coded values originating from the MeSH Code system (OID: 2.16.840.1.113883.6.177). More specifically, only codes from the AgeGroupObservationValue value set are valid for this field [2.16.840.1.113883.11.75] 048 */ 049 PATIENTAGEGROUP, 050 /** 051 * The clinical concept(s) addressed by the artifact. For example, disease, diagnostic test interpretation, medication ordering. Please refer to the implementation guide on which code system and codes to use 052 */ 053 CLINICALFOCUS, 054 /** 055 * The user types to which an artifact is targeted. For example, PCP, Patient, Cardiologist, Behavioral Professional, Oral Health Professional, Prescriber, etc... taken from the NUCC Health Care provider taxonomyCode system (OID: 2.16.840.1.113883.6.101) 056 */ 057 TARGETUSER, 058 /** 059 * The settings in which the artifact is intended for use. For example, admission, pre-op, etc 060 */ 061 WORKFLOWSETTING, 062 /** 063 * The context for the clinical task(s) represented by this artifact. Can be any task context represented by the HL7 ActTaskCode value set (OID: 2.16.840.1.113883.1.11.19846). General categories include: order entry, patient documentation and patient information review 064 */ 065 WORKFLOWTASK, 066 /** 067 * The venue in which an artifact could be used. For example, Outpatient, Inpatient, Home, Nursing home. The code value may originate from either the HL7 ActEncounter (OID: 2.16.840.1.113883.1.11.13955) or NUCC non-individual provider codes OID: 2.16.840.1.113883.1.11.19465 068 */ 069 CLINICALVENUE, 070 /** 071 * The jurisdiction in which the artifact is intended to be used 072 */ 073 JURISDICTION, 074 /** 075 * added to help the parsers 076 */ 077 NULL; 078 public static ModuleMetadataFocusType fromCode(String codeString) throws FHIRException { 079 if (codeString == null || "".equals(codeString)) 080 return null; 081 if ("patient-gender".equals(codeString)) 082 return PATIENTGENDER; 083 if ("patient-age-group".equals(codeString)) 084 return PATIENTAGEGROUP; 085 if ("clinical-focus".equals(codeString)) 086 return CLINICALFOCUS; 087 if ("target-user".equals(codeString)) 088 return TARGETUSER; 089 if ("workflow-setting".equals(codeString)) 090 return WORKFLOWSETTING; 091 if ("workflow-task".equals(codeString)) 092 return WORKFLOWTASK; 093 if ("clinical-venue".equals(codeString)) 094 return CLINICALVENUE; 095 if ("jurisdiction".equals(codeString)) 096 return JURISDICTION; 097 throw new FHIRException("Unknown ModuleMetadataFocusType code '"+codeString+"'"); 098 } 099 public String toCode() { 100 switch (this) { 101 case PATIENTGENDER: return "patient-gender"; 102 case PATIENTAGEGROUP: return "patient-age-group"; 103 case CLINICALFOCUS: return "clinical-focus"; 104 case TARGETUSER: return "target-user"; 105 case WORKFLOWSETTING: return "workflow-setting"; 106 case WORKFLOWTASK: return "workflow-task"; 107 case CLINICALVENUE: return "clinical-venue"; 108 case JURISDICTION: return "jurisdiction"; 109 case NULL: return null; 110 default: return "?"; 111 } 112 } 113 public String getSystem() { 114 return "http://hl7.org/fhir/module-metadata-focus-type"; 115 } 116 public String getDefinition() { 117 switch (this) { 118 case PATIENTGENDER: return "The gender of the patient. For this item type, use HL7 administrative gender codes (OID: 2.16.840.1.113883.1.11.1)"; 119 case PATIENTAGEGROUP: return "A patient demographic category for which this artifact is applicable. Allows specification of age groups using coded values originating from the MeSH Code system (OID: 2.16.840.1.113883.6.177). More specifically, only codes from the AgeGroupObservationValue value set are valid for this field [2.16.840.1.113883.11.75]"; 120 case CLINICALFOCUS: return "The clinical concept(s) addressed by the artifact. For example, disease, diagnostic test interpretation, medication ordering. Please refer to the implementation guide on which code system and codes to use"; 121 case TARGETUSER: return "The user types to which an artifact is targeted. For example, PCP, Patient, Cardiologist, Behavioral Professional, Oral Health Professional, Prescriber, etc... taken from the NUCC Health Care provider taxonomyCode system (OID: 2.16.840.1.113883.6.101)"; 122 case WORKFLOWSETTING: return "The settings in which the artifact is intended for use. For example, admission, pre-op, etc"; 123 case WORKFLOWTASK: return "The context for the clinical task(s) represented by this artifact. Can be any task context represented by the HL7 ActTaskCode value set (OID: 2.16.840.1.113883.1.11.19846). General categories include: order entry, patient documentation and patient information review"; 124 case CLINICALVENUE: return "The venue in which an artifact could be used. For example, Outpatient, Inpatient, Home, Nursing home. The code value may originate from either the HL7 ActEncounter (OID: 2.16.840.1.113883.1.11.13955) or NUCC non-individual provider codes OID: 2.16.840.1.113883.1.11.19465"; 125 case JURISDICTION: return "The jurisdiction in which the artifact is intended to be used"; 126 case NULL: return null; 127 default: return "?"; 128 } 129 } 130 public String getDisplay() { 131 switch (this) { 132 case PATIENTGENDER: return "Patient Gender"; 133 case PATIENTAGEGROUP: return "Patient Age Group"; 134 case CLINICALFOCUS: return "Clinical Focus"; 135 case TARGETUSER: return "Target User"; 136 case WORKFLOWSETTING: return "Workflow Setting"; 137 case WORKFLOWTASK: return "Workflow Task"; 138 case CLINICALVENUE: return "Clinical Venue"; 139 case JURISDICTION: return "Jurisdiction"; 140 case NULL: return null; 141 default: return "?"; 142 } 143 } 144 145 146}