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.r5.model.EnumFactory;
056
057public class IHEFormatcodeCsEnumFactory implements EnumFactory<IHEFormatcodeCs> {
058
059  public IHEFormatcodeCs fromCode(String codeString) throws IllegalArgumentException {
060    if (codeString == null || "".equals(codeString))
061      return null;
062    if ("urn:ihe:pcc:xphr:2007".equals(codeString))
063      return IHEFormatcodeCs.URN_IHE_PCC_XPHR_2007;
064    if ("urn:ihe:pcc:aps:2007".equals(codeString))
065      return IHEFormatcodeCs.URN_IHE_PCC_APS_2007;
066    if ("urn:ihe:pcc:xds-ms:2007".equals(codeString))
067      return IHEFormatcodeCs.URN_IHE_PCC_XDSMS_2007;
068    if ("urn:ihe:pcc:edr:2007".equals(codeString))
069      return IHEFormatcodeCs.URN_IHE_PCC_EDR_2007;
070    if ("urn:ihe:pcc:edes:2007".equals(codeString))
071      return IHEFormatcodeCs.URN_IHE_PCC_EDES_2007;
072    if ("urn:ihe:pcc:apr:handp:2008".equals(codeString))
073      return IHEFormatcodeCs.URN_IHE_PCC_APR_HANDP_2008;
074    if ("urn:ihe:pcc:apr:lab:2008".equals(codeString))
075      return IHEFormatcodeCs.URN_IHE_PCC_APR_LAB_2008;
076    if ("urn:ihe:pcc:apr:edu:2008".equals(codeString))
077      return IHEFormatcodeCs.URN_IHE_PCC_APR_EDU_2008;
078    if ("urn:ihe:pcc:crc:2008".equals(codeString))
079      return IHEFormatcodeCs.URN_IHE_PCC_CRC_2008;
080    if ("urn:ihe:pcc:cm:2008".equals(codeString))
081      return IHEFormatcodeCs.URN_IHE_PCC_CM_2008;
082    if ("urn:ihe:pcc:ic:2008".equals(codeString))
083      return IHEFormatcodeCs.URN_IHE_PCC_IC_2008;
084    if ("urn:ihe:pcc:tn:2007".equals(codeString))
085      return IHEFormatcodeCs.URN_IHE_PCC_TN_2007;
086    if ("urn:ihe:pcc:nn:2007".equals(codeString))
087      return IHEFormatcodeCs.URN_IHE_PCC_NN_2007;
088    if ("urn:ihe:pcc:ctn:2007".equals(codeString))
089      return IHEFormatcodeCs.URN_IHE_PCC_CTN_2007;
090    if ("urn:ihe:pcc:edpn:2007".equals(codeString))
091      return IHEFormatcodeCs.URN_IHE_PCC_EDPN_2007;
092    if ("urn:ihe:pcc:hp:2008".equals(codeString))
093      return IHEFormatcodeCs.URN_IHE_PCC_HP_2008;
094    if ("urn:ihe:pcc:ldhp:2009".equals(codeString))
095      return IHEFormatcodeCs.URN_IHE_PCC_LDHP_2009;
096    if ("urn:ihe:pcc:lds:2009".equals(codeString))
097      return IHEFormatcodeCs.URN_IHE_PCC_LDS_2009;
098    if ("urn:ihe:pcc:mds:2009".equals(codeString))
099      return IHEFormatcodeCs.URN_IHE_PCC_MDS_2009;
100    if ("urn:ihe:pcc:nds:2010".equals(codeString))
101      return IHEFormatcodeCs.URN_IHE_PCC_NDS_2010;
102    if ("urn:ihe:pcc:ppvs:2010".equals(codeString))
103      return IHEFormatcodeCs.URN_IHE_PCC_PPVS_2010;
104    if ("urn:ihe:pcc:trs:2011".equals(codeString))
105      return IHEFormatcodeCs.URN_IHE_PCC_TRS_2011;
106    if ("urn:ihe:pcc:ets:2011".equals(codeString))
107      return IHEFormatcodeCs.URN_IHE_PCC_ETS_2011;
108    if ("urn:ihe:pcc:its:2011".equals(codeString))
109      return IHEFormatcodeCs.URN_IHE_PCC_ITS_2011;
110    if ("urn:ihe:pcc:ript:2017".equals(codeString))
111      return IHEFormatcodeCs.URN_IHE_PCC_RIPT_2017;
112    if ("urn:ihe:iti:bppc:2007".equals(codeString))
113      return IHEFormatcodeCs.URN_IHE_ITI_BPPC_2007;
114    if ("urn:ihe:iti:bppc-sd:2007".equals(codeString))
115      return IHEFormatcodeCs.URN_IHE_ITI_BPPCSD_2007;
116    if ("urn:ihe:iti:xds-sd:pdf:2008".equals(codeString))
117      return IHEFormatcodeCs.URN_IHE_ITI_XDSSD_PDF_2008;
118    if ("urn:ihe:iti:xds-sd:text:2008".equals(codeString))
119      return IHEFormatcodeCs.URN_IHE_ITI_XDSSD_TEXT_2008;
120    if ("urn:ihe:iti:xdw:2011:workflowDoc".equals(codeString))
121      return IHEFormatcodeCs.URN_IHE_ITI_XDW_2011_WORKFLOWDOC;
122    if ("urn:ihe:iti:dsg:detached:2014".equals(codeString))
123      return IHEFormatcodeCs.URN_IHE_ITI_DSG_DETACHED_2014;
124    if ("urn:ihe:iti:dsg:enveloping:2014".equals(codeString))
125      return IHEFormatcodeCs.URN_IHE_ITI_DSG_ENVELOPING_2014;
126    if ("urn:ihe:iti:appc:2016:consent".equals(codeString))
127      return IHEFormatcodeCs.URN_IHE_ITI_APPC_2016_CONSENT;
128    if ("urn:ihe:iti:xds:2017:mimeTypeSufficient".equals(codeString))
129      return IHEFormatcodeCs.URN_IHE_ITI_XDS_2017_MIMETYPESUFFICIENT;
130    if ("urn:ihe:lab:xd-lab:2008".equals(codeString))
131      return IHEFormatcodeCs.URN_IHE_LAB_XDLAB_2008;
132    if ("urn:ihe:rad:TEXT".equals(codeString))
133      return IHEFormatcodeCs.URN_IHE_RAD_TEXT;
134    if ("urn:ihe:rad:PDF".equals(codeString))
135      return IHEFormatcodeCs.URN_IHE_RAD_PDF;
136    if ("urn:ihe:rad:CDA:ImagingReportStructuredHeadings:2013".equals(codeString))
137      return IHEFormatcodeCs.URN_IHE_RAD_CDA_IMAGINGREPORTSTRUCTUREDHEADINGS_2013;
138    if ("urn:ihe:card:imaging:2011".equals(codeString))
139      return IHEFormatcodeCs.URN_IHE_CARD_IMAGING_2011;
140    if ("urn:ihe:card:CRC:2012".equals(codeString))
141      return IHEFormatcodeCs.URN_IHE_CARD_CRC_2012;
142    if ("urn:ihe:card:EPRC-IE:2014".equals(codeString))
143      return IHEFormatcodeCs.URN_IHE_CARD_EPRCIE_2014;
144    if ("urn:ihe:dent:TEXT".equals(codeString))
145      return IHEFormatcodeCs.URN_IHE_DENT_TEXT;
146    if ("urn:ihe:dent:PDF".equals(codeString))
147      return IHEFormatcodeCs.URN_IHE_DENT_PDF;
148    if ("urn:ihe:dent:CDA:ImagingReportStructuredHeadings:2013".equals(codeString))
149      return IHEFormatcodeCs.URN_IHE_DENT_CDA_IMAGINGREPORTSTRUCTUREDHEADINGS_2013;
150    if ("urn:ihe:pat:apsr:all:2010".equals(codeString))
151      return IHEFormatcodeCs.URN_IHE_PAT_APSR_ALL_2010;
152    if ("urn:ihe:pat:apsr:cancer:all:2010".equals(codeString))
153      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_ALL_2010;
154    if ("urn:ihe:pat:apsr:cancer:breast:2010".equals(codeString))
155      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_BREAST_2010;
156    if ("urn:ihe:pat:apsr:cancer:colon:2010".equals(codeString))
157      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_COLON_2010;
158    if ("urn:ihe:pat:apsr:cancer:prostate:2010".equals(codeString))
159      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_PROSTATE_2010;
160    if ("urn:ihe:pat:apsr:cancer:thyroid:2010".equals(codeString))
161      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_THYROID_2010;
162    if ("urn:ihe:pat:apsr:cancer:lung:2010".equals(codeString))
163      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_LUNG_2010;
164    if ("urn:ihe:pat:apsr:cancer:skin:2010".equals(codeString))
165      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_SKIN_2010;
166    if ("urn:ihe:pat:apsr:cancer:kidney:2010".equals(codeString))
167      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_KIDNEY_2010;
168    if ("urn:ihe:pat:apsr:cancer:cervix:2010".equals(codeString))
169      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_CERVIX_2010;
170    if ("urn:ihe:pat:apsr:cancer:endometrium:2010".equals(codeString))
171      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_ENDOMETRIUM_2010;
172    if ("urn:ihe:pat:apsr:cancer:ovary:2010".equals(codeString))
173      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_OVARY_2010;
174    if ("urn:ihe:pat:apsr:cancer:esophagus:2010".equals(codeString))
175      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_ESOPHAGUS_2010;
176    if ("urn:ihe:pat:apsr:cancer:stomach:2010".equals(codeString))
177      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_STOMACH_2010;
178    if ("urn:ihe:pat:apsr:cancer:liver:2010".equals(codeString))
179      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_LIVER_2010;
180    if ("urn:ihe:pat:apsr:cancer:pancreas:2010".equals(codeString))
181      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_PANCREAS_2010;
182    if ("urn:ihe:pat:apsr:cancer:testis:2010".equals(codeString))
183      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_TESTIS_2010;
184    if ("urn:ihe:pat:apsr:cancer:urinary_bladder:2010".equals(codeString))
185      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_URINARYBLADDER_2010;
186    if ("urn:ihe:pat:apsr:cancer:lip_oral_cavity:2010".equals(codeString))
187      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_LIPORALCAVITY_2010;
188    if ("urn:ihe:pat:apsr:cancer:pharynx:2010".equals(codeString))
189      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_PHARYNX_2010;
190    if ("urn:ihe:pat:apsr:cancer:salivary_gland:2010".equals(codeString))
191      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_SALIVARYGLAND_2010;
192    if ("urn:ihe:pat:apsr:cancer:larynx:2010".equals(codeString))
193      return IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_LARYNX_2010;
194    if ("urn:ihe:pharm:pre:2010".equals(codeString))
195      return IHEFormatcodeCs.URN_IHE_PHARM_PRE_2010;
196    if ("urn:ihe:pharm:padv:2010".equals(codeString))
197      return IHEFormatcodeCs.URN_IHE_PHARM_PADV_2010;
198    if ("urn:ihe:pharm:dis:2010".equals(codeString))
199      return IHEFormatcodeCs.URN_IHE_PHARM_DIS_2010;
200    if ("urn:ihe:pharm:pml:2013".equals(codeString))
201      return IHEFormatcodeCs.URN_IHE_PHARM_PML_2013;
202    if ("urn:hl7-org:sdwg:ccda-structuredBody:1.1".equals(codeString))
203      return IHEFormatcodeCs.URN_HL7ORG_SDWG_CCDASTRUCTUREDBODY_1_1;
204    if ("urn:hl7-org:sdwg:ccda-nonXMLBody:1.1".equals(codeString))
205      return IHEFormatcodeCs.URN_HL7ORG_SDWG_CCDANONXMLBODY_1_1;
206    if ("urn:hl7-org:sdwg:ccda-structuredBody:2.1".equals(codeString))
207      return IHEFormatcodeCs.URN_HL7ORG_SDWG_CCDASTRUCTUREDBODY_2_1;
208    if ("urn:hl7-org:sdwg:ccda-nonXMLBody:2.1".equals(codeString))
209      return IHEFormatcodeCs.URN_HL7ORG_SDWG_CCDANONXMLBODY_2_1;
210    throw new IllegalArgumentException("Unknown IHEFormatcodeCs code '"+codeString+"'");
211  }
212
213  public String toCode(IHEFormatcodeCs code) {
214    if (code == IHEFormatcodeCs.URN_IHE_PCC_XPHR_2007)
215      return "urn:ihe:pcc:xphr:2007";
216    if (code == IHEFormatcodeCs.URN_IHE_PCC_APS_2007)
217      return "urn:ihe:pcc:aps:2007";
218    if (code == IHEFormatcodeCs.URN_IHE_PCC_XDSMS_2007)
219      return "urn:ihe:pcc:xds-ms:2007";
220    if (code == IHEFormatcodeCs.URN_IHE_PCC_EDR_2007)
221      return "urn:ihe:pcc:edr:2007";
222    if (code == IHEFormatcodeCs.URN_IHE_PCC_EDES_2007)
223      return "urn:ihe:pcc:edes:2007";
224    if (code == IHEFormatcodeCs.URN_IHE_PCC_APR_HANDP_2008)
225      return "urn:ihe:pcc:apr:handp:2008";
226    if (code == IHEFormatcodeCs.URN_IHE_PCC_APR_LAB_2008)
227      return "urn:ihe:pcc:apr:lab:2008";
228    if (code == IHEFormatcodeCs.URN_IHE_PCC_APR_EDU_2008)
229      return "urn:ihe:pcc:apr:edu:2008";
230    if (code == IHEFormatcodeCs.URN_IHE_PCC_CRC_2008)
231      return "urn:ihe:pcc:crc:2008";
232    if (code == IHEFormatcodeCs.URN_IHE_PCC_CM_2008)
233      return "urn:ihe:pcc:cm:2008";
234    if (code == IHEFormatcodeCs.URN_IHE_PCC_IC_2008)
235      return "urn:ihe:pcc:ic:2008";
236    if (code == IHEFormatcodeCs.URN_IHE_PCC_TN_2007)
237      return "urn:ihe:pcc:tn:2007";
238    if (code == IHEFormatcodeCs.URN_IHE_PCC_NN_2007)
239      return "urn:ihe:pcc:nn:2007";
240    if (code == IHEFormatcodeCs.URN_IHE_PCC_CTN_2007)
241      return "urn:ihe:pcc:ctn:2007";
242    if (code == IHEFormatcodeCs.URN_IHE_PCC_EDPN_2007)
243      return "urn:ihe:pcc:edpn:2007";
244    if (code == IHEFormatcodeCs.URN_IHE_PCC_HP_2008)
245      return "urn:ihe:pcc:hp:2008";
246    if (code == IHEFormatcodeCs.URN_IHE_PCC_LDHP_2009)
247      return "urn:ihe:pcc:ldhp:2009";
248    if (code == IHEFormatcodeCs.URN_IHE_PCC_LDS_2009)
249      return "urn:ihe:pcc:lds:2009";
250    if (code == IHEFormatcodeCs.URN_IHE_PCC_MDS_2009)
251      return "urn:ihe:pcc:mds:2009";
252    if (code == IHEFormatcodeCs.URN_IHE_PCC_NDS_2010)
253      return "urn:ihe:pcc:nds:2010";
254    if (code == IHEFormatcodeCs.URN_IHE_PCC_PPVS_2010)
255      return "urn:ihe:pcc:ppvs:2010";
256    if (code == IHEFormatcodeCs.URN_IHE_PCC_TRS_2011)
257      return "urn:ihe:pcc:trs:2011";
258    if (code == IHEFormatcodeCs.URN_IHE_PCC_ETS_2011)
259      return "urn:ihe:pcc:ets:2011";
260    if (code == IHEFormatcodeCs.URN_IHE_PCC_ITS_2011)
261      return "urn:ihe:pcc:its:2011";
262    if (code == IHEFormatcodeCs.URN_IHE_PCC_RIPT_2017)
263      return "urn:ihe:pcc:ript:2017";
264    if (code == IHEFormatcodeCs.URN_IHE_ITI_BPPC_2007)
265      return "urn:ihe:iti:bppc:2007";
266    if (code == IHEFormatcodeCs.URN_IHE_ITI_BPPCSD_2007)
267      return "urn:ihe:iti:bppc-sd:2007";
268    if (code == IHEFormatcodeCs.URN_IHE_ITI_XDSSD_PDF_2008)
269      return "urn:ihe:iti:xds-sd:pdf:2008";
270    if (code == IHEFormatcodeCs.URN_IHE_ITI_XDSSD_TEXT_2008)
271      return "urn:ihe:iti:xds-sd:text:2008";
272    if (code == IHEFormatcodeCs.URN_IHE_ITI_XDW_2011_WORKFLOWDOC)
273      return "urn:ihe:iti:xdw:2011:workflowDoc";
274    if (code == IHEFormatcodeCs.URN_IHE_ITI_DSG_DETACHED_2014)
275      return "urn:ihe:iti:dsg:detached:2014";
276    if (code == IHEFormatcodeCs.URN_IHE_ITI_DSG_ENVELOPING_2014)
277      return "urn:ihe:iti:dsg:enveloping:2014";
278    if (code == IHEFormatcodeCs.URN_IHE_ITI_APPC_2016_CONSENT)
279      return "urn:ihe:iti:appc:2016:consent";
280    if (code == IHEFormatcodeCs.URN_IHE_ITI_XDS_2017_MIMETYPESUFFICIENT)
281      return "urn:ihe:iti:xds:2017:mimeTypeSufficient";
282    if (code == IHEFormatcodeCs.URN_IHE_LAB_XDLAB_2008)
283      return "urn:ihe:lab:xd-lab:2008";
284    if (code == IHEFormatcodeCs.URN_IHE_RAD_TEXT)
285      return "urn:ihe:rad:TEXT";
286    if (code == IHEFormatcodeCs.URN_IHE_RAD_PDF)
287      return "urn:ihe:rad:PDF";
288    if (code == IHEFormatcodeCs.URN_IHE_RAD_CDA_IMAGINGREPORTSTRUCTUREDHEADINGS_2013)
289      return "urn:ihe:rad:CDA:ImagingReportStructuredHeadings:2013";
290    if (code == IHEFormatcodeCs.URN_IHE_CARD_IMAGING_2011)
291      return "urn:ihe:card:imaging:2011";
292    if (code == IHEFormatcodeCs.URN_IHE_CARD_CRC_2012)
293      return "urn:ihe:card:CRC:2012";
294    if (code == IHEFormatcodeCs.URN_IHE_CARD_EPRCIE_2014)
295      return "urn:ihe:card:EPRC-IE:2014";
296    if (code == IHEFormatcodeCs.URN_IHE_DENT_TEXT)
297      return "urn:ihe:dent:TEXT";
298    if (code == IHEFormatcodeCs.URN_IHE_DENT_PDF)
299      return "urn:ihe:dent:PDF";
300    if (code == IHEFormatcodeCs.URN_IHE_DENT_CDA_IMAGINGREPORTSTRUCTUREDHEADINGS_2013)
301      return "urn:ihe:dent:CDA:ImagingReportStructuredHeadings:2013";
302    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_ALL_2010)
303      return "urn:ihe:pat:apsr:all:2010";
304    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_ALL_2010)
305      return "urn:ihe:pat:apsr:cancer:all:2010";
306    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_BREAST_2010)
307      return "urn:ihe:pat:apsr:cancer:breast:2010";
308    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_COLON_2010)
309      return "urn:ihe:pat:apsr:cancer:colon:2010";
310    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_PROSTATE_2010)
311      return "urn:ihe:pat:apsr:cancer:prostate:2010";
312    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_THYROID_2010)
313      return "urn:ihe:pat:apsr:cancer:thyroid:2010";
314    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_LUNG_2010)
315      return "urn:ihe:pat:apsr:cancer:lung:2010";
316    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_SKIN_2010)
317      return "urn:ihe:pat:apsr:cancer:skin:2010";
318    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_KIDNEY_2010)
319      return "urn:ihe:pat:apsr:cancer:kidney:2010";
320    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_CERVIX_2010)
321      return "urn:ihe:pat:apsr:cancer:cervix:2010";
322    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_ENDOMETRIUM_2010)
323      return "urn:ihe:pat:apsr:cancer:endometrium:2010";
324    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_OVARY_2010)
325      return "urn:ihe:pat:apsr:cancer:ovary:2010";
326    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_ESOPHAGUS_2010)
327      return "urn:ihe:pat:apsr:cancer:esophagus:2010";
328    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_STOMACH_2010)
329      return "urn:ihe:pat:apsr:cancer:stomach:2010";
330    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_LIVER_2010)
331      return "urn:ihe:pat:apsr:cancer:liver:2010";
332    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_PANCREAS_2010)
333      return "urn:ihe:pat:apsr:cancer:pancreas:2010";
334    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_TESTIS_2010)
335      return "urn:ihe:pat:apsr:cancer:testis:2010";
336    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_URINARYBLADDER_2010)
337      return "urn:ihe:pat:apsr:cancer:urinary_bladder:2010";
338    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_LIPORALCAVITY_2010)
339      return "urn:ihe:pat:apsr:cancer:lip_oral_cavity:2010";
340    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_PHARYNX_2010)
341      return "urn:ihe:pat:apsr:cancer:pharynx:2010";
342    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_SALIVARYGLAND_2010)
343      return "urn:ihe:pat:apsr:cancer:salivary_gland:2010";
344    if (code == IHEFormatcodeCs.URN_IHE_PAT_APSR_CANCER_LARYNX_2010)
345      return "urn:ihe:pat:apsr:cancer:larynx:2010";
346    if (code == IHEFormatcodeCs.URN_IHE_PHARM_PRE_2010)
347      return "urn:ihe:pharm:pre:2010";
348    if (code == IHEFormatcodeCs.URN_IHE_PHARM_PADV_2010)
349      return "urn:ihe:pharm:padv:2010";
350    if (code == IHEFormatcodeCs.URN_IHE_PHARM_DIS_2010)
351      return "urn:ihe:pharm:dis:2010";
352    if (code == IHEFormatcodeCs.URN_IHE_PHARM_PML_2013)
353      return "urn:ihe:pharm:pml:2013";
354    if (code == IHEFormatcodeCs.URN_HL7ORG_SDWG_CCDASTRUCTUREDBODY_1_1)
355      return "urn:hl7-org:sdwg:ccda-structuredBody:1.1";
356    if (code == IHEFormatcodeCs.URN_HL7ORG_SDWG_CCDANONXMLBODY_1_1)
357      return "urn:hl7-org:sdwg:ccda-nonXMLBody:1.1";
358    if (code == IHEFormatcodeCs.URN_HL7ORG_SDWG_CCDASTRUCTUREDBODY_2_1)
359      return "urn:hl7-org:sdwg:ccda-structuredBody:2.1";
360    if (code == IHEFormatcodeCs.URN_HL7ORG_SDWG_CCDANONXMLBODY_2_1)
361      return "urn:hl7-org:sdwg:ccda-nonXMLBody:2.1";
362    return "?";
363  }
364
365    public String toSystem(IHEFormatcodeCs code) {
366      return code.getSystem();
367      }
368
369}
370