Produced by Araxis Merge on 7/25/2018 3:40:57 PM 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.
# | Location | File | Last Modified |
---|---|---|---|
1 | Pain_Coach_v3.0_Jun_2018.zip\vpc-patient-web.zip\vpc-patient-web\app\veteran\js\model | pgdSubReminder.js | Fri Jun 1 14:27:14 2018 UTC |
2 | Pain_Coach_v3.0_Jun_2018.zip\vpc-patient-web.zip\vpc-patient-web\app\veteran\js\model | pgdSubReminder.js | Wed Jul 25 14:05:05 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 146 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
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 |
No regular expressions were active.
1 | VPC.Model. PgdReminde r = VPC.Mo del.PgdQue stionnaire Response.e xtend({ | |
2 | save: function ( questionna ireIdentif ier) { | |
3 | va r deferred = $.Defer red(), | |
4 | self = t his, | |
5 | options = { | |
6 | url: App _Resources .GetVPCRes ourcePath( "pgd-fhir- questionna ireRespons e"), | |
7 | toSave: { | |
8 | "met a": { | |
9 | "tag": [ | |
10 | App_Re sources.Ge tPGDResour ceValue("p gd-metadat a-tag") | |
11 | ] | |
12 | }, | |
13 | "res ourceType" : "Questio nnaireResp onse", | |
14 | "sou rce": { | |
15 | "reference ": "Patien t/" + PGD_ FHIR_Utils .getPatien tFhirIdent ifier() | |
16 | }, | |
17 | "que stionnaire ": { | |
18 | "reference ": "Questi onnaire/" + question naireIdent ifier | |
19 | }, | |
20 | "sta tus": "com pleted", | |
21 | "aut hored": mo ment().toI SOString() , | |
22 | "gro up": { | |
23 | "title": " Reminder f or Monthly assessmen t", | |
24 | "question" : [ | |
25 | { | |
26 | "l inkId": Ap p_Resource s.GetPGDMo delValue(" reminder", "timefram e").linkId , | |
27 | "t ext": "Rem inder Time frame", | |
28 | "a nswer": [{ | |
29 | "valueCo ding": { | |
30 | "cod e": this.g etAnswer(" reminder", "timefram e").code, | |
31 | "system": "https:// URL /display/P GDMS/Clien t+Provenan ce+Mapping ", | |
32 | "dis play": thi s.getAnswe r("reminde r", "timef rame").dis play | |
33 | } | |
34 | }] | |
35 | } | |
36 | ] | |
37 | } | |
38 | } | |
39 | }; | |
40 | ||
41 | if (this.get UniqueIden tifier()) { | |
42 | options. toSave.id = this.get UniqueIden tifier(); | |
43 | options. url = this .get('full Url'); | |
44 | options. type = 'PU T'; | |
45 | } | |
46 | ||
47 | th is.saveBas e(options) .done(func tion (pgdR esponse) { | |
48 | self.cle ar({silent : true}).s et({ | |
49 | "res ource": pg dResponse, | |
50 | "ful lUrl": App _Resources .GetVPCRes ourcePath( "pgd-fhir- questionna ireRespons e") + "/" + pgdRespo nse.id | |
51 | }); | |
52 | deferred .resolve() ; | |
53 | }) .fail(func tion (jqXH R, textSta tus, error Thrown) { | |
54 | deferred .reject(jq XHR, textS tatus, err orThrown); | |
55 | }) ; | |
56 | ||
57 | re turn defer red.promis e(); | |
58 | }, | |
59 | getTim eframe: fu nction () { | |
60 | if (this.get ('resource ') && | |
61 | this.get ('resource ').group & & | |
62 | this.get ('resource ').group.q uestion && | |
63 | this.get ('resource ').group.q uestion.le ngth && | |
64 | this.get ('resource ').group.q uestion[0] && | |
65 | this.get ('resource ').group.q uestion[0] .answer && | |
66 | this.get ('resource ').group.q uestion[0] .answer.le ngth && | |
67 | this.get ('resource ').group.q uestion[0] .answer[0] && | |
68 | this.get ('resource ').group.q uestion[0] .answer[0] .valueCodi ng) { | |
69 | return p arseInt(th is.get('re source').g roup.quest ion[0].ans wer[0].val ueCoding.c ode); | |
70 | } else { | |
71 | return n ull; | |
72 | } | |
73 | } | |
74 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.