docs: public static String encode(Encounter encounter) {
          Location location = ClientUtil.getResource(encounter.getLocationFirstRep().getLocation(), Location.class);
          String locIEN = location.isEmpty() ? "" : location.getIdElement().getIdPart();
          Date date = encounter.getPeriod().getStart();
          String sc = getServiceCategory(encounter);
          String ien = encounter.getId().isEmpty() ? "" : encounter.getIdElement().getIdPart();
          return locIEN + VSTR_DELIM + new FMDate(date).getFMDate() + VSTR_DELIM + sc + VSTR_DELIM + ien;
      }