31. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 10/4/2017 8:04:33 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

31.1 Files compared

# Location File Last Modified
1 rdk.zip\rdk\product\production\rdk\src\fhir\order\nutrition-order nutrition-order-resource.js Mon Aug 21 12:51:00 2017 UTC
2 rdk.zip\rdk\product\production\rdk\src\fhir\order\nutrition-order nutrition-order-resource.js Tue Oct 3 18:04:08 2017 UTC

31.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 140
Changed 1 2
Inserted 0 0
Removed 0 0

31.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

31.4 Active regular expressions

No regular expressions were active.

31.5 Comparison detail

  1   'use stric t';
  2   var rdk =  require('. ./../../co re/rdk');
  3   var nullch ecker = rd k.utils.nu llchecker;
  4   var nutrit ionOrder =  require(' ./nutritio n-order');
  5  
  6   // FUTURE- TODO Enhan ce once fu ll support  for this  FHIR domai n has been  put into  place
  7   function g etResource Config() {
  8       return  [{
  9           na me: 'fhir- order-nutr ition-orde r',
  10           pa th: '',
  11           ge t: getNutr itionOrder ,
  12           su bsystems:  ['patientr ecord', 'j ds', 'solr ', 'jdsSyn c', 'autho rization'] ,
  13           in terceptors : { fhirPi d: true },
  14           re quiredPerm issions: [ ],
  15           is PatientCen tric: true ,
  16           pe rmitRespon seFormat:  true
  17       },{
  18           na me: 'fhir- order-nutr ition-orde r-search',
  19           pa th: '_sear ch',
  20           po st: getNut ritionOrde r,
  21           su bsystems:  ['patientr ecord', 'j ds', 'solr ', 'jdsSyn c', 'autho rization'] ,
  22           in terceptors : { fhirPi d: true },
  23           re quiredPerm issions: [ ],
  24           is PatientCen tric: true ,
  25           pe rmitRespon seFormat:  true
  26       }];
  27   }
  28  
  29   /**
  30    * @api {g et} /fhir/ patient/{i d}/nutriti onorder Ge t Nutritio n Order
  31    * @apiNam e getNutri tionOrder
  32    * @apiGro up Nutriti on Order
  33    * @apiPar am {Number } [_count]  The numbe r of resul ts to show .
  34    *
  35    * @apiExa mple {js}  Request Ex amples:
  36    *      //  Limiting  results co unt
  37    *        http:// IP             /resource/ fhir/patie nt/ R E D A CTED ;253/nutri tionorder? _count=1
  38    *
  39    * @apiSuc cess {json } data Jso n object c onforming  to the <a  href="http ://www.hl7 .org/FHIR/ 2015May/nu tritionord er.html">N utrition O rder FHIR  DTSU2 spec ification< /a>.
  40    * @apiSuc cessExampl e Success- Response:
  41    * HTTP/1. 1 200 OK
  42    *
  43    * @apiErr or (Error  400) Inval id paramet er values.
  44    * @apiErr orExample  Error-Resp onse:
  45    * HTTP/1. 1 400 Bad  Request
  46    * {
  47    *      In valid para meter valu es.
  48    * }
  49    */
  50   function g etNutritio nOrder(req , res) {
  51       var pi d = req.qu ery.pid;
  52       var pa rams = {
  53           _c ount: req. query._cou nt
  54       };
  55  
  56       if (nu llchecker. isNullish( pid)) {
  57           re turn res.s tatus(rdk. httpstatus .bad_forma t).send('M issing req uired para meter: pid ');
  58       }
  59  
  60       nutrit ionOrder.g etData(req .app.confi g, req.log ger, pid,  params, fu nction(err , inputJSO N) {
  61           if  (nullchec ker.isNotN ullish(err )) {
  62                res.stat us(err.cod e || 500). send(err.m essage);
  63           }  else {
  64                var fhir Bundle = n utritionOr der.conver tToFhir(in putJSON, r eq);
  65                res.stat us(rdk.htt pstatus.ok ).send(fhi rBundle);
  66           }
  67       });
  68   }
  69  
  70   module.exp orts.getRe sourceConf ig = getRe sourceConf ig;
  71   module.exp orts.getNu tritionOrd er = getNu tritionOrd er;