001package org.hl7.fhir.r4.model.codesystems; 002 003/*- 004 * #%L 005 * org.hl7.fhir.r4 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/* 025 Copyright (c) 2011+, HL7, Inc. 026 All rights reserved. 027 028 Redistribution and use in source and binary forms, with or without modification, 029 are permitted provided that the following conditions are met: 030 031 * Redistributions of source code must retain the above copyright notice, this 032 list of conditions and the following disclaimer. 033 * Redistributions in binary form must reproduce the above copyright notice, 034 this list of conditions and the following disclaimer in the documentation 035 and/or other materials provided with the distribution. 036 * Neither the name of HL7 nor the names of its contributors may be used to 037 endorse or promote products derived from this software without specific 038 prior written permission. 039 040 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 041 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 042 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 043 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 044 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 045 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 046 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 047 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 048 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 049 POSSIBILITY OF SUCH DAMAGE. 050 051*/ 052 053// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0 054 055 056import org.hl7.fhir.exceptions.FHIRException; 057 058public enum EndpointConnectionType { 059 060 /** 061 * IHE Cross Community Patient Discovery Profile (XCPD) - http://wiki.ihe.net/index.php/Cross-Community_Patient_Discovery 062 */ 063 IHEXCPD, 064 /** 065 * IHE Cross Community Access Profile (XCA) - http://wiki.ihe.net/index.php/Cross-Community_Access 066 */ 067 IHEXCA, 068 /** 069 * IHE Cross-Enterprise Document Reliable Exchange (XDR) - http://wiki.ihe.net/index.php/Cross-enterprise_Document_Reliable_Interchange 070 */ 071 IHEXDR, 072 /** 073 * IHE Cross-Enterprise Document Sharing (XDS) - http://wiki.ihe.net/index.php/Cross-Enterprise_Document_Sharing 074 */ 075 IHEXDS, 076 /** 077 * IHE Invoke Image Display (IID) - http://wiki.ihe.net/index.php/Invoke_Image_Display 078 */ 079 IHEIID, 080 /** 081 * DICOMweb RESTful Image Retrieve - http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_6.5.html 082 */ 083 DICOMWADORS, 084 /** 085 * DICOMweb RESTful Image query - http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_6.7.html 086 */ 087 DICOMQIDORS, 088 /** 089 * DICOMweb RESTful image sending and storage - http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_6.6.html 090 */ 091 DICOMSTOWRS, 092 /** 093 * DICOMweb Image Retrieve - http://dicom.nema.org/dicom/2013/output/chtml/part18/sect_6.3.html 094 */ 095 DICOMWADOURI, 096 /** 097 * Interact with the server interface using FHIR's RESTful interface. For details on its version/capabilities you should connect the value in Endpoint.address and retrieve the FHIR CapabilityStatement. 098 */ 099 HL7FHIRREST, 100 /** 101 * Use the servers FHIR Messaging interface. Details can be found on the messaging.html page in the FHIR Specification. The FHIR server's base address is specified in the Endpoint.address property. 102 */ 103 HL7FHIRMSG, 104 /** 105 * HL7v2 messages over an LLP TCP connection 106 */ 107 HL7V2MLLP, 108 /** 109 * Email delivery using a digital certificate to encrypt the content using the public key, receiver must have the private key to decrypt the content 110 */ 111 SECUREEMAIL, 112 /** 113 * Direct Project information - http://wiki.directproject.org/ 114 */ 115 DIRECTPROJECT, 116 /** 117 * added to help the parsers 118 */ 119 NULL; 120 public static EndpointConnectionType fromCode(String codeString) throws FHIRException { 121 if (codeString == null || "".equals(codeString)) 122 return null; 123 if ("ihe-xcpd".equals(codeString)) 124 return IHEXCPD; 125 if ("ihe-xca".equals(codeString)) 126 return IHEXCA; 127 if ("ihe-xdr".equals(codeString)) 128 return IHEXDR; 129 if ("ihe-xds".equals(codeString)) 130 return IHEXDS; 131 if ("ihe-iid".equals(codeString)) 132 return IHEIID; 133 if ("dicom-wado-rs".equals(codeString)) 134 return DICOMWADORS; 135 if ("dicom-qido-rs".equals(codeString)) 136 return DICOMQIDORS; 137 if ("dicom-stow-rs".equals(codeString)) 138 return DICOMSTOWRS; 139 if ("dicom-wado-uri".equals(codeString)) 140 return DICOMWADOURI; 141 if ("hl7-fhir-rest".equals(codeString)) 142 return HL7FHIRREST; 143 if ("hl7-fhir-msg".equals(codeString)) 144 return HL7FHIRMSG; 145 if ("hl7v2-mllp".equals(codeString)) 146 return HL7V2MLLP; 147 if ("secure-email".equals(codeString)) 148 return SECUREEMAIL; 149 if ("direct-project".equals(codeString)) 150 return DIRECTPROJECT; 151 throw new FHIRException("Unknown EndpointConnectionType code '"+codeString+"'"); 152 } 153 public String toCode() { 154 switch (this) { 155 case IHEXCPD: return "ihe-xcpd"; 156 case IHEXCA: return "ihe-xca"; 157 case IHEXDR: return "ihe-xdr"; 158 case IHEXDS: return "ihe-xds"; 159 case IHEIID: return "ihe-iid"; 160 case DICOMWADORS: return "dicom-wado-rs"; 161 case DICOMQIDORS: return "dicom-qido-rs"; 162 case DICOMSTOWRS: return "dicom-stow-rs"; 163 case DICOMWADOURI: return "dicom-wado-uri"; 164 case HL7FHIRREST: return "hl7-fhir-rest"; 165 case HL7FHIRMSG: return "hl7-fhir-msg"; 166 case HL7V2MLLP: return "hl7v2-mllp"; 167 case SECUREEMAIL: return "secure-email"; 168 case DIRECTPROJECT: return "direct-project"; 169 default: return "?"; 170 } 171 } 172 public String getSystem() { 173 return "http://terminology.hl7.org/CodeSystem/endpoint-connection-type"; 174 } 175 public String getDefinition() { 176 switch (this) { 177 case IHEXCPD: return "IHE Cross Community Patient Discovery Profile (XCPD) - http://wiki.ihe.net/index.php/Cross-Community_Patient_Discovery"; 178 case IHEXCA: return "IHE Cross Community Access Profile (XCA) - http://wiki.ihe.net/index.php/Cross-Community_Access"; 179 case IHEXDR: return "IHE Cross-Enterprise Document Reliable Exchange (XDR) - http://wiki.ihe.net/index.php/Cross-enterprise_Document_Reliable_Interchange"; 180 case IHEXDS: return "IHE Cross-Enterprise Document Sharing (XDS) - http://wiki.ihe.net/index.php/Cross-Enterprise_Document_Sharing"; 181 case IHEIID: return "IHE Invoke Image Display (IID) - http://wiki.ihe.net/index.php/Invoke_Image_Display"; 182 case DICOMWADORS: return "DICOMweb RESTful Image Retrieve - http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_6.5.html"; 183 case DICOMQIDORS: return "DICOMweb RESTful Image query - http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_6.7.html"; 184 case DICOMSTOWRS: return "DICOMweb RESTful image sending and storage - http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_6.6.html"; 185 case DICOMWADOURI: return "DICOMweb Image Retrieve - http://dicom.nema.org/dicom/2013/output/chtml/part18/sect_6.3.html"; 186 case HL7FHIRREST: return "Interact with the server interface using FHIR's RESTful interface. For details on its version/capabilities you should connect the value in Endpoint.address and retrieve the FHIR CapabilityStatement."; 187 case HL7FHIRMSG: return "Use the servers FHIR Messaging interface. Details can be found on the messaging.html page in the FHIR Specification. The FHIR server's base address is specified in the Endpoint.address property."; 188 case HL7V2MLLP: return "HL7v2 messages over an LLP TCP connection"; 189 case SECUREEMAIL: return "Email delivery using a digital certificate to encrypt the content using the public key, receiver must have the private key to decrypt the content"; 190 case DIRECTPROJECT: return "Direct Project information - http://wiki.directproject.org/"; 191 default: return "?"; 192 } 193 } 194 public String getDisplay() { 195 switch (this) { 196 case IHEXCPD: return "IHE XCPD"; 197 case IHEXCA: return "IHE XCA"; 198 case IHEXDR: return "IHE XDR"; 199 case IHEXDS: return "IHE XDS"; 200 case IHEIID: return "IHE IID"; 201 case DICOMWADORS: return "DICOM WADO-RS"; 202 case DICOMQIDORS: return "DICOM QIDO-RS"; 203 case DICOMSTOWRS: return "DICOM STOW-RS"; 204 case DICOMWADOURI: return "DICOM WADO-URI"; 205 case HL7FHIRREST: return "HL7 FHIR"; 206 case HL7FHIRMSG: return "HL7 FHIR Messaging"; 207 case HL7V2MLLP: return "HL7 v2 MLLP"; 208 case SECUREEMAIL: return "Secure email"; 209 case DIRECTPROJECT: return "Direct Project"; 210 default: return "?"; 211 } 212 } 213 214 215} 216