protected ICriterion<?> referencePatientIdentifierParameter() { return new TokenClientParam("patient.identifier").exactly() .systemAndIdentifier("urn:oid:2.16.840.1.113883.3.37.4.1.1.2.1.1", "1"); }
protected ICriterion<?> manifestPatientIdentifierParameter() { return new TokenClientParam("patient.identifier").exactly() .systemAndIdentifier("urn:oid:2.16.840.1.113883.3.37.4.1.1.2.1.1", "1"); }
protected ICriterion<?> referencePatientIdentifierParameter() { return new TokenClientParam("patient.identifier").exactly() .systemAndIdentifier("urn:oid:2.16.840.1.113883.3.37.4.1.1.2.1.1", "1"); }
protected ICriterion<?> manifestPatientIdentifierParameter() { return new TokenClientParam("patient.identifier").exactly() .systemAndIdentifier("urn:oid:2.16.840.1.113883.3.37.4.1.1.2.1.1", "1"); }
.resource(patient) .conditional() .where(Patient.IDENTIFIER.exactly().systemAndIdentifier("system", "00001")) .execute(); .resource(patient) .conditional() .where(Patient.IDENTIFIER.exactly().systemAndIdentifier("system", "00001")) .execute(); .where(Patient.IDENTIFIER.exactly().systemAndIdentifier("system", "00001")) .execute(); .forResource("Observation") .where(Observation.CODE_VALUE_DATE .withLeft(Observation.CODE.exactly().code("FOO$BAR")) .withRight(Observation.VALUE_DATE.exactly().day("2001-01-01"))) .returnBundle(Bundle.class)
@Override public void buildQuery(LocationSearchCriteria criteria, IQuery<Bundle> query) { super.buildQuery(criteria, query); if (criteria.getType() != null) { query.where(Location.TYPE.exactly().code(criteria.getType().getCode())); } if (criteria.getStatus() != null) { query.where(Location.STATUS.exactly().code(criteria.getStatus().getCode())); } if (criteria.getName() != null) { query.where(Location.NAME.matches().value(criteria.getName())); } }
@Override public void buildQuery(LocationSearchCriteria criteria, IQuery<?> query) { super.buildQuery(criteria, query); if (criteria.getType() != null) { query.where(Location.TYPE.exactly().code(criteria.getType())); } if (criteria.getStatus() != null) { query.where(Location.STATUS.exactly().code(criteria.getStatus().toCode())); } if (criteria.getName() != null) { query.where(Location.NAME.matches().value(criteria.getName())); } }
@Override public void buildQuery(PractitionerSearchCriteria criteria, IQuery<Bundle> query) { super.buildQuery(criteria, query); if (criteria.getDEA() != null) { query.where(Practitioner.IDENTIFIER.exactly().identifier(criteria.getDEA())); } if (criteria.getSSN() != null) { query.where(Practitioner.IDENTIFIER.exactly().identifier(criteria.getSSN())); } if (criteria.getGender() != null) { query.where(Practitioner.GENDER.exactly().code(criteria.getGender())); } if (criteria.getName() != null) { HumanNameDt name = criteria.getName(); if (!name.getFamily().isEmpty()) { query.where(Practitioner.FAMILY.matches().values(FhirUtil.toStringList(name.getFamily()))); } if (!name.getGiven().isEmpty()) { query.where(Practitioner.GIVEN.matches().values(FhirUtil.toStringList(name.getGiven()))); } } }
query.where(DocumentReference.TYPE.exactly().code(type));
@Override public void buildQuery(EncounterSearchCriteria criteria, IQuery<Bundle> query) { super.buildQuery(criteria, query); if (criteria.getPatient() != null) { query.where(Encounter.PATIENT.hasId(criteria.getPatient().getId())); } if (criteria.getPeriod() != null) { Date start = criteria.getPeriod().getStart(); Date end = criteria.getPeriod().getEnd(); if (start != null) { if (end == null) { query.where(Encounter.LOCATION_PERIOD.exactly().day(start)); } else { query.where(Encounter.LOCATION_PERIOD.afterOrEquals().day(start)); query.where(Encounter.LOCATION_PERIOD.beforeOrEquals().day(end)); } } else if (end != null) { query.where(Encounter.LOCATION_PERIOD.exactly().day(end)); } } if (criteria.getType() != null) { query.where(Encounter.TYPE.exactly().code(criteria.getType())); } }
@Override public void buildQuery(EncounterSearchCriteria criteria, IQuery<?> query) { super.buildQuery(criteria, query); if (criteria.getPatient() != null) { query.where(Encounter.PATIENT.hasId(criteria.getPatient().getId())); } if (criteria.getPeriod() != null) { Date start = criteria.getPeriod().getStart(); Date end = criteria.getPeriod().getEnd(); if (start != null) { if (end == null) { query.where(Encounter.LOCATION_PERIOD.exactly().day(start)); } else { query.where(Encounter.LOCATION_PERIOD.afterOrEquals().day(start)); query.where(Encounter.LOCATION_PERIOD.beforeOrEquals().day(end)); } } else if (end != null) { query.where(Encounter.LOCATION_PERIOD.exactly().day(end)); } } if (criteria.getType() != null) { query.where(Encounter.TYPE.exactly().code(criteria.getType())); } }