@Test public void findRavimvormidDetailandmedv1() throws XRoadServiceConsumptionException { String ravimvormiKood = "748"; List<String> ravimvormiKoodid = new ArrayList<String>(); ravimvormiKoodid.add(ravimvormiKood); List<Ravimvorm> items = ravimiametXRoadServiceImpl.findRavimvormidDetailandmed(ravimvormiKoodid); Assert.assertNotNull(items); Assert.assertTrue(items.size() == 1); Ravimvorm ravimvorm = items.get(0); Assert.assertTrue(ravimvormiKood.equals(ravimvorm.getId().toString())); }
@Override public List<Ravimvorm> findRavimvormidDetailandmed(List<String> items) throws XRoadServiceConsumptionException { RavimvormidByIDArray request = RavimvormidByIDArray.Factory.newInstance(); request.setKeha(createDetailsRequest(items)); return ravimiregisterXRoadDatabase.ravimvormidByIDArrayV1(request).getKeha().getItemList(); }
RavimiregisterXRoadServiceImpl extends XRoadDatabaseService implements RavimiregisterXRoadService { @Override public List<Ravimvorm> findRavimvormidDetailandmed(List<String> items) throws XRoadServiceConsumptionException { RavimvormidByIDArray request = RavimvormidByIDArray.Factory.newInstance(); request.setKeha(createDetailsRequest(items)); return ravimiregisterXRoadDatabase.ravimvormidByIDArrayV1(request).getKeha().getItemList(); } }
RavimiregisterXRoadServiceImpl extends XRoadDatabaseService implements RavimiregisterXRoadService { @Override public List<Ravimvorm> findRavimvormidDetailandmed(List<String> items) throws XRoadServiceConsumptionException { RavimvormidByIDArray request = RavimvormidByIDArray.Factory.newInstance(); request.setKeha(createDetailsRequest(items)); return ravimiregisterXRoadDatabase.ravimvormidByIDArrayV1(request).getKeha().getItemList(); }  }
RavimiregisterXRoadServiceImpl extends XRoadDatabaseService implements RavimiregisterXRoadService { @Override public List<Ravimvorm> findRavimvormidDetailandmed(List<String> items) throws XRoadServiceConsumptionException { RavimvormidByIDArray request = RavimvormidByIDArray.Factory.newInstance(); request.setKeha(createDetailsRequest(items)); return ravimiregisterXRoadDatabase.ravimvormidByIDArrayV1(request).getKeha().getItemList(); }  @Override List<ATCKlassifikaator> findATCKlassifikaatoridDetailandmed(List<String> items); @Override List<String> findATCKlassifikaatorid(Date date); @Override List<Haigus> findHaigusedDetailandmed(List<String> items); @Override List<String> findHaigused(Date date); @Override List<Pakend> findPakendidDetailandmed(List<String> items); @Override List<String> findPakendid(Date date); @Override List<Ravimvorm> findRavimvormidDetailandmed(List<String> items); @Override List<String> findRavimvormid(Date date); @Override List<Soodustus> findSoodustusedDetailandmed(List<String> items); @Override List<String> findSoodustused(Date date); @Override List<Toimeaine> findToimeainedDetailandmed(List<String> items); @Override List<String> findToimeained(Date date); @Override List<String> findPiirhinnad(Date date); @Override List<Piirhind> findPiirhinnadDetailandmed(List<String> items); @Override List<String> findHinnakokkulepped(Date date); @Override List<Hinnakokkulepe> findHinnakokkuleppedDetailandmed(List<String> items); @Override List<String> findMyygiload(Date date); @Override List<Myygiluba> findMyygiloadDetailandmed(List<String> items); void setRavimiregisterXRoadDatabase(RavimiregisterXRoadDatabase ravimiregisterXRoadDatabase); }
RavimiregisterXRoadServiceImpl extends XRoadDatabaseService implements RavimiregisterXRoadService { @Override public List<Ravimvorm> findRavimvormidDetailandmed(List<String> items) throws XRoadServiceConsumptionException { RavimvormidByIDArray request = RavimvormidByIDArray.Factory.newInstance(); request.setKeha(createDetailsRequest(items)); return ravimiregisterXRoadDatabase.ravimvormidByIDArrayV1(request).getKeha().getItemList(); }  @Override List<ATCKlassifikaator> findATCKlassifikaatoridDetailandmed(List<String> items); @Override List<String> findATCKlassifikaatorid(Date date); @Override List<Haigus> findHaigusedDetailandmed(List<String> items); @Override List<String> findHaigused(Date date); @Override List<Pakend> findPakendidDetailandmed(List<String> items); @Override List<String> findPakendid(Date date); @Override List<Ravimvorm> findRavimvormidDetailandmed(List<String> items); @Override List<String> findRavimvormid(Date date); @Override List<Soodustus> findSoodustusedDetailandmed(List<String> items); @Override List<String> findSoodustused(Date date); @Override List<Toimeaine> findToimeainedDetailandmed(List<String> items); @Override List<String> findToimeained(Date date); @Override List<String> findPiirhinnad(Date date); @Override List<Piirhind> findPiirhinnadDetailandmed(List<String> items); @Override List<String> findHinnakokkulepped(Date date); @Override List<Hinnakokkulepe> findHinnakokkuleppedDetailandmed(List<String> items); @Override List<String> findMyygiload(Date date); @Override List<Myygiluba> findMyygiloadDetailandmed(List<String> items); void setRavimiregisterXRoadDatabase(RavimiregisterXRoadDatabase ravimiregisterXRoadDatabase);  }