Java Code Examples for ims.clinical.vo.lookups.CataractDressingsCollection.size()

The following are Jave code examples for showing how to use size() of the ims.clinical.vo.lookups.CataractDressingsCollection class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private void clearCataractIntraOperativeDetails()
{
	form.lyrMain().tabDetails().grdDressings().getRows().clear();
	form.lyrMain().tabDetails().dyngrdMedication().getRows().clear();
	form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().clear();
	form.lyrMain().tabDetails().dyngrdSkinPreperation().getRows().clear();
	form.lyrMain().tabDetails().grpYesNo().setValue(null);
	form.lyrMain().tabDetails().intSwapCount().setValue(null);
	CataractDressingsCollection dressings = LookupHelper.getCataractDressings(domain.getLookupService());
	if (dressings == null)
	{
		return;
	}
	for (int i = 0; i < dressings.size(); i++)
	{
		if (dressings.get(i).isActive())
		{
			grdDressingsRow nRow = form.lyrMain().tabDetails().grdDressings().getRows().newRow();
			nRow.setValue(dressings.get(i));
			nRow.setColDressings(dressings.get(i).getText());
			nRow.setColSelect(false);
		}
	}

}
 
Example 2
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
private void clearCataractIntraOperativeDetails()
{
	form.lyrMain().tabDetails().grdDressings().getRows().clear();
	form.lyrMain().tabDetails().dyngrdMedication().getRows().clear();
	form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().clear();
	form.lyrMain().tabDetails().dyngrdSkinPreperation().getRows().clear();
	form.lyrMain().tabDetails().grpYesNo().setValue(null);
	form.lyrMain().tabDetails().intSwapCount().setValue(null);
	CataractDressingsCollection dressings = LookupHelper.getCataractDressings(domain.getLookupService());
	if (dressings == null)
	{
		return;
	}
	for (int i = 0; i < dressings.size(); i++)
	{
		if (dressings.get(i).isActive())
		{
			grdDressingsRow nRow = form.lyrMain().tabDetails().grdDressings().getRows().newRow();
			nRow.setValue(dressings.get(i));
			nRow.setColDressings(dressings.get(i).getText());
			nRow.setColSelect(false);
		}
	}

}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 6 votes
private void clearCataractIntraOperativeDetails()
{
	form.lyrMain().tabDetails().grdDressings().getRows().clear();
	form.lyrMain().tabDetails().dyngrdMedication().getRows().clear();
	form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().clear();
	form.lyrMain().tabDetails().dyngrdSkinPreperation().getRows().clear();
	form.lyrMain().tabDetails().grpYesNo().setValue(null);
	form.lyrMain().tabDetails().intSwapCount().setValue(null);
	CataractDressingsCollection dressings = LookupHelper.getCataractDressings(domain.getLookupService());
	if (dressings == null)
	{
		return;
	}
	for (int i = 0; i < dressings.size(); i++)
	{
		if (dressings.get(i).isActive())
		{
			grdDressingsRow nRow = form.lyrMain().tabDetails().grdDressings().getRows().newRow();
			nRow.setValue(dressings.get(i));
			nRow.setColDressings(dressings.get(i).getText());
			nRow.setColSelect(false);
		}
	}

}
 
Example 4
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 6 votes
private void clearCataractIntraOperativeDetails()
{
	form.lyrMain().tabDetails().grdDressings().getRows().clear();
	form.lyrMain().tabDetails().dyngrdMedication().getRows().clear();
	form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().clear();
	form.lyrMain().tabDetails().dyngrdSkinPreperation().getRows().clear();
	form.lyrMain().tabDetails().grpYesNo().setValue(null);
	form.lyrMain().tabDetails().intSwapCount().setValue(null);
	CataractDressingsCollection dressings = LookupHelper.getCataractDressings(domain.getLookupService());
	if (dressings == null)
	{
		return;
	}
	for (int i = 0; i < dressings.size(); i++)
	{
		if (dressings.get(i).isActive())
		{
			grdDressingsRow nRow = form.lyrMain().tabDetails().grdDressings().getRows().newRow();
			nRow.setValue(dressings.get(i));
			nRow.setColDressings(dressings.get(i).getText());
			nRow.setColSelect(false);
		}
	}

}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 4 votes
private void populateCataractIntraOperativeDetails(CataractIntraOperativeDetailVo details)
{
	clearCataractIntraOperativeDetails();

	if (details == null)
		return;
	if (details.getMedicationsIsNotNull())
	{
		PatientMedicationLiteVoCollection medications = details.getMedications();
		for (int i = 0; i < medications.size(); i++)
		{
			PatientMedicationLiteVo pMedi = medications.get(i);
			if (pMedi != null)
			{
				addRowToMedication(pMedi);
			}
		}
	}
	if (details.getSkinPreperationUsedIsNotNull())
	{
		SkinPreperationVoCollection skinps = details.getSkinPreperationUsed();
		for (int i = 0; i < skinps.size(); i++)
		{
			SkinPreperationVo skin = skinps.get(i);
			if (skin != null)
			{
				newRowToSkinPreparation(skin);

			}
		}
	}
	if (details.getLocalAnaestheticUsedIsNotNull())
	{
		LocalAnaestheticAdministeredVoCollection anests = details.getLocalAnaestheticUsed();
		for (int i = 0; i < anests.size(); i++)
		{
			LocalAnaestheticAdministeredVo anest = anests.get(i);
			if (anest != null)
			{
				newRowToAnaesthetic(anest);
			}
		}
	}
	// GridDressings
	if (details.getDressingsIsNotNull())
	{
		CataractDressingsCollection dresings = details.getDressings();
		for (int i = 0; i < dresings.size(); i++)
		{
			form.lyrMain().tabDetails().grdDressings().getRowByValue(dresings.get(i)).setColSelect(true);
		}
	}
	// End GridDressings
	form.lyrMain().tabDetails().intSwapCount().setValue(details.getSwabNeedleCount());
	if (details.getWasSwabNeedleCountCorrectIsNotNull())
	{
		form.lyrMain().tabDetails().grpYesNo().setValue(details.getWasSwabNeedleCountCorrect().equals(YesNo.YES) ? grpYesNoEnumeration.rdoYes : grpYesNoEnumeration.rdoNo);
	}
	rebindAllAnaesthetic();
	rebindAllMedications();
	rebindAllSkinPreparation();
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 4 votes
private void populateCataractIntraOperativeDetails(CataractIntraOperativeDetailVo details)
{
	clearCataractIntraOperativeDetails();

	if (details == null)
		return;
	if (details.getMedicationsIsNotNull())
	{
		PatientMedicationLiteVoCollection medications = details.getMedications();
		for (int i = 0; i < medications.size(); i++)
		{
			PatientMedicationLiteVo pMedi = medications.get(i);
			if (pMedi != null)
			{
				addRowToMedication(pMedi);
			}
		}
	}
	if (details.getSkinPreperationUsedIsNotNull())
	{
		SkinPreperationVoCollection skinps = details.getSkinPreperationUsed();
		for (int i = 0; i < skinps.size(); i++)
		{
			SkinPreperationVo skin = skinps.get(i);
			if (skin != null)
			{
				newRowToSkinPreparation(skin);

			}
		}
	}
	if (details.getLocalAnaestheticUsedIsNotNull())
	{
		LocalAnaestheticAdministeredVoCollection anests = details.getLocalAnaestheticUsed();
		for (int i = 0; i < anests.size(); i++)
		{
			LocalAnaestheticAdministeredVo anest = anests.get(i);
			if (anest != null)
			{
				newRowToAnaesthetic(anest);
			}
		}
	}
	// GridDressings
	if (details.getDressingsIsNotNull())
	{
		CataractDressingsCollection dresings = details.getDressings();
		for (int i = 0; i < dresings.size(); i++)
		{
			form.lyrMain().tabDetails().grdDressings().getRowByValue(dresings.get(i)).setColSelect(true);
		}
	}
	// End GridDressings
	form.lyrMain().tabDetails().intSwapCount().setValue(details.getSwabNeedleCount());
	if (details.getWasSwabNeedleCountCorrectIsNotNull())
	{
		form.lyrMain().tabDetails().grpYesNo().setValue(details.getWasSwabNeedleCountCorrect().equals(YesNo.YES) ? grpYesNoEnumeration.rdoYes : grpYesNoEnumeration.rdoNo);
	}
	rebindAllAnaesthetic();
	rebindAllMedications();
	rebindAllSkinPreparation();
}
 
Example 7
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 4 votes
private void populateCataractIntraOperativeDetails(CataractIntraOperativeDetailVo details)
{
	clearCataractIntraOperativeDetails();

	if (details == null)
		return;
	if (details.getMedicationsIsNotNull())
	{
		PatientMedicationLiteVoCollection medications = details.getMedications();
		for (int i = 0; i < medications.size(); i++)
		{
			PatientMedicationLiteVo pMedi = medications.get(i);
			if (pMedi != null)
			{
				addRowToMedication(pMedi);
			}
		}
	}
	if (details.getSkinPreperationUsedIsNotNull())
	{
		SkinPreperationVoCollection skinps = details.getSkinPreperationUsed();
		for (int i = 0; i < skinps.size(); i++)
		{
			SkinPreperationVo skin = skinps.get(i);
			if (skin != null)
			{
				newRowToSkinPreparation(skin);

			}
		}
	}
	if (details.getLocalAnaestheticUsedIsNotNull())
	{
		LocalAnaestheticAdministeredVoCollection anests = details.getLocalAnaestheticUsed();
		for (int i = 0; i < anests.size(); i++)
		{
			LocalAnaestheticAdministeredVo anest = anests.get(i);
			if (anest != null)
			{
				newRowToAnaesthetic(anest);
			}
		}
	}
	// GridDressings
	if (details.getDressingsIsNotNull())
	{
		CataractDressingsCollection dresings = details.getDressings();
		for (int i = 0; i < dresings.size(); i++)
		{
			form.lyrMain().tabDetails().grdDressings().getRowByValue(dresings.get(i)).setColSelect(true);
		}
	}
	// End GridDressings
	form.lyrMain().tabDetails().intSwapCount().setValue(details.getSwabNeedleCount());
	if (details.getWasSwabNeedleCountCorrectIsNotNull())
	{
		form.lyrMain().tabDetails().grpYesNo().setValue(details.getWasSwabNeedleCountCorrect().equals(YesNo.YES) ? grpYesNoEnumeration.rdoYes : grpYesNoEnumeration.rdoNo);
	}
	rebindAllAnaesthetic();
	rebindAllMedications();
	rebindAllSkinPreparation();
}
 
Example 8
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 4 votes
private void populateCataractIntraOperativeDetails(CataractIntraOperativeDetailVo details)
{
	clearCataractIntraOperativeDetails();

	if (details == null)
		return;
	if (details.getMedicationsIsNotNull())
	{
		PatientMedicationLiteVoCollection medications = details.getMedications();
		for (int i = 0; i < medications.size(); i++)
		{
			PatientMedicationLiteVo pMedi = medications.get(i);
			if (pMedi != null)
			{
				addRowToMedication(pMedi);
			}
		}
	}
	if (details.getSkinPreperationUsedIsNotNull())
	{
		SkinPreperationVoCollection skinps = details.getSkinPreperationUsed();
		for (int i = 0; i < skinps.size(); i++)
		{
			SkinPreperationVo skin = skinps.get(i);
			if (skin != null)
			{
				newRowToSkinPreparation(skin);

			}
		}
	}
	if (details.getLocalAnaestheticUsedIsNotNull())
	{
		LocalAnaestheticAdministeredVoCollection anests = details.getLocalAnaestheticUsed();
		for (int i = 0; i < anests.size(); i++)
		{
			LocalAnaestheticAdministeredVo anest = anests.get(i);
			if (anest != null)
			{
				newRowToAnaesthetic(anest);
			}
		}
	}
	// GridDressings
	if (details.getDressingsIsNotNull())
	{
		CataractDressingsCollection dresings = details.getDressings();
		for (int i = 0; i < dresings.size(); i++)
		{
			form.lyrMain().tabDetails().grdDressings().getRowByValue(dresings.get(i)).setColSelect(true);
		}
	}
	// End GridDressings
	form.lyrMain().tabDetails().intSwapCount().setValue(details.getSwabNeedleCount());
	if (details.getWasSwabNeedleCountCorrectIsNotNull())
	{
		form.lyrMain().tabDetails().grpYesNo().setValue(details.getWasSwabNeedleCountCorrect().equals(YesNo.YES) ? grpYesNoEnumeration.rdoYes : grpYesNoEnumeration.rdoNo);
	}
	rebindAllAnaesthetic();
	rebindAllMedications();
	rebindAllSkinPreparation();
}