public static org.opencds.vmr.v1_0.schema.BodySite pushOut(BodySite source) { if (source == null) return null; org.opencds.vmr.v1_0.schema.BodySite target = new org.opencds.vmr.v1_0.schema.BodySite(); if (source.getBodySiteCode() != null) target.setBodySiteCode(MappingUtility.cDInternal2CD(source.getBodySiteCode())); if (source.getLaterality() != null) target.setLaterality(MappingUtility.cDInternal2CD(source.getLaterality())); return target; }
/** * Populate internal vMR object from corresponding external vMR object * * @param source external vMR object * @param mu MappingUtility instance * @return populated internal vMR structure; null if provided source parameter is null */ public static BodySite pullIn(org.opencds.vmr.v1_0.schema.BodySite source, MappingUtility mu) { if (source == null) return null; BodySite target = new BodySite(); if (source.getBodySiteCode() != null) target.setBodySiteCode(MappingUtility.cD2CDInternal(source.getBodySiteCode())); if (source.getLaterality() != null) target.setLaterality(MappingUtility.cD2CDInternal(source.getLaterality())); return target; }