001package org.hl7.fhir.convertors.conv40_50;
002
003
004import org.hl7.fhir.convertors.VersionConvertor_40_50;
005import org.hl7.fhir.exceptions.FHIRException;
006
007/*
008  Copyright (c) 2011+, HL7, Inc.
009  All rights reserved.
010  
011  Redistribution and use in source and binary forms, with or without modification, 
012  are permitted provided that the following conditions are met:
013  
014   * Redistributions of source code must retain the above copyright notice, this 
015     list of conditions and the following disclaimer.
016   * Redistributions in binary form must reproduce the above copyright notice, 
017     this list of conditions and the following disclaimer in the documentation 
018     and/or other materials provided with the distribution.
019   * Neither the name of HL7 nor the names of its contributors may be used to 
020     endorse or promote products derived from this software without specific 
021     prior written permission.
022  
023  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
024  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
025  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
026  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
027  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
028  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
029  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
030  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
031  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
032  POSSIBILITY OF SUCH DAMAGE.
033  
034*/
035// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0
036public class BiologicallyDerivedProduct40_50 extends VersionConvertor_40_50 {
037
038    public static org.hl7.fhir.r5.model.BiologicallyDerivedProduct convertBiologicallyDerivedProduct(org.hl7.fhir.r4.model.BiologicallyDerivedProduct src) throws FHIRException {
039        if (src == null)
040            return null;
041        org.hl7.fhir.r5.model.BiologicallyDerivedProduct tgt = new org.hl7.fhir.r5.model.BiologicallyDerivedProduct();
042        copyDomainResource(src, tgt);
043        for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
044        if (src.hasProductCategory())
045            tgt.setProductCategoryElement(convertBiologicallyDerivedProductCategory(src.getProductCategoryElement()));
046        if (src.hasProductCode())
047            tgt.setProductCode(convertCodeableConcept(src.getProductCode()));
048        if (src.hasStatus())
049            tgt.setStatusElement(convertBiologicallyDerivedProductStatus(src.getStatusElement()));
050        for (org.hl7.fhir.r4.model.Reference t : src.getRequest()) tgt.addRequest(convertReference(t));
051        if (src.hasQuantity())
052            tgt.setQuantityElement(convertInteger(src.getQuantityElement()));
053        for (org.hl7.fhir.r4.model.Reference t : src.getParent()) tgt.addParent(convertReference(t));
054        if (src.hasCollection())
055            tgt.setCollection(convertBiologicallyDerivedProductCollectionComponent(src.getCollection()));
056        for (org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductProcessingComponent t : src.getProcessing()) tgt.addProcessing(convertBiologicallyDerivedProductProcessingComponent(t));
057        if (src.hasManipulation())
058            tgt.setManipulation(convertBiologicallyDerivedProductManipulationComponent(src.getManipulation()));
059        for (org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageComponent t : src.getStorage()) tgt.addStorage(convertBiologicallyDerivedProductStorageComponent(t));
060        return tgt;
061    }
062
063    public static org.hl7.fhir.r4.model.BiologicallyDerivedProduct convertBiologicallyDerivedProduct(org.hl7.fhir.r5.model.BiologicallyDerivedProduct src) throws FHIRException {
064        if (src == null)
065            return null;
066        org.hl7.fhir.r4.model.BiologicallyDerivedProduct tgt = new org.hl7.fhir.r4.model.BiologicallyDerivedProduct();
067        copyDomainResource(src, tgt);
068        for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t));
069        if (src.hasProductCategory())
070            tgt.setProductCategoryElement(convertBiologicallyDerivedProductCategory(src.getProductCategoryElement()));
071        if (src.hasProductCode())
072            tgt.setProductCode(convertCodeableConcept(src.getProductCode()));
073        if (src.hasStatus())
074            tgt.setStatusElement(convertBiologicallyDerivedProductStatus(src.getStatusElement()));
075        for (org.hl7.fhir.r5.model.Reference t : src.getRequest()) tgt.addRequest(convertReference(t));
076        if (src.hasQuantity())
077            tgt.setQuantityElement(convertInteger(src.getQuantityElement()));
078        for (org.hl7.fhir.r5.model.Reference t : src.getParent()) tgt.addParent(convertReference(t));
079        if (src.hasCollection())
080            tgt.setCollection(convertBiologicallyDerivedProductCollectionComponent(src.getCollection()));
081        for (org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductProcessingComponent t : src.getProcessing()) tgt.addProcessing(convertBiologicallyDerivedProductProcessingComponent(t));
082        if (src.hasManipulation())
083            tgt.setManipulation(convertBiologicallyDerivedProductManipulationComponent(src.getManipulation()));
084        for (org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageComponent t : src.getStorage()) tgt.addStorage(convertBiologicallyDerivedProductStorageComponent(t));
085        return tgt;
086    }
087
088    static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory> convertBiologicallyDerivedProductCategory(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory> src) throws FHIRException {
089        if (src == null || src.isEmpty())
090            return null;
091        org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategoryEnumFactory());
092        VersionConvertor_40_50.copyElement(src, tgt);
093        switch(src.getValue()) {
094            case ORGAN:
095                tgt.setValue(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory.ORGAN);
096                break;
097            case TISSUE:
098                tgt.setValue(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory.TISSUE);
099                break;
100            case FLUID:
101                tgt.setValue(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory.FLUID);
102                break;
103            case CELLS:
104                tgt.setValue(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory.CELLS);
105                break;
106            case BIOLOGICALAGENT:
107                tgt.setValue(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory.BIOLOGICALAGENT);
108                break;
109            default:
110                tgt.setValue(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory.NULL);
111                break;
112        }
113        return tgt;
114    }
115
116    static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory> convertBiologicallyDerivedProductCategory(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory> src) throws FHIRException {
117        if (src == null || src.isEmpty())
118            return null;
119        org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategoryEnumFactory());
120        VersionConvertor_40_50.copyElement(src, tgt);
121        switch(src.getValue()) {
122            case ORGAN:
123                tgt.setValue(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory.ORGAN);
124                break;
125            case TISSUE:
126                tgt.setValue(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory.TISSUE);
127                break;
128            case FLUID:
129                tgt.setValue(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory.FLUID);
130                break;
131            case CELLS:
132                tgt.setValue(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory.CELLS);
133                break;
134            case BIOLOGICALAGENT:
135                tgt.setValue(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory.BIOLOGICALAGENT);
136                break;
137            default:
138                tgt.setValue(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCategory.NULL);
139                break;
140        }
141        return tgt;
142    }
143
144    static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatus> convertBiologicallyDerivedProductStatus(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatus> src) throws FHIRException {
145        if (src == null || src.isEmpty())
146            return null;
147        org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatus> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatusEnumFactory());
148        VersionConvertor_40_50.copyElement(src, tgt);
149        switch(src.getValue()) {
150            case AVAILABLE:
151                tgt.setValue(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatus.AVAILABLE);
152                break;
153            case UNAVAILABLE:
154                tgt.setValue(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatus.UNAVAILABLE);
155                break;
156            default:
157                tgt.setValue(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatus.NULL);
158                break;
159        }
160        return tgt;
161    }
162
163    static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatus> convertBiologicallyDerivedProductStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatus> src) throws FHIRException {
164        if (src == null || src.isEmpty())
165            return null;
166        org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatus> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatusEnumFactory());
167        VersionConvertor_40_50.copyElement(src, tgt);
168        switch(src.getValue()) {
169            case AVAILABLE:
170                tgt.setValue(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatus.AVAILABLE);
171                break;
172            case UNAVAILABLE:
173                tgt.setValue(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatus.UNAVAILABLE);
174                break;
175            default:
176                tgt.setValue(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStatus.NULL);
177                break;
178        }
179        return tgt;
180    }
181
182    public static org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCollectionComponent convertBiologicallyDerivedProductCollectionComponent(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCollectionComponent src) throws FHIRException {
183        if (src == null)
184            return null;
185        org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCollectionComponent tgt = new org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCollectionComponent();
186        copyElement(src, tgt);
187        if (src.hasCollector())
188            tgt.setCollector(convertReference(src.getCollector()));
189        if (src.hasSource())
190            tgt.setSource(convertReference(src.getSource()));
191        if (src.hasCollected())
192            tgt.setCollected(convertType(src.getCollected()));
193        return tgt;
194    }
195
196    public static org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCollectionComponent convertBiologicallyDerivedProductCollectionComponent(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCollectionComponent src) throws FHIRException {
197        if (src == null)
198            return null;
199        org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCollectionComponent tgt = new org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductCollectionComponent();
200        copyElement(src, tgt);
201        if (src.hasCollector())
202            tgt.setCollector(convertReference(src.getCollector()));
203        if (src.hasSource())
204            tgt.setSource(convertReference(src.getSource()));
205        if (src.hasCollected())
206            tgt.setCollected(convertType(src.getCollected()));
207        return tgt;
208    }
209
210    public static org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductProcessingComponent convertBiologicallyDerivedProductProcessingComponent(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductProcessingComponent src) throws FHIRException {
211        if (src == null)
212            return null;
213        org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductProcessingComponent tgt = new org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductProcessingComponent();
214        copyElement(src, tgt);
215        if (src.hasDescription())
216            tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
217        if (src.hasProcedure())
218            tgt.setProcedure(convertCodeableConcept(src.getProcedure()));
219        if (src.hasAdditive())
220            tgt.setAdditive(convertReference(src.getAdditive()));
221        if (src.hasTime())
222            tgt.setTime(convertType(src.getTime()));
223        return tgt;
224    }
225
226    public static org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductProcessingComponent convertBiologicallyDerivedProductProcessingComponent(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductProcessingComponent src) throws FHIRException {
227        if (src == null)
228            return null;
229        org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductProcessingComponent tgt = new org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductProcessingComponent();
230        copyElement(src, tgt);
231        if (src.hasDescription())
232            tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
233        if (src.hasProcedure())
234            tgt.setProcedure(convertCodeableConcept(src.getProcedure()));
235        if (src.hasAdditive())
236            tgt.setAdditive(convertReference(src.getAdditive()));
237        if (src.hasTime())
238            tgt.setTime(convertType(src.getTime()));
239        return tgt;
240    }
241
242    public static org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductManipulationComponent convertBiologicallyDerivedProductManipulationComponent(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductManipulationComponent src) throws FHIRException {
243        if (src == null)
244            return null;
245        org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductManipulationComponent tgt = new org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductManipulationComponent();
246        copyElement(src, tgt);
247        if (src.hasDescription())
248            tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
249        if (src.hasTime())
250            tgt.setTime(convertType(src.getTime()));
251        return tgt;
252    }
253
254    public static org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductManipulationComponent convertBiologicallyDerivedProductManipulationComponent(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductManipulationComponent src) throws FHIRException {
255        if (src == null)
256            return null;
257        org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductManipulationComponent tgt = new org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductManipulationComponent();
258        copyElement(src, tgt);
259        if (src.hasDescription())
260            tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
261        if (src.hasTime())
262            tgt.setTime(convertType(src.getTime()));
263        return tgt;
264    }
265
266    public static org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageComponent convertBiologicallyDerivedProductStorageComponent(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageComponent src) throws FHIRException {
267        if (src == null)
268            return null;
269        org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageComponent tgt = new org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageComponent();
270        copyElement(src, tgt);
271        if (src.hasDescription())
272            tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
273        if (src.hasTemperature())
274            tgt.setTemperatureElement(convertDecimal(src.getTemperatureElement()));
275        if (src.hasScale())
276            tgt.setScaleElement(convertBiologicallyDerivedProductStorageScale(src.getScaleElement()));
277        if (src.hasDuration())
278            tgt.setDuration(convertPeriod(src.getDuration()));
279        return tgt;
280    }
281
282    public static org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageComponent convertBiologicallyDerivedProductStorageComponent(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageComponent src) throws FHIRException {
283        if (src == null)
284            return null;
285        org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageComponent tgt = new org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageComponent();
286        copyElement(src, tgt);
287        if (src.hasDescription())
288            tgt.setDescriptionElement(convertString(src.getDescriptionElement()));
289        if (src.hasTemperature())
290            tgt.setTemperatureElement(convertDecimal(src.getTemperatureElement()));
291        if (src.hasScale())
292            tgt.setScaleElement(convertBiologicallyDerivedProductStorageScale(src.getScaleElement()));
293        if (src.hasDuration())
294            tgt.setDuration(convertPeriod(src.getDuration()));
295        return tgt;
296    }
297
298    static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale> convertBiologicallyDerivedProductStorageScale(org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale> src) throws FHIRException {
299        if (src == null || src.isEmpty())
300            return null;
301        org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale> tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScaleEnumFactory());
302        VersionConvertor_40_50.copyElement(src, tgt);
303        switch(src.getValue()) {
304            case FARENHEIT:
305                tgt.setValue(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale.FARENHEIT);
306                break;
307            case CELSIUS:
308                tgt.setValue(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale.CELSIUS);
309                break;
310            case KELVIN:
311                tgt.setValue(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale.KELVIN);
312                break;
313            default:
314                tgt.setValue(org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale.NULL);
315                break;
316        }
317        return tgt;
318    }
319
320    static public org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale> convertBiologicallyDerivedProductStorageScale(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale> src) throws FHIRException {
321        if (src == null || src.isEmpty())
322            return null;
323        org.hl7.fhir.r4.model.Enumeration<org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale> tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScaleEnumFactory());
324        VersionConvertor_40_50.copyElement(src, tgt);
325        switch(src.getValue()) {
326            case FARENHEIT:
327                tgt.setValue(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale.FARENHEIT);
328                break;
329            case CELSIUS:
330                tgt.setValue(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale.CELSIUS);
331                break;
332            case KELVIN:
333                tgt.setValue(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale.KELVIN);
334                break;
335            default:
336                tgt.setValue(org.hl7.fhir.r4.model.BiologicallyDerivedProduct.BiologicallyDerivedProductStorageScale.NULL);
337                break;
338        }
339        return tgt;
340    }
341}