Skip to content

Commit

Permalink
fix: variable not defined
Browse files Browse the repository at this point in the history
- It is this
  • Loading branch information
Chinlinlee committed Oct 8, 2023
1 parent 6682fd3 commit 5a707c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/fhir-ref-checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const FHIR = require("fhir").Fhir;
const { isDocExist } = require("@root/api/apiService");
const jp = require("jsonpath");
const uuid = require("uuid");
const { handleError } = require("@root/models/FHIR/httpMessage");

class FhirReferenceChecker {
constructor(resource) {
Expand All @@ -20,7 +21,7 @@ class FhirReferenceChecker {
if (/^(http|https):\/\//g.test(referenceValue)) {
await this.checkAbsoluteUrlRef(
key,
referenceValue,
referenceValue
);
} else if (referenceValueSplit.length === 2) {
// Check base reference value {resourceType}/{id}
Expand Down Expand Up @@ -150,7 +151,7 @@ class FhirReferenceChecker {

getOperationOutcomeError(checkReferenceRes) {
if (!checkReferenceRes.status) {
let notExistReferenceList = fhirReferenceChecker.getNotExistReferenceList(checkReferenceRes);
let notExistReferenceList = this.getNotExistReferenceList(checkReferenceRes);
let operationOutcomeError = handleError.processing(
`The reference not found : ${_.map(
notExistReferenceList,
Expand Down

0 comments on commit 5a707c8

Please sign in to comment.