diff --git a/internal/use-case/bpjs-plugin/reference/helper.go b/internal/use-case/bpjs-plugin/reference/helper.go index 834ba4e5..3e87089b 100644 --- a/internal/use-case/bpjs-plugin/reference/helper.go +++ b/internal/use-case/bpjs-plugin/reference/helper.go @@ -21,10 +21,7 @@ func endpointMapper(input *e.ReadListDto) string { case e.RTMedicinePrb: return ibpjs.O.BaseUrl + "obatprb/" + input.PathValue1 case e.RTUnit: - if input.QParam == "" { - return ibpjs.O.BaseUrl + "referensi/poli" - } - return ibpjs.O.BaseUrl + "referensi/poli/" + input.QParam + return ibpjs.O.BaseUrl + "referensi/poli/" + input.PathValue1 case e.RTHealthcare: return fmt.Sprintf("%sreferensi/faskes?faskes=%s&jenis-faskes=%s", ibpjs.O.BaseUrl, input.PathValue1, input.PathValue2) case e.RTDoctor: