Searching location by position (parameter "near")
# support
t
Hey there, I'm trying to search for a Location by lat/long and received a response stating the parameter type "special" is not recognized. Looks like this isn't actually supported yet?
Copy code
export function parseParameter(searchParam: SearchParameter, modifier: string, value: string): Filter {
  if (modifier === 'missing') {
    return {
      code: searchParam.code as string,
      operator: Operator.MISSING,
      value,
    };
  }
  switch (searchParam.type) {
    case 'number':
    case 'date':
    case 'quantity':
      return parsePrefixType(searchParam, value);
    case 'reference':
    case 'string':
    case 'token':
    case 'uri':
      return parseModifierType(searchParam, modifier, value);
    default:
      throw new Error('Unrecognized search parameter type: ' + searchParam.type);
  }
}
r
@taylorqj That's right, we don't yet support
_near
. We have open issue for this on our backlog: https://github.com/medplum/medplum/issues/1260
t
Awesome, thanks!