Java 类ims.core.vo.InsuranceVo 实例源码

项目:AvoinApotti    文件:A28VoMapper.java   
protected void renderInsuranceToIN1(InsuranceVo insurance,IN1 in1,ProviderSystemVo providerSystem) throws HL7Exception
{
    if(insurance!=null||in1==null||providerSystem==null)
    {
    // Medical Card / Insurance 

    //IN1-28
        in1.getSetIDIN1().setValue("1");
        if(insurance.getHealthActCategoryIsNotNull())
        {
            in1.getPreAdmitCert().setValue(svc.getRemoteLookup(insurance.getHealthActCategory().getID(), providerSystem.getCodeSystem().getText()));
        }
    //IN1-35
    //IN1-31
        if(insurance.getMedicalCardProvedIsNotNull())
        {
            in1.getBillingStatus().setValue(svc.getRemoteLookup(insurance.getMedicalCardProved().getID(), providerSystem.getCodeSystem().getText()));
        }
    //IN1-14-3
        if(insurance.getEligibilityProofIsNotNull())
        {
            in1.getAuthorizationInformation().getSource().setValue(insurance.getEligibilityProof());
        }
    //IN1-29
        if(insurance.getMedicalCardNoIsNotNull())
        {
            in1.getCompanyPlanCode().setValue(insurance.getMedicalCardNo());
        }
    }

}
项目:AvoinApotti    文件:A28VoMapper.java   
protected void renderEHICToIN1(InsuranceVo insurance, IN1 in1,ProviderSystemVo providerSystem) throws HL7Exception {
    if (insurance != null || in1 == null || providerSystem == null)
    {
        in1.getSetIDIN1().setValue("2");
        // IN1-2
        in1.getInsurancePlanID().getIdentifier().setValue("EHIC");
        // IN1-3
        in1.getInsuranceCompanyID(0).getID().setValue("EHIC");
        // IN1-36
        if (insurance.getEHICNumberIsNotNull())
        {
            in1.getPolicyNumber().setValue(insurance.getEHICNumber());
        }
        // IN1-13
        if (insurance.getEHICExpiryDateIsNotNull())
        {
            in1.getPlanExpirationDate().setValue(
                    insurance.getEHICExpiryDate().toString(DateFormat.ISO));
        }
        // IN1-5-6
        if (insurance.getEHICCountryIsNotNull())
        {
            in1.getInsuranceCompanyAddress(0).getCountry().setValue(svc.getRemoteLookup(insurance.getEHICCountry().getID(),providerSystem.getCodeSystem().getText()));
        }
        // IN1-4
        if (insurance.getEHICInstitutionIsNotNull())
        {
            in1.getInsuranceCompanyName(0).getOrganizationName().setValue(insurance.getEHICInstitution());
        }
    }
}
项目:openMAXIMS    文件:A28VoMapper.java   
protected void renderInsuranceToIN1(InsuranceVo insurance,IN1 in1,ProviderSystemVo providerSystem) throws HL7Exception
{
    if(insurance!=null||in1==null||providerSystem==null)
    {
    // Medical Card / Insurance 

    //IN1-28
        in1.getSetIDIN1().setValue("1");
        if(insurance.getHealthActCategoryIsNotNull())
        {
            in1.getPreAdmitCert().setValue(svc.getRemoteLookup(insurance.getHealthActCategory().getID(), providerSystem.getCodeSystem().getText()));
        }
    //IN1-35
    //IN1-31
        if(insurance.getMedicalCardProvedIsNotNull())
        {
            in1.getBillingStatus().setValue(svc.getRemoteLookup(insurance.getMedicalCardProved().getID(), providerSystem.getCodeSystem().getText()));
        }
    //IN1-14-3
        if(insurance.getEligibilityProofIsNotNull())
        {
            in1.getAuthorizationInformation().getSource().setValue(insurance.getEligibilityProof());
        }
    //IN1-29
        if(insurance.getMedicalCardNoIsNotNull())
        {
            in1.getCompanyPlanCode().setValue(insurance.getMedicalCardNo());
        }
    }

}
项目:openMAXIMS    文件:A28VoMapper.java   
protected void renderEHICToIN1(InsuranceVo insurance, IN1 in1,ProviderSystemVo providerSystem) throws HL7Exception {
    if (insurance != null || in1 == null || providerSystem == null)
    {
        in1.getSetIDIN1().setValue("2");
        // IN1-2
        in1.getInsurancePlanID().getIdentifier().setValue("EHIC");
        // IN1-3
        in1.getInsuranceCompanyID(0).getID().setValue("EHIC");
        // IN1-36
        if (insurance.getEHICNumberIsNotNull())
        {
            in1.getPolicyNumber().setValue(insurance.getEHICNumber());
        }
        // IN1-13
        if (insurance.getEHICExpiryDateIsNotNull())
        {
            in1.getPlanExpirationDate().setValue(
                    insurance.getEHICExpiryDate().toString(DateFormat.ISO));
        }
        // IN1-5-6
        if (insurance.getEHICCountryIsNotNull())
        {
            in1.getInsuranceCompanyAddress(0).getCountry().setValue(svc.getRemoteLookup(insurance.getEHICCountry().getID(),providerSystem.getCodeSystem().getText()));
        }
        // IN1-4
        if (insurance.getEHICInstitutionIsNotNull())
        {
            in1.getInsuranceCompanyName(0).getOrganizationName().setValue(insurance.getEHICInstitution());
        }
    }
}
项目:openmaxims-linux    文件:A28VoMapper.java   
protected void renderInsuranceToIN1(InsuranceVo insurance,IN1 in1,ProviderSystemVo providerSystem) throws HL7Exception
{
    if(insurance!=null||in1==null||providerSystem==null)
    {
    // Medical Card / Insurance 

    //IN1-28
        in1.getSetIDIN1().setValue("1");
        if(insurance.getHealthActCategoryIsNotNull())
        {
            in1.getPreAdmitCert().setValue(svc.getRemoteLookup(insurance.getHealthActCategory().getID(), providerSystem.getCodeSystem().getText()));
        }
    //IN1-35
    //IN1-31
        if(insurance.getMedicalCardProvedIsNotNull())
        {
            in1.getBillingStatus().setValue(svc.getRemoteLookup(insurance.getMedicalCardProved().getID(), providerSystem.getCodeSystem().getText()));
        }
    //IN1-14-3
        if(insurance.getEligibilityProofIsNotNull())
        {
            in1.getAuthorizationInformation().getSource().setValue(insurance.getEligibilityProof());
        }
    //IN1-29
        if(insurance.getMedicalCardNoIsNotNull())
        {
            in1.getCompanyPlanCode().setValue(insurance.getMedicalCardNo());
        }
    }

}
项目:openmaxims-linux    文件:A28VoMapper.java   
protected void renderEHICToIN1(InsuranceVo insurance, IN1 in1,ProviderSystemVo providerSystem) throws HL7Exception {
    if (insurance != null || in1 == null || providerSystem == null)
    {
        in1.getSetIDIN1().setValue("2");
        // IN1-2
        in1.getInsurancePlanID().getIdentifier().setValue("EHIC");
        // IN1-3
        in1.getInsuranceCompanyID(0).getID().setValue("EHIC");
        // IN1-36
        if (insurance.getEHICNumberIsNotNull())
        {
            in1.getPolicyNumber().setValue(insurance.getEHICNumber());
        }
        // IN1-13
        if (insurance.getEHICExpiryDateIsNotNull())
        {
            in1.getPlanExpirationDate().setValue(
                    insurance.getEHICExpiryDate().toString(DateFormat.ISO));
        }
        // IN1-5-6
        if (insurance.getEHICCountryIsNotNull())
        {
            in1.getInsuranceCompanyAddress(0).getCountry().setValue(svc.getRemoteLookup(insurance.getEHICCountry().getID(),providerSystem.getCodeSystem().getText()));
        }
        // IN1-4
        if (insurance.getEHICInstitutionIsNotNull())
        {
            in1.getInsuranceCompanyName(0).getOrganizationName().setValue(insurance.getEHICInstitution());
        }
    }
}