test_class.file: api/src/test/java/org/openmrs/module/CDAGenerator/api/CDAHelperTest.java
test_class.identifier: CDAHelperTest
test_class.superclass: extends BaseModuleContextSensitiveTest
test_case.body: @Test
  	public void shouldPassIfBuildEffectiveTimeinIVLIsCalledOneValues()
  	{
  		IVL_TS time=CDAHelper.buildEffectiveTimeinIVL(new Date(), null);
  		IVL_TS time1=CDAHelper.buildEffectiveTimeinIVL(null, new Date());
  		
  		IVXB_TS low=time.getLow();
  		IVXB_TS high=time.getHigh();
  		
  		IVXB_TS low1=time1.getLow();
  		IVXB_TS high1=time1.getHigh();
  		
  		
  		String value=low.getValue();
  		NullFlavor nf=high.getNullFlavor();
  		
  		NullFlavor nf1=low1.getNullFlavor();
  		String value1=high1.getValue();
  		
  		Assert.assertNotNull(value);
  		Assert.assertNotNull(nf);
  		
  		Assert.assertNotNull(nf1);
  		Assert.assertNotNull(value1);
  	}
test_case.class_method_signature: CDAHelperTest.shouldPassIfBuildEffectiveTimeinIVLIsCalledOneValues()
test_case.full_signature: @Test public void shouldPassIfBuildEffectiveTimeinIVLIsCalledOneValues()
test_case.identifier: shouldPassIfBuildEffectiveTimeinIVLIsCalledOneValues
test_case.invocations: buildEffectiveTimeinIVL buildEffectiveTimeinIVL getLow getHigh getLow getHigh getValue getNullFlavor getNullFlavor getValue assertNotNull assertNotNull assertNotNull assertNotNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldPassIfBuildEffectiveTimeinIVLIsCalledOneValues()
focal_class.file: api/src/main/java/org/openmrs/module/CDAGenerator/api/CDAHelper.java
focal_class.identifier: CDAHelper
focal_class.class_method_signature: CDAHelper.getDateFormat()
focal_class.full_signature: public static SimpleDateFormat getDateFormat()
focal_class.identifier: getDateFormat
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: SimpleDateFormat
focal_class.signature: SimpleDateFormat getDateFormat()
focal_class.class_method_signature: CDAHelper.buildEffectiveTimeinIVL(Date d , Date d1)
focal_class.full_signature: public static IVL_TS buildEffectiveTimeinIVL(Date d , Date d1)
focal_class.identifier: buildEffectiveTimeinIVL
focal_class.modifiers: public static
focal_class.parameters: (Date d , Date d1)
focal_class.return: IVL_TS
focal_class.signature: IVL_TS buildEffectiveTimeinIVL(Date d , Date d1)
focal_class.class_method_signature: CDAHelper.buildEffectiveTimeinIVL(Date d)
focal_class.full_signature: public static IVL_TS buildEffectiveTimeinIVL(Date d)
focal_class.identifier: buildEffectiveTimeinIVL
focal_class.modifiers: public static
focal_class.parameters: (Date d)
focal_class.return: IVL_TS
focal_class.signature: IVL_TS buildEffectiveTimeinIVL(Date d)
focal_class.class_method_signature: CDAHelper.buildTemplateID(String root , String extension ,String assigningAuthorityName)
focal_class.full_signature: public static II buildTemplateID(String root , String extension ,String assigningAuthorityName)
focal_class.identifier: buildTemplateID
focal_class.modifiers: public static
focal_class.parameters: (String root , String extension ,String assigningAuthorityName)
focal_class.return: II
focal_class.signature: II buildTemplateID(String root , String extension ,String assigningAuthorityName)
focal_class.class_method_signature: CDAHelper.buildTitle(String title)
focal_class.full_signature: public static ST buildTitle(String title)
focal_class.identifier: buildTitle
focal_class.modifiers: public static
focal_class.parameters: (String title)
focal_class.return: ST
focal_class.signature: ST buildTitle(String title)
focal_class.class_method_signature: CDAHelper.buildID(String root , String extension)
focal_class.full_signature: public static II buildID(String root , String extension)
focal_class.identifier: buildID
focal_class.modifiers: public static
focal_class.parameters: (String root , String extension)
focal_class.return: II
focal_class.signature: II buildID(String root , String extension)
focal_class.class_method_signature: CDAHelper.buildCodeCE(String code , String codeSystem, String displayString, String codeSystemName)
focal_class.full_signature: public static CE buildCodeCE(String code , String codeSystem, String displayString, String codeSystemName)
focal_class.identifier: buildCodeCE
focal_class.modifiers: public static
focal_class.parameters: (String code , String codeSystem, String displayString, String codeSystemName)
focal_class.return: CE
focal_class.signature: CE buildCodeCE(String code , String codeSystem, String displayString, String codeSystemName)
focal_class.class_method_signature: CDAHelper.buildCodeCD(String code , String codeSystem, String displayString, String codeSystemName)
focal_class.full_signature: public static CD buildCodeCD(String code , String codeSystem, String displayString, String codeSystemName)
focal_class.identifier: buildCodeCD
focal_class.modifiers: public static
focal_class.parameters: (String code , String codeSystem, String displayString, String codeSystemName)
focal_class.return: CD
focal_class.signature: CD buildCodeCD(String code , String codeSystem, String displayString, String codeSystemName)
focal_class.class_method_signature: CDAHelper.buildEffectiveTime(Date d)
focal_class.full_signature: public static TS buildEffectiveTime(Date d)
focal_class.identifier: buildEffectiveTime
focal_class.modifiers: public static
focal_class.parameters: (Date d)
focal_class.return: TS
focal_class.signature: TS buildEffectiveTime(Date d)
focal_class.class_method_signature: CDAHelper.buildEDText(String value)
focal_class.full_signature: public static ED buildEDText(String value)
focal_class.identifier: buildEDText
focal_class.modifiers: public static
focal_class.parameters: (String value)
focal_class.return: ED
focal_class.signature: ED buildEDText(String value)
focal_class.class_method_signature: CDAHelper.getDatatypesValue(Integer datatypeId,Obs obs)
focal_class.full_signature: public static String getDatatypesValue(Integer datatypeId,Obs obs)
focal_class.identifier: getDatatypesValue
focal_class.modifiers: public static
focal_class.parameters: (Integer datatypeId,Obs obs)
focal_class.return: String
focal_class.signature: String getDatatypesValue(Integer datatypeId,Obs obs)
focal_class.class_method_signature: CDAHelper.getLatestObs(List<Obs> observationList)
focal_class.full_signature: public static Obs getLatestObs(List<Obs> observationList)
focal_class.identifier: getLatestObs
focal_class.modifiers: public static
focal_class.parameters: (List<Obs> observationList)
focal_class.return: Obs
focal_class.signature: Obs getLatestObs(List<Obs> observationList)
focal_class.class_method_signature: CDAHelper.getStatusCode(String statusCode)
focal_class.full_signature: public static CS getStatusCode(String statusCode)
focal_class.identifier: getStatusCode
focal_class.modifiers: public static
focal_class.parameters: (String statusCode)
focal_class.return: CS
focal_class.signature: CS getStatusCode(String statusCode)
focal_class.class_method_signature: CDAHelper.buildDateTime(Date date)
focal_class.full_signature: public static IVL_TS buildDateTime(Date date)
focal_class.identifier: buildDateTime
focal_class.modifiers: public static
focal_class.parameters: (Date date)
focal_class.return: IVL_TS
focal_class.signature: IVL_TS buildDateTime(Date date)
focal_class.class_method_signature: CDAHelper.getCodeSystemByName(String codeSystemName)
focal_class.full_signature: public static String getCodeSystemByName(String codeSystemName)
focal_class.identifier: getCodeSystemByName
focal_class.modifiers: public static
focal_class.parameters: (String codeSystemName)
focal_class.return: String
focal_class.signature: String getCodeSystemByName(String codeSystemName)
focal_class.class_method_signature: CDAHelper.removeDirtyValue(String input)
focal_class.full_signature: public static String removeDirtyValue(String input)
focal_class.identifier: removeDirtyValue
focal_class.modifiers: public static
focal_class.parameters: (String input)
focal_class.return: String
focal_class.signature: String removeDirtyValue(String input)
focal_class.class_method_signature: CDAHelper.getUnitsaccordingto_Tf_PCC(String unit)
focal_class.full_signature: public static String getUnitsaccordingto_Tf_PCC(String unit)
focal_class.identifier: getUnitsaccordingto_Tf_PCC
focal_class.modifiers: public static
focal_class.parameters: (String unit)
focal_class.return: String
focal_class.signature: String getUnitsaccordingto_Tf_PCC(String unit)
focal_class.class_method_signature: CDAHelper.getConceptIdasString(int conceptId)
focal_class.full_signature: public static String getConceptIdasString(int conceptId)
focal_class.identifier: getConceptIdasString
focal_class.modifiers: public static
focal_class.parameters: (int conceptId)
focal_class.return: String
focal_class.signature: String getConceptIdasString(int conceptId)
focal_method.body: public static IVL_TS  buildEffectiveTimeinIVL(Date d , Date d1)
  	{
  		IVL_TS effectiveTime = DatatypesFactory.eINSTANCE.createIVL_TS();
  		SimpleDateFormat s = new SimpleDateFormat("yyyyMMddhhmmss");
  		String creationDate;
  		IVXB_TS low = DatatypesFactory.eINSTANCE.createIVXB_TS();
  		IVXB_TS high = DatatypesFactory.eINSTANCE.createIVXB_TS();
  		if(d!=null)
  		{
  		creationDate = s.format(d);
  		low.setValue(creationDate);
  		}
  		else
  			low.setNullFlavor(NullFlavor.UNK);
  		
  		effectiveTime.setLow(low);
  		if(d1!=null)
  		{
  		high.setValue(s.format(d1));
  		}
  		else
  			high.setNullFlavor(NullFlavor.UNK);
  		effectiveTime.setHigh(high);
  		return effectiveTime;
  	}
focal_method.class_method_signature: CDAHelper.buildEffectiveTimeinIVL(Date d , Date d1)
focal_method.full_signature: public static IVL_TS buildEffectiveTimeinIVL(Date d , Date d1)
focal_method.identifier: buildEffectiveTimeinIVL
focal_method.invocations: createIVL_TS createIVXB_TS createIVXB_TS format setValue setNullFlavor setLow setValue format setNullFlavor setHigh
focal_method.modifiers: public static
focal_method.parameters: (Date d , Date d1)
focal_method.return: IVL_TS
focal_method.signature: IVL_TS buildEffectiveTimeinIVL(Date d , Date d1)