
001package org.hl7.fhir.convertors.conv43_50.resources43_50; 002 003import org.hl7.fhir.convertors.context.ConversionContext43_50; 004import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.CodeableConcept43_50; 005import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Identifier43_50; 006import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Period43_50; 007import org.hl7.fhir.convertors.conv43_50.datatypes43_50.general43_50.Quantity43_50; 008import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Canonical43_50; 009import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.DateTime43_50; 010import org.hl7.fhir.convertors.conv43_50.datatypes43_50.primitive43_50.Integer43_50; 011import org.hl7.fhir.convertors.conv43_50.datatypes43_50.special43_50.Reference43_50; 012import org.hl7.fhir.exceptions.FHIRException; 013import org.hl7.fhir.r5.model.Enumeration; 014import org.hl7.fhir.r5.model.MeasureReport; 015 016/* 017 Copyright (c) 2011+, HL7, Inc. 018 All rights reserved. 019 020 Redistribution and use in source and binary forms, with or without modification, 021 are permitted provided that the following conditions are met: 022 023 * Redistributions of source code must retain the above copyright notice, this 024 list of conditions and the following disclaimer. 025 * Redistributions in binary form must reproduce the above copyright notice, 026 this list of conditions and the following disclaimer in the documentation 027 and/or other materials provided with the distribution. 028 * Neither the name of HL7 nor the names of its contributors may be used to 029 endorse or promote products derived from this software without specific 030 prior written permission. 031 032 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 033 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 034 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 035 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 036 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 037 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 038 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 039 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 040 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 041 POSSIBILITY OF SUCH DAMAGE. 042 043*/ 044// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0 045public class MeasureReport43_50 { 046 047 public static org.hl7.fhir.r5.model.MeasureReport convertMeasureReport(org.hl7.fhir.r4b.model.MeasureReport src) throws FHIRException { 048 if (src == null) 049 return null; 050 org.hl7.fhir.r5.model.MeasureReport tgt = new org.hl7.fhir.r5.model.MeasureReport(); 051 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyDomainResource(src, tgt); 052 for (org.hl7.fhir.r4b.model.Identifier t : src.getIdentifier()) 053 tgt.addIdentifier(Identifier43_50.convertIdentifier(t)); 054 if (src.hasStatus()) 055 tgt.setStatusElement(convertMeasureReportStatus(src.getStatusElement())); 056 if (src.hasType()) 057 tgt.setTypeElement(convertMeasureReportType(src.getTypeElement())); 058 if (src.hasMeasure()) 059 tgt.setMeasureElement(Canonical43_50.convertCanonical(src.getMeasureElement())); 060 if (src.hasSubject()) 061 tgt.setSubject(Reference43_50.convertReference(src.getSubject())); 062 if (src.hasDate()) 063 tgt.setDateElement(DateTime43_50.convertDateTime(src.getDateElement())); 064 if (src.hasReporter()) 065 tgt.setReporter(Reference43_50.convertReference(src.getReporter())); 066 if (src.hasPeriod()) 067 tgt.setPeriod(Period43_50.convertPeriod(src.getPeriod())); 068 if (src.hasImprovementNotation()) 069 tgt.setImprovementNotation(CodeableConcept43_50.convertCodeableConcept(src.getImprovementNotation())); 070 for (org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupComponent t : src.getGroup()) 071 tgt.addGroup(convertMeasureReportGroupComponent(t)); 072 for (org.hl7.fhir.r4b.model.Reference t : src.getEvaluatedResource()) 073 tgt.addEvaluatedResource(Reference43_50.convertReference(t)); 074 return tgt; 075 } 076 077 public static org.hl7.fhir.r4b.model.MeasureReport convertMeasureReport(org.hl7.fhir.r5.model.MeasureReport src) throws FHIRException { 078 if (src == null) 079 return null; 080 org.hl7.fhir.r4b.model.MeasureReport tgt = new org.hl7.fhir.r4b.model.MeasureReport(); 081 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyDomainResource(src, tgt); 082 for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) 083 tgt.addIdentifier(Identifier43_50.convertIdentifier(t)); 084 if (src.hasStatus()) 085 tgt.setStatusElement(convertMeasureReportStatus(src.getStatusElement())); 086 if (src.hasType()) 087 tgt.setTypeElement(convertMeasureReportType(src.getTypeElement())); 088 if (src.hasMeasure()) 089 tgt.setMeasureElement(Canonical43_50.convertCanonical(src.getMeasureElement())); 090 if (src.hasSubject()) 091 tgt.setSubject(Reference43_50.convertReference(src.getSubject())); 092 if (src.hasDate()) 093 tgt.setDateElement(DateTime43_50.convertDateTime(src.getDateElement())); 094 if (src.hasReporter()) 095 tgt.setReporter(Reference43_50.convertReference(src.getReporter())); 096 if (src.hasPeriod()) 097 tgt.setPeriod(Period43_50.convertPeriod(src.getPeriod())); 098 if (src.hasImprovementNotation()) 099 tgt.setImprovementNotation(CodeableConcept43_50.convertCodeableConcept(src.getImprovementNotation())); 100 for (org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupComponent t : src.getGroup()) 101 tgt.addGroup(convertMeasureReportGroupComponent(t)); 102 for (org.hl7.fhir.r5.model.Reference t : src.getEvaluatedResource()) 103 tgt.addEvaluatedResource(Reference43_50.convertReference(t)); 104 return tgt; 105 } 106 107 static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MeasureReport.MeasureReportStatus> convertMeasureReportStatus(org.hl7.fhir.r4b.model.Enumeration<org.hl7.fhir.r4b.model.MeasureReport.MeasureReportStatus> src) throws FHIRException { 108 if (src == null || src.isEmpty()) 109 return null; 110 Enumeration<MeasureReport.MeasureReportStatus> tgt = new Enumeration<>(new MeasureReport.MeasureReportStatusEnumFactory()); 111 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); 112 if (src.getValue() == null) { 113 tgt.setValue(null); 114 } else { 115 switch (src.getValue()) { 116 case COMPLETE: 117 tgt.setValue(MeasureReport.MeasureReportStatus.COMPLETE); 118 break; 119 case PENDING: 120 tgt.setValue(MeasureReport.MeasureReportStatus.PENDING); 121 break; 122 case ERROR: 123 tgt.setValue(MeasureReport.MeasureReportStatus.ERROR); 124 break; 125 default: 126 tgt.setValue(MeasureReport.MeasureReportStatus.NULL); 127 break; 128 } 129 } 130 return tgt; 131 } 132 133 static public org.hl7.fhir.r4b.model.Enumeration<org.hl7.fhir.r4b.model.MeasureReport.MeasureReportStatus> convertMeasureReportStatus(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MeasureReport.MeasureReportStatus> src) throws FHIRException { 134 if (src == null || src.isEmpty()) 135 return null; 136 org.hl7.fhir.r4b.model.Enumeration<org.hl7.fhir.r4b.model.MeasureReport.MeasureReportStatus> tgt = new org.hl7.fhir.r4b.model.Enumeration<>(new org.hl7.fhir.r4b.model.MeasureReport.MeasureReportStatusEnumFactory()); 137 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); 138 if (src.getValue() == null) { 139 tgt.setValue(null); 140 } else { 141 switch (src.getValue()) { 142 case COMPLETE: 143 tgt.setValue(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportStatus.COMPLETE); 144 break; 145 case PENDING: 146 tgt.setValue(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportStatus.PENDING); 147 break; 148 case ERROR: 149 tgt.setValue(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportStatus.ERROR); 150 break; 151 default: 152 tgt.setValue(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportStatus.NULL); 153 break; 154 } 155 } 156 return tgt; 157 } 158 159 static public org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MeasureReport.MeasureReportType> convertMeasureReportType(org.hl7.fhir.r4b.model.Enumeration<org.hl7.fhir.r4b.model.MeasureReport.MeasureReportType> src) throws FHIRException { 160 if (src == null || src.isEmpty()) 161 return null; 162 Enumeration<MeasureReport.MeasureReportType> tgt = new Enumeration<>(new MeasureReport.MeasureReportTypeEnumFactory()); 163 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); 164 if (src.getValue() == null) { 165 tgt.setValue(null); 166 } else { 167 switch (src.getValue()) { 168 case INDIVIDUAL: 169 tgt.setValue(MeasureReport.MeasureReportType.INDIVIDUAL); 170 break; 171 case SUBJECTLIST: 172 tgt.setValue(MeasureReport.MeasureReportType.SUBJECTLIST); 173 break; 174 case SUMMARY: 175 tgt.setValue(MeasureReport.MeasureReportType.SUMMARY); 176 break; 177 case DATACOLLECTION: 178 tgt.setValue(MeasureReport.MeasureReportType.DATAEXCHANGE); 179 break; 180 default: 181 tgt.setValue(MeasureReport.MeasureReportType.NULL); 182 break; 183 } 184 } 185 return tgt; 186 } 187 188 static public org.hl7.fhir.r4b.model.Enumeration<org.hl7.fhir.r4b.model.MeasureReport.MeasureReportType> convertMeasureReportType(org.hl7.fhir.r5.model.Enumeration<org.hl7.fhir.r5.model.MeasureReport.MeasureReportType> src) throws FHIRException { 189 if (src == null || src.isEmpty()) 190 return null; 191 org.hl7.fhir.r4b.model.Enumeration<org.hl7.fhir.r4b.model.MeasureReport.MeasureReportType> tgt = new org.hl7.fhir.r4b.model.Enumeration<>(new org.hl7.fhir.r4b.model.MeasureReport.MeasureReportTypeEnumFactory()); 192 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyElement(src, tgt); 193 if (src.getValue() == null) { 194 tgt.setValue(null); 195 } else { 196 switch (src.getValue()) { 197 case INDIVIDUAL: 198 tgt.setValue(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportType.INDIVIDUAL); 199 break; 200 case SUBJECTLIST: 201 tgt.setValue(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportType.SUBJECTLIST); 202 break; 203 case SUMMARY: 204 tgt.setValue(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportType.SUMMARY); 205 break; 206 case DATAEXCHANGE: 207 tgt.setValue(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportType.DATACOLLECTION); 208 break; 209 default: 210 tgt.setValue(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportType.NULL); 211 break; 212 } 213 } 214 return tgt; 215 } 216 217 public static org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupComponent convertMeasureReportGroupComponent(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupComponent src) throws FHIRException { 218 if (src == null) 219 return null; 220 org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupComponent(); 221 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); 222 if (src.hasCode()) 223 tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); 224 for (org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupPopulationComponent t : src.getPopulation()) 225 tgt.addPopulation(convertMeasureReportGroupPopulationComponent(t)); 226 if (src.hasMeasureScore()) 227 tgt.setMeasureScore(Quantity43_50.convertQuantity(src.getMeasureScore())); 228 for (org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupStratifierComponent t : src.getStratifier()) 229 tgt.addStratifier(convertMeasureReportGroupStratifierComponent(t)); 230 return tgt; 231 } 232 233 public static org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupComponent convertMeasureReportGroupComponent(org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupComponent src) throws FHIRException { 234 if (src == null) 235 return null; 236 org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupComponent tgt = new org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupComponent(); 237 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); 238 if (src.hasCode()) 239 tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); 240 for (org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupPopulationComponent t : src.getPopulation()) 241 tgt.addPopulation(convertMeasureReportGroupPopulationComponent(t)); 242 if (src.hasMeasureScoreQuantity()) 243 tgt.setMeasureScore(Quantity43_50.convertQuantity(src.getMeasureScoreQuantity())); 244 for (org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupStratifierComponent t : src.getStratifier()) 245 tgt.addStratifier(convertMeasureReportGroupStratifierComponent(t)); 246 return tgt; 247 } 248 249 public static org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupPopulationComponent convertMeasureReportGroupPopulationComponent(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupPopulationComponent src) throws FHIRException { 250 if (src == null) 251 return null; 252 org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupPopulationComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupPopulationComponent(); 253 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); 254 if (src.hasCode()) 255 tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); 256 if (src.hasCount()) 257 tgt.setCountElement(Integer43_50.convertInteger(src.getCountElement())); 258 if (src.hasSubjectResults()) 259 tgt.setSubjectResults(Reference43_50.convertReference(src.getSubjectResults())); 260 return tgt; 261 } 262 263 public static org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupPopulationComponent convertMeasureReportGroupPopulationComponent(org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupPopulationComponent src) throws FHIRException { 264 if (src == null) 265 return null; 266 org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupPopulationComponent tgt = new org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupPopulationComponent(); 267 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); 268 if (src.hasCode()) 269 tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); 270 if (src.hasCount()) 271 tgt.setCountElement(Integer43_50.convertInteger(src.getCountElement())); 272 if (src.hasSubjectResults()) 273 tgt.setSubjectResults(Reference43_50.convertReference(src.getSubjectResults())); 274 return tgt; 275 } 276 277 public static org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupStratifierComponent convertMeasureReportGroupStratifierComponent(org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupStratifierComponent src) throws FHIRException { 278 if (src == null) 279 return null; 280 org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupStratifierComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupStratifierComponent(); 281 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); 282 for (org.hl7.fhir.r4b.model.CodeableConcept t : src.getCode()) 283 tgt.setCode(CodeableConcept43_50.convertCodeableConcept(t)); 284 for (org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupComponent t : src.getStratum()) 285 tgt.addStratum(convertStratifierGroupComponent(t)); 286 return tgt; 287 } 288 289 public static org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupStratifierComponent convertMeasureReportGroupStratifierComponent(org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupStratifierComponent src) throws FHIRException { 290 if (src == null) 291 return null; 292 org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupStratifierComponent tgt = new org.hl7.fhir.r4b.model.MeasureReport.MeasureReportGroupStratifierComponent(); 293 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); 294 tgt.addCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); 295 for (org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponent t : src.getStratum()) 296 tgt.addStratum(convertStratifierGroupComponent(t)); 297 return tgt; 298 } 299 300 public static org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponent convertStratifierGroupComponent(org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupComponent src) throws FHIRException { 301 if (src == null) 302 return null; 303 org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponent(); 304 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); 305 if (src.hasValue()) 306 tgt.setValue(CodeableConcept43_50.convertCodeableConcept(src.getValue())); 307 for (org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupComponentComponent t : src.getComponent()) 308 tgt.addComponent(convertStratifierGroupComponentComponent(t)); 309 for (org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupPopulationComponent t : src.getPopulation()) 310 tgt.addPopulation(convertStratifierGroupPopulationComponent(t)); 311 if (src.hasMeasureScore()) 312 tgt.setMeasureScore(Quantity43_50.convertQuantity(src.getMeasureScore())); 313 return tgt; 314 } 315 316 public static org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupComponent convertStratifierGroupComponent(org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponent src) throws FHIRException { 317 if (src == null) 318 return null; 319 org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupComponent tgt = new org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupComponent(); 320 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); 321 if (src.hasValueCodeableConcept()) 322 tgt.setValue(CodeableConcept43_50.convertCodeableConcept(src.getValueCodeableConcept())); 323 for (org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponentComponent t : src.getComponent()) 324 tgt.addComponent(convertStratifierGroupComponentComponent(t)); 325 for (org.hl7.fhir.r5.model.MeasureReport.StratifierGroupPopulationComponent t : src.getPopulation()) 326 tgt.addPopulation(convertStratifierGroupPopulationComponent(t)); 327 if (src.hasMeasureScoreQuantity()) 328 tgt.setMeasureScore(Quantity43_50.convertQuantity(src.getMeasureScoreQuantity())); 329 return tgt; 330 } 331 332 public static org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponentComponent convertStratifierGroupComponentComponent(org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupComponentComponent src) throws FHIRException { 333 if (src == null) 334 return null; 335 org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponentComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponentComponent(); 336 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); 337 if (src.hasCode()) 338 tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); 339 if (src.hasValue()) 340 tgt.setValue(CodeableConcept43_50.convertCodeableConcept(src.getValue())); 341 return tgt; 342 } 343 344 public static org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupComponentComponent convertStratifierGroupComponentComponent(org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponentComponent src) throws FHIRException { 345 if (src == null) 346 return null; 347 org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupComponentComponent tgt = new org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupComponentComponent(); 348 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); 349 if (src.hasCode()) 350 tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); 351 if (src.hasValueCodeableConcept()) 352 tgt.setValue(CodeableConcept43_50.convertCodeableConcept(src.getValueCodeableConcept())); 353 return tgt; 354 } 355 356 public static org.hl7.fhir.r5.model.MeasureReport.StratifierGroupPopulationComponent convertStratifierGroupPopulationComponent(org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupPopulationComponent src) throws FHIRException { 357 if (src == null) 358 return null; 359 org.hl7.fhir.r5.model.MeasureReport.StratifierGroupPopulationComponent tgt = new org.hl7.fhir.r5.model.MeasureReport.StratifierGroupPopulationComponent(); 360 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); 361 if (src.hasCode()) 362 tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); 363 if (src.hasCount()) 364 tgt.setCountElement(Integer43_50.convertInteger(src.getCountElement())); 365 if (src.hasSubjectResults()) 366 tgt.setSubjectResults(Reference43_50.convertReference(src.getSubjectResults())); 367 return tgt; 368 } 369 370 public static org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupPopulationComponent convertStratifierGroupPopulationComponent(org.hl7.fhir.r5.model.MeasureReport.StratifierGroupPopulationComponent src) throws FHIRException { 371 if (src == null) 372 return null; 373 org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupPopulationComponent tgt = new org.hl7.fhir.r4b.model.MeasureReport.StratifierGroupPopulationComponent(); 374 ConversionContext43_50.INSTANCE.getVersionConvertor_43_50().copyBackboneElement(src, tgt); 375 if (src.hasCode()) 376 tgt.setCode(CodeableConcept43_50.convertCodeableConcept(src.getCode())); 377 if (src.hasCount()) 378 tgt.setCountElement(Integer43_50.convertInteger(src.getCountElement())); 379 if (src.hasSubjectResults()) 380 tgt.setSubjectResults(Reference43_50.convertReference(src.getSubjectResults())); 381 return tgt; 382 } 383}