Guest User

Untitled

a guest
Mar 8th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.37 KB | None | 0 0
  1.     private extractStudies(def response) {
  2.         log.info("Extracting studies from response.")
  3.  
  4.         response.depthFirst().study.collect {
  5.             def study = new ConvertedOpenclinicaStudy()
  6.             study.OID = it.oid.text()
  7.             study.name = it.name.text()
  8.             study.identifier = it.identifier.text()
  9.  
  10.             study
  11.         }
  12.     }
Add Comment
Please, Sign In to add comment