Search in sources :

Example 1 with PersonAttributeDataDefinition

use of org.openmrs.module.reporting.data.person.definition.PersonAttributeDataDefinition in project openmrs-module-pihcore by PIH.

the class PihPersonDataLibrary method getMothersFirstName.

public PersonDataDefinition getMothersFirstName() {
    PersonAttributeDataDefinition d = new PersonAttributeDataDefinition();
    d.setPersonAttributeType(Metadata.getMothersFirstNameAttributeType());
    return convert(d, converters.getRawAttributeValue());
}
Also used : PersonAttributeDataDefinition(org.openmrs.module.reporting.data.person.definition.PersonAttributeDataDefinition)

Example 2 with PersonAttributeDataDefinition

use of org.openmrs.module.reporting.data.person.definition.PersonAttributeDataDefinition in project openmrs-module-pihcore by PIH.

the class PihPatientDataLibrary method getUnknownPatient.

// Demographics
@DocumentedDefinition("unknownPatient.value")
public PatientDataDefinition getUnknownPatient() {
    PersonAttributeDataDefinition d = new PersonAttributeDataDefinition();
    d.setPersonAttributeType(emrApiProperties.getUnknownPatientPersonAttributeType());
    return convert(d, converters.getRawAttributeValue());
}
Also used : PersonAttributeDataDefinition(org.openmrs.module.reporting.data.person.definition.PersonAttributeDataDefinition) DocumentedDefinition(org.openmrs.module.reporting.definition.library.DocumentedDefinition)

Example 3 with PersonAttributeDataDefinition

use of org.openmrs.module.reporting.data.person.definition.PersonAttributeDataDefinition in project openmrs-module-pihcore by PIH.

the class PihPersonDataLibrary method getTelephoneNumber.

@DocumentedDefinition("telephoneNumber")
public PersonDataDefinition getTelephoneNumber() {
    PersonAttributeDataDefinition d = new PersonAttributeDataDefinition();
    d.setPersonAttributeType(emrApiProperties.getTelephoneAttributeType());
    return convert("telephoneNumber.value", d, converters.getRawAttributeValue());
}
Also used : PersonAttributeDataDefinition(org.openmrs.module.reporting.data.person.definition.PersonAttributeDataDefinition) DocumentedDefinition(org.openmrs.module.reporting.definition.library.DocumentedDefinition)

Aggregations

PersonAttributeDataDefinition (org.openmrs.module.reporting.data.person.definition.PersonAttributeDataDefinition)3 DocumentedDefinition (org.openmrs.module.reporting.definition.library.DocumentedDefinition)2