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 EndpointConnectionType { 038 039 /** 040 * IHE Cross Community Patient Discovery Profile (XCPD) - http://wiki.ihe.net/index.php/Cross-Community_Patient_Discovery 041 */ 042 IHEXCPD, 043 /** 044 * IHE Cross Community Access Profile (XCA) - http://wiki.ihe.net/index.php/Cross-Community_Access 045 */ 046 IHEXCA, 047 /** 048 * IHE Cross-Enterprise Document Reliable Exchange (XDR) - http://wiki.ihe.net/index.php/Cross-enterprise_Document_Reliable_Interchange 049 */ 050 IHEXDR, 051 /** 052 * IHE Cross-Enterprise Document Sharing (XDS) - http://wiki.ihe.net/index.php/Cross-Enterprise_Document_Sharing 053 */ 054 IHEXDS, 055 /** 056 * IHE Invoke Image Display (IID) - http://wiki.ihe.net/index.php/Invoke_Image_Display 057 */ 058 IHEIID, 059 /** 060 * DICOMweb RESTful Image Retrieve - http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_6.5.html 061 */ 062 DICOMWADORS, 063 /** 064 * DICOMweb RESTful Image query - http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_6.7.html 065 */ 066 DICOMQIDORS, 067 /** 068 * DICOMweb RESTful image sending and storage - http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_6.6.html 069 */ 070 DICOMSTOWRS, 071 /** 072 * DICOMweb Image Retrieve - http://dicom.nema.org/dicom/2013/output/chtml/part18/sect_6.3.html 073 */ 074 DICOMWADOURI, 075 /** 076 * 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. 077 */ 078 HL7FHIRREST, 079 /** 080 * 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. 081 */ 082 HL7FHIRMSG, 083 /** 084 * HL7v2 messages over an LLP TCP connection 085 */ 086 HL7V2MLLP, 087 /** 088 * Email delivery using a digital certificate to encrypt the content using the public key, receiver must have the private key to decrypt the content 089 */ 090 SECUREEMAIL, 091 /** 092 * Direct Project information - http://wiki.directproject.org/ 093 */ 094 DIRECTPROJECT, 095 /** 096 * added to help the parsers 097 */ 098 NULL; 099 public static EndpointConnectionType fromCode(String codeString) throws FHIRException { 100 if (codeString == null || "".equals(codeString)) 101 return null; 102 if ("ihe-xcpd".equals(codeString)) 103 return IHEXCPD; 104 if ("ihe-xca".equals(codeString)) 105 return IHEXCA; 106 if ("ihe-xdr".equals(codeString)) 107 return IHEXDR; 108 if ("ihe-xds".equals(codeString)) 109 return IHEXDS; 110 if ("ihe-iid".equals(codeString)) 111 return IHEIID; 112 if ("dicom-wado-rs".equals(codeString)) 113 return DICOMWADORS; 114 if ("dicom-qido-rs".equals(codeString)) 115 return DICOMQIDORS; 116 if ("dicom-stow-rs".equals(codeString)) 117 return DICOMSTOWRS; 118 if ("dicom-wado-uri".equals(codeString)) 119 return DICOMWADOURI; 120 if ("hl7-fhir-rest".equals(codeString)) 121 return HL7FHIRREST; 122 if ("hl7-fhir-msg".equals(codeString)) 123 return HL7FHIRMSG; 124 if ("hl7v2-mllp".equals(codeString)) 125 return HL7V2MLLP; 126 if ("secure-email".equals(codeString)) 127 return SECUREEMAIL; 128 if ("direct-project".equals(codeString)) 129 return DIRECTPROJECT; 130 throw new FHIRException("Unknown EndpointConnectionType code '"+codeString+"'"); 131 } 132 public String toCode() { 133 switch (this) { 134 case IHEXCPD: return "ihe-xcpd"; 135 case IHEXCA: return "ihe-xca"; 136 case IHEXDR: return "ihe-xdr"; 137 case IHEXDS: return "ihe-xds"; 138 case IHEIID: return "ihe-iid"; 139 case DICOMWADORS: return "dicom-wado-rs"; 140 case DICOMQIDORS: return "dicom-qido-rs"; 141 case DICOMSTOWRS: return "dicom-stow-rs"; 142 case DICOMWADOURI: return "dicom-wado-uri"; 143 case HL7FHIRREST: return "hl7-fhir-rest"; 144 case HL7FHIRMSG: return "hl7-fhir-msg"; 145 case HL7V2MLLP: return "hl7v2-mllp"; 146 case SECUREEMAIL: return "secure-email"; 147 case DIRECTPROJECT: return "direct-project"; 148 default: return "?"; 149 } 150 } 151 public String getSystem() { 152 return "http://terminology.hl7.org/CodeSystem/endpoint-connection-type"; 153 } 154 public String getDefinition() { 155 switch (this) { 156 case IHEXCPD: return "IHE Cross Community Patient Discovery Profile (XCPD) - http://wiki.ihe.net/index.php/Cross-Community_Patient_Discovery"; 157 case IHEXCA: return "IHE Cross Community Access Profile (XCA) - http://wiki.ihe.net/index.php/Cross-Community_Access"; 158 case IHEXDR: return "IHE Cross-Enterprise Document Reliable Exchange (XDR) - http://wiki.ihe.net/index.php/Cross-enterprise_Document_Reliable_Interchange"; 159 case IHEXDS: return "IHE Cross-Enterprise Document Sharing (XDS) - http://wiki.ihe.net/index.php/Cross-Enterprise_Document_Sharing"; 160 case IHEIID: return "IHE Invoke Image Display (IID) - http://wiki.ihe.net/index.php/Invoke_Image_Display"; 161 case DICOMWADORS: return "DICOMweb RESTful Image Retrieve - http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_6.5.html"; 162 case DICOMQIDORS: return "DICOMweb RESTful Image query - http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_6.7.html"; 163 case DICOMSTOWRS: return "DICOMweb RESTful image sending and storage - http://dicom.nema.org/medical/dicom/current/output/chtml/part18/sect_6.6.html"; 164 case DICOMWADOURI: return "DICOMweb Image Retrieve - http://dicom.nema.org/dicom/2013/output/chtml/part18/sect_6.3.html"; 165 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."; 166 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."; 167 case HL7V2MLLP: return "HL7v2 messages over an LLP TCP connection"; 168 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"; 169 case DIRECTPROJECT: return "Direct Project information - http://wiki.directproject.org/"; 170 default: return "?"; 171 } 172 } 173 public String getDisplay() { 174 switch (this) { 175 case IHEXCPD: return "IHE XCPD"; 176 case IHEXCA: return "IHE XCA"; 177 case IHEXDR: return "IHE XDR"; 178 case IHEXDS: return "IHE XDS"; 179 case IHEIID: return "IHE IID"; 180 case DICOMWADORS: return "DICOM WADO-RS"; 181 case DICOMQIDORS: return "DICOM QIDO-RS"; 182 case DICOMSTOWRS: return "DICOM STOW-RS"; 183 case DICOMWADOURI: return "DICOM WADO-URI"; 184 case HL7FHIRREST: return "HL7 FHIR"; 185 case HL7FHIRMSG: return "HL7 FHIR Messaging"; 186 case HL7V2MLLP: return "HL7 v2 MLLP"; 187 case SECUREEMAIL: return "Secure email"; 188 case DIRECTPROJECT: return "Direct Project"; 189 default: return "?"; 190 } 191 } 192 193 194} 195