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