32. 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.

32.1 Files compared

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

32.2 Comparison summary

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

32.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

32.4 Active regular expressions

No regular expressions were active.

32.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 proced ureRequest  = require ('./proced ure-reques t.js');
  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-proc edure-requ est',
  10           pa th: '',
  11           ge t: getProc edureReque st,
  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-proc edure-requ est-search ',
  19           pa th: '_sear ch',
  20           po st: getPro cedureRequ est,
  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}/procedu rerequest  Get Proced ure Reques t
  31    * @apiNam e getProce dureReques t
  32    * @apiGro up Procedu re Request
  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/proce durereques t?_count=1
  38    *
  39    * @apiSuc cess {json } data Jso n object c onforming  to the <a  href="http ://www.hl7 .org/FHIR/ 2015May/pr ocedurereq uest.html" >Procedure  Request F HIR DTSU2  specificat ion</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 etProcedur eRequest(r eq, 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       proced ureRequest .getData(r eq.app.con fig, req.l ogger, pid , params,  function(e rr, inputJ SON) {
  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 = p rocedureRe quest.conv ertToFhir( inputJSON,  req);
  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.getPr ocedureReq uest = get ProcedureR equest;