Java Code Examples for ims.clinical.vo.LocalAnaestheticAdministeredVo

The following are top voted examples for showing how to use ims.clinical.vo.LocalAnaestheticAdministeredVo. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void addAnaesthetisRow(LocalAnaestheticAdministeredVo localAnaestheticAdministeredVo)
{
	DynamicGridRow newRow = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().newRow();
	newRow.setValue(localAnaestheticAdministeredVo);

	DynamicGridColumn column = null;
	DynamicGridCell cell = null;

	column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_DRUG);
	cell = newRow.getCells().newCell(column, DynamicCellType.ENUMERATION);

	populateLocalAnaesthetic(ims.clinical.vo.lookups.LookupHelper.getLocalAnaesthetic(domain.getLookupService()), cell);
	cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getLocalAnaesthetic() : null);
	cell.setAutoPostBack(true);
	updateCell(cell);

	column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_MLS);
	cell = newRow.getCells().newCell(column, DynamicCellType.DECIMAL);
	cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getMls() : null);
	form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().setSelectedRow(null);
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newRowToAnaesthetic(LocalAnaestheticAdministeredVo anaesthetic)
{
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdAnaesthetic().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_ANAESTHETIC), DynamicCellType.ENUMERATION);
	nRow.setValue(anaesthetic);
	if (anaesthetic != null && anaesthetic.getLocalAnaestheticIsNotNull())
	{
		DynamicGridCellItem item = cell.getItems().newItem(anaesthetic.getLocalAnaesthetic().getText());
		item.setValue(anaesthetic.getLocalAnaesthetic());
		cell.setValue(anaesthetic.getLocalAnaesthetic());
	}
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getBatchNo());
	cell.setStringMaxLength(20);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getExpiryDate());
}
 
Example 3
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void addAnaesthetisRow(LocalAnaestheticAdministeredVo localAnaestheticAdministeredVo)
{
	DynamicGridRow newRow = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().newRow();
	newRow.setValue(localAnaestheticAdministeredVo);

	DynamicGridColumn column = null;
	DynamicGridCell cell = null;

	column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_DRUG);
	cell = newRow.getCells().newCell(column, DynamicCellType.ENUMERATION);

	populateLocalAnaesthetic(ims.clinical.vo.lookups.LookupHelper.getLocalAnaesthetic(domain.getLookupService()), cell);
	cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getLocalAnaesthetic() : null);
	cell.setAutoPostBack(true);
	updateCell(cell);

	column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_MLS);
	cell = newRow.getCells().newCell(column, DynamicCellType.DECIMAL);
	cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getMls() : null);
	form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().setSelectedRow(null);
}
 
Example 4
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newRowToAnaesthetic(LocalAnaestheticAdministeredVo anaesthetic)
{
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdAnaesthetic().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_ANAESTHETIC), DynamicCellType.ENUMERATION);
	nRow.setValue(anaesthetic);
	if (anaesthetic != null && anaesthetic.getLocalAnaestheticIsNotNull())
	{
		DynamicGridCellItem item = cell.getItems().newItem(anaesthetic.getLocalAnaesthetic().getText());
		item.setValue(anaesthetic.getLocalAnaesthetic());
		cell.setValue(anaesthetic.getLocalAnaesthetic());
	}
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getBatchNo());
	cell.setStringMaxLength(20);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getExpiryDate());
}
 
Example 5
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void addAnaesthetisRow(LocalAnaestheticAdministeredVo localAnaestheticAdministeredVo)
{
	DynamicGridRow newRow = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().newRow();
	newRow.setValue(localAnaestheticAdministeredVo);

	DynamicGridColumn column = null;
	DynamicGridCell cell = null;

	column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_DRUG);
	cell = newRow.getCells().newCell(column, DynamicCellType.ENUMERATION);

	populateLocalAnaesthetic(ims.clinical.vo.lookups.LookupHelper.getLocalAnaesthetic(domain.getLookupService()), cell);
	cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getLocalAnaesthetic() : null);
	cell.setAutoPostBack(true);
	updateCell(cell);

	column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_MLS);
	cell = newRow.getCells().newCell(column, DynamicCellType.DECIMAL);
	cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getMls() : null);
	form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().setSelectedRow(null);
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newRowToAnaesthetic(LocalAnaestheticAdministeredVo anaesthetic)
{
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdAnaesthetic().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_ANAESTHETIC), DynamicCellType.ENUMERATION);
	nRow.setValue(anaesthetic);
	if (anaesthetic != null && anaesthetic.getLocalAnaestheticIsNotNull())
	{
		DynamicGridCellItem item = cell.getItems().newItem(anaesthetic.getLocalAnaesthetic().getText());
		item.setValue(anaesthetic.getLocalAnaesthetic());
		cell.setValue(anaesthetic.getLocalAnaesthetic());
	}
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getBatchNo());
	cell.setStringMaxLength(20);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getExpiryDate());
}
 
Example 7
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void addAnaesthetisRow(LocalAnaestheticAdministeredVo localAnaestheticAdministeredVo)
{
	DynamicGridRow newRow = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getRows().newRow();
	newRow.setValue(localAnaestheticAdministeredVo);

	DynamicGridColumn column = null;
	DynamicGridCell cell = null;

	column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_DRUG);
	cell = newRow.getCells().newCell(column, DynamicCellType.ENUMERATION);

	populateLocalAnaesthetic(ims.clinical.vo.lookups.LookupHelper.getLocalAnaesthetic(domain.getLookupService()), cell);
	cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getLocalAnaesthetic() : null);
	cell.setAutoPostBack(true);
	updateCell(cell);

	column = form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().getColumns().getByIdentifier(COL_MLS);
	cell = newRow.getCells().newCell(column, DynamicCellType.DECIMAL);
	cell.setValue(localAnaestheticAdministeredVo != null ? localAnaestheticAdministeredVo.getMls() : null);
	form.lyr1().tabDetails().ctn1().dyngrdAnaesthetis().setSelectedRow(null);
}
 
Example 8
Project: openmaxims-linux   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newRowToAnaesthetic(LocalAnaestheticAdministeredVo anaesthetic)
{
	DynamicGridColumnCollection columns = form.lyrMain().tabDetails().dyngrdAnaesthetic().getColumns();
	DynamicGridRow nRow = form.lyrMain().tabDetails().dyngrdAnaesthetic().getRows().newRow();
	DynamicGridCell cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_ANAESTHETIC), DynamicCellType.ENUMERATION);
	nRow.setValue(anaesthetic);
	if (anaesthetic != null && anaesthetic.getLocalAnaestheticIsNotNull())
	{
		DynamicGridCellItem item = cell.getItems().newItem(anaesthetic.getLocalAnaesthetic().getText());
		item.setValue(anaesthetic.getLocalAnaesthetic());
		cell.setValue(anaesthetic.getLocalAnaesthetic());
	}
	cell.setAutoPostBack(true);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_BATCHNO), DynamicCellType.STRING);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getBatchNo());
	cell.setStringMaxLength(20);
	cell = nRow.getCells().newCell(columns.getByIdentifier(COLUMN_EXPIRYDATE), DynamicCellType.DATE);
	cell.setValue(anaesthetic == null ? null : anaesthetic.getExpiryDate());
}
 
Example 9
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
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 10
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
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 11
Project: openMAXIMS   File: Logic.java   Source Code and License 4 votes vote down vote up
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 12
Project: openmaxims-linux   File: Logic.java   Source Code and License 4 votes vote down vote up
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();
}