Skip to content

Commit

Permalink
tiny changes
Browse files Browse the repository at this point in the history
  • Loading branch information
unixoid committed May 3, 2024
1 parent 45146ae commit ab74aa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected Coding map(final Code code) {
protected Reference fromAuthor(final Author author) {
var role = new PractitionerRole();
var doc = new Practitioner();
if(!author.getAuthorPerson().isEmpty()) {
if((author.getAuthorPerson() != null) && !author.getAuthorPerson().isEmpty()) {
if (!author.getAuthorPerson().getName().isEmpty())
doc.setName(singletonList(fromName(author.getAuthorPerson().getName())));
if (!author.getAuthorPerson().getId().isEmpty())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static void mapPatientIdToQuery(PatientIdBasedStoredQuery query, IQuery<B
var patientId = query.getPatientId();

var identifier = DocumentReference.PATIENT
.hasChainedProperty(Patient.IDENTIFIER.exactly().systemAndIdentifier(
.hasChainedProperty("Patient", Patient.IDENTIFIER.exactly().systemAndIdentifier(
OID_URN + patientId.getAssigningAuthority().getUniversalId(), patientId.getId()));
fhirQuery.where(identifier);
}
Expand Down

0 comments on commit ab74aa0

Please sign in to comment.