Commit 5141888e authored by R.W.Majeed's avatar R.W.Majeed

process (care) provider information in visit

parent b9f4eda1
......@@ -42,6 +42,9 @@ public interface Visit extends IdExtensionType,ExternalSourceType {
String getLocationId();
void setLocationId(String locationId);
String getProviderId();
void setProviderId(String providerId);
public enum Status{
Inpatient, Outpatient, Emergency
}
......
......@@ -36,6 +36,7 @@ public class VisitImpl extends StoredExtensionType implements Visit {
private Status status;
private String patientId;
private String locationId;
private String providerId;
/**
* Empty constructor protected, only
......@@ -110,6 +111,15 @@ public class VisitImpl extends StoredExtensionType implements Visit {
checkAndUpdateDirty(this.startTime, startTime);
this.startTime = startTime;
}
@Override
public String getProviderId() {
return this.providerId;
}
@Override
public void setProviderId(String providerId) {
checkAndUpdateDirty(this.providerId, providerId);
this.providerId = providerId;
}
......
......@@ -103,6 +103,9 @@ public class VisitTable extends Table<VisitRow> implements ConceptTable{
if( idat.location != null ){
visit.setLocationId(idat.location.valueOf(map, row));
}
if( idat.provider != null ){
visit.setProviderId(idat.provider.valueOf(map, row));
}
// TODO other
// concepts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment