@andes/fhir 1.11.1 → 1.12.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/.circleci/config.yml +71 -68
  2. package/.editorconfig +13 -13
  3. package/.env.example +2 -0
  4. package/.github/labeler.yml +10 -10
  5. package/.github/pull_request_template.md +28 -28
  6. package/.github/workflows/build_test.yml +14 -14
  7. package/.github/workflows/has_conflicts.yml +13 -13
  8. package/.vscode/settings.json +2 -0
  9. package/CHANGELOG.md +312 -291
  10. package/LICENSE +674 -674
  11. package/README.md +2 -2
  12. package/coverage/clover.xml +198 -0
  13. package/coverage/coverage-final.json +5 -0
  14. package/coverage/lcov-report/base.css +224 -0
  15. package/coverage/lcov-report/block-navigation.js +87 -0
  16. package/coverage/lcov-report/config.ts.html +136 -0
  17. package/coverage/lcov-report/device.ts.html +193 -0
  18. package/coverage/lcov-report/favicon.png +0 -0
  19. package/coverage/lcov-report/helpers/index.html +116 -0
  20. package/coverage/lcov-report/helpers/patientFactory.ts.html +124 -0
  21. package/coverage/lcov-report/index.html +131 -0
  22. package/coverage/lcov-report/lib/config.ts.html +136 -0
  23. package/coverage/lcov-report/lib/device.ts.html +193 -0
  24. package/coverage/lcov-report/lib/index.html +146 -0
  25. package/coverage/lcov-report/lib/patient.ts.html +1267 -0
  26. package/coverage/lcov-report/patient.ts.html +1207 -0
  27. package/coverage/lcov-report/prettify.css +1 -0
  28. package/coverage/lcov-report/prettify.js +2 -0
  29. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  30. package/coverage/lcov-report/sorter.js +210 -0
  31. package/coverage/lcov.info +410 -0
  32. package/dist/index.js +51 -32
  33. package/dist/index.js.map +1 -1
  34. package/dist/src/data/patient.json +191 -185
  35. package/dist/src/helpers/patientFactory.js +31 -0
  36. package/dist/src/helpers/patientFactory.js.map +1 -0
  37. package/dist/src/lib/allergyIntolerance.js +39 -39
  38. package/dist/src/lib/allergyIntolerance.js.map +1 -1
  39. package/dist/src/lib/bundle.js +25 -22
  40. package/dist/src/lib/bundle.js.map +1 -1
  41. package/dist/src/lib/composition.js +151 -150
  42. package/dist/src/lib/composition.js.map +1 -1
  43. package/dist/src/lib/condition.js +79 -79
  44. package/dist/src/lib/condition.js.map +1 -1
  45. package/dist/src/lib/config.js +20 -22
  46. package/dist/src/lib/config.js.map +1 -1
  47. package/dist/src/lib/config.test.js +12 -12
  48. package/dist/src/lib/config.test.js.map +1 -1
  49. package/dist/src/lib/device.js +38 -38
  50. package/dist/src/lib/device.js.map +1 -1
  51. package/dist/src/lib/device.test.js +9 -9
  52. package/dist/src/lib/device.test.js.map +1 -1
  53. package/dist/src/lib/document-reference.js +106 -103
  54. package/dist/src/lib/document-reference.js.map +1 -1
  55. package/dist/src/lib/immunization.js +67 -67
  56. package/dist/src/lib/medication.js +64 -64
  57. package/dist/src/lib/medication.js.map +1 -1
  58. package/dist/src/lib/medicationRequest.js +102 -99
  59. package/dist/src/lib/medicationRequest.js.map +1 -1
  60. package/dist/src/lib/medicationStatement.js +55 -55
  61. package/dist/src/lib/medicationStatement.js.map +1 -1
  62. package/dist/src/lib/organization.js +90 -90
  63. package/dist/src/lib/organization.js.map +1 -1
  64. package/dist/src/lib/patient.js +378 -360
  65. package/dist/src/lib/patient.js.map +1 -1
  66. package/dist/src/lib/patient.test.js +78 -39
  67. package/dist/src/lib/patient.test.js.map +1 -1
  68. package/dist/src/lib/practitioner.js +160 -160
  69. package/dist/src/lib/practitioner.js.map +1 -1
  70. package/index.ts +31 -31
  71. package/jest.config.js +11 -11
  72. package/package.json +45 -54
  73. package/release.config.js +74 -0
  74. package/src/data/patient.json +190 -184
  75. package/src/helpers/patientFactory.ts +13 -0
  76. package/src/lib/allergyIntolerance.ts +36 -36
  77. package/src/lib/bundle.ts +19 -19
  78. package/src/lib/composition.ts +153 -153
  79. package/src/lib/condition.ts +80 -80
  80. package/src/lib/config.test.ts +13 -13
  81. package/src/lib/config.ts +17 -17
  82. package/src/lib/device.test.ts +9 -9
  83. package/src/lib/device.ts +36 -36
  84. package/src/lib/document-reference.ts +102 -102
  85. package/src/lib/immunization.ts +64 -64
  86. package/src/lib/medication.ts +61 -61
  87. package/src/lib/medicationRequest.ts +100 -100
  88. package/src/lib/medicationStatement.ts +52 -52
  89. package/src/lib/organization.ts +89 -89
  90. package/src/lib/patient.test.ts +62 -38
  91. package/src/lib/patient.ts +394 -374
  92. package/src/lib/practitioner.ts +157 -157
  93. package/tsconfig.test.json +17 -17
  94. package/tslint.json +138 -138
package/dist/index.js CHANGED
@@ -1,33 +1,52 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AllergyIntolerance = exports.MedicationRequest = exports.MedicationStatement = exports.Medication = exports.Device = exports.DocumentReference = exports.Bundle = exports.Composition = exports.Condition = exports.Immunization = exports.Organization = exports.Practitioner = exports.Patient = void 0;
4
- var AllergyIntolerance = require("./src/lib/allergyIntolerance");
5
- exports.AllergyIntolerance = AllergyIntolerance;
6
- var Bundle = require("./src/lib/bundle");
7
- exports.Bundle = Bundle;
8
- var Composition = require("./src/lib/composition");
9
- exports.Composition = Composition;
10
- var Condition = require("./src/lib/condition");
11
- exports.Condition = Condition;
12
- var Device = require("./src/lib/device");
13
- exports.Device = Device;
14
- var DocumentReference = require("./src/lib/document-reference");
15
- exports.DocumentReference = DocumentReference;
16
- var Immunization = require("./src/lib/immunization");
17
- exports.Immunization = Immunization;
18
- var Medication = require("./src/lib/medication");
19
- exports.Medication = Medication;
20
- var MedicationRequest = require("./src/lib/medicationRequest");
21
- exports.MedicationRequest = MedicationRequest;
22
- var MedicationStatement = require("./src/lib/medicationStatement");
23
- exports.MedicationStatement = MedicationStatement;
24
- var Organization = require("./src/lib/organization");
25
- exports.Organization = Organization;
26
- var Patient = require("./src/lib/patient");
27
- exports.Patient = Patient;
28
- var Practitioner = require("./src/lib/practitioner");
29
- exports.Practitioner = Practitioner;
30
- var config_1 = require("./src/lib/config");
31
- Object.defineProperty(exports, "getDominio", { enumerable: true, get: function () { return config_1.getDominio; } });
32
- Object.defineProperty(exports, "initialize", { enumerable: true, get: function () { return config_1.initialize; } });
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.AllergyIntolerance = exports.MedicationRequest = exports.MedicationStatement = exports.Medication = exports.Device = exports.DocumentReference = exports.Bundle = exports.Composition = exports.Condition = exports.Immunization = exports.Organization = exports.Practitioner = exports.Patient = void 0;
23
+ const AllergyIntolerance = __importStar(require("./src/lib/allergyIntolerance"));
24
+ exports.AllergyIntolerance = AllergyIntolerance;
25
+ const Bundle = __importStar(require("./src/lib/bundle"));
26
+ exports.Bundle = Bundle;
27
+ const Composition = __importStar(require("./src/lib/composition"));
28
+ exports.Composition = Composition;
29
+ const Condition = __importStar(require("./src/lib/condition"));
30
+ exports.Condition = Condition;
31
+ const Device = __importStar(require("./src/lib/device"));
32
+ exports.Device = Device;
33
+ const DocumentReference = __importStar(require("./src/lib/document-reference"));
34
+ exports.DocumentReference = DocumentReference;
35
+ const Immunization = __importStar(require("./src/lib/immunization"));
36
+ exports.Immunization = Immunization;
37
+ const Medication = __importStar(require("./src/lib/medication"));
38
+ exports.Medication = Medication;
39
+ const MedicationRequest = __importStar(require("./src/lib/medicationRequest"));
40
+ exports.MedicationRequest = MedicationRequest;
41
+ const MedicationStatement = __importStar(require("./src/lib/medicationStatement"));
42
+ exports.MedicationStatement = MedicationStatement;
43
+ const Organization = __importStar(require("./src/lib/organization"));
44
+ exports.Organization = Organization;
45
+ const Patient = __importStar(require("./src/lib/patient"));
46
+ exports.Patient = Patient;
47
+ const Practitioner = __importStar(require("./src/lib/practitioner"));
48
+ exports.Practitioner = Practitioner;
49
+ var config_1 = require("./src/lib/config");
50
+ Object.defineProperty(exports, "getDominio", { enumerable: true, get: function () { return config_1.getDominio; } });
51
+ Object.defineProperty(exports, "initialize", { enumerable: true, get: function () { return config_1.initialize; } });
33
52
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,iEAAmE;AA4B/D,gDAAkB;AA3BtB,yCAA2C;AAqBvC,wBAAM;AApBV,mDAAqD;AAmBjD,kCAAW;AAlBf,+CAAiD;AAiB7C,8BAAS;AAhBb,yCAA2C;AAoBvC,wBAAM;AAnBV,gEAAkE;AAkB9D,8CAAiB;AAjBrB,qDAAuD;AAanD,oCAAY;AAZhB,iDAAmD;AAkB/C,gCAAU;AAjBd,+DAAiE;AAmB7D,8CAAiB;AAlBrB,mEAAqE;AAiBjE,kDAAmB;AAhBvB,qDAAuD;AAQnD,oCAAY;AAPhB,2CAA6C;AAKzC,0BAAO;AAJX,qDAAuD;AAKnD,oCAAY;AAHhB,2CAA0D;AAAjD,oGAAA,UAAU,OAAA;AAAE,oGAAA,UAAU,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iFAAmE;AA4B/D,gDAAkB;AA3BtB,yDAA2C;AAqBvC,wBAAM;AApBV,mEAAqD;AAmBjD,kCAAW;AAlBf,+DAAiD;AAiB7C,8BAAS;AAhBb,yDAA2C;AAoBvC,wBAAM;AAnBV,gFAAkE;AAkB9D,8CAAiB;AAjBrB,qEAAuD;AAanD,oCAAY;AAZhB,iEAAmD;AAkB/C,gCAAU;AAjBd,+EAAiE;AAmB7D,8CAAiB;AAlBrB,mFAAqE;AAiBjE,kDAAmB;AAhBvB,qEAAuD;AAQnD,oCAAY;AAPhB,2DAA6C;AAKzC,0BAAO;AAJX,qEAAuD;AAKnD,oCAAY;AAHhB,2CAA0D;AAAjD,oGAAA,UAAU,OAAA;AAAE,oGAAA,UAAU,OAAA"}
@@ -1,185 +1,191 @@
1
- {
2
- "_id": "58d30d6fgbb1a96b254d9877",
3
- "entidadesValidadoras": [
4
- "RENAPER",
5
- "Sisa"
6
- ],
7
- "documento": "42910660",
8
- "apellido": "PERINGA PONCE",
9
- "nombre": "HUGO AGUSTIN",
10
- "sexo": "masculino",
11
- "fechaNacimiento": "1979-11-14T03:00:00.000-03:00",
12
- "estado": "validado",
13
- "genero": "masculino",
14
- "financiador": [
15
- {
16
- "codigoPuco": 921001,
17
- "nombre": "O.S.P. NEUQUEN",
18
- "financiador": "O.S.P. NEUQUEN"
19
- },
20
- {
21
- "codigoPuco": 921001,
22
- "nombre": "O.S.P. NEUQUEN",
23
- "financiador": "O.S.P. NEUQUEN"
24
- }
25
- ],
26
- "relaciones": [
27
- {
28
- "_id": "5b92dec9646d99436065cbfc",
29
- "relacion": {
30
- "_id": "59247c391ebf0273353b23c0",
31
- "nombre": "hijo/a",
32
- "opuesto": "progenitor/a"
33
- },
34
- "referencia": "5b92de583173b053ae88f2d0",
35
- "nombre": "JOSEFINA",
36
- "apellido": "PERINGA PONCE",
37
- "documento": "333333333",
38
- "fotoId": "5f9072d00254f253d9c7dd54"
39
- },
40
- {
41
- "_id": "5b92dec9646d99436065cbfa",
42
- "relacion": {
43
- "_id": "59247c391ebf0273353b23c0",
44
- "nombre": "hijo/a",
45
- "opuesto": "progenitor/a"
46
- },
47
- "referencia": "5b9287f10394a225c25a150b",
48
- "nombre": "IGNACIO",
49
- "apellido": "PERINGA PONCE",
50
- "documento": "222222222",
51
- "fotoId": "5f9072d00254f253d9c7dd2c"
52
- },
53
- {
54
- "_id": "5f00d31e044ef317c36fd4f8",
55
- "relacion": {
56
- "_id": "59247c391ebf0273353b23c0",
57
- "nombre": "hijo/a",
58
- "opuesto": "progenitor/a"
59
- },
60
- "referencia": "5f00d2f7acfe3a7e46a88227",
61
- "nombre": "JUAN CRUZ",
62
- "apellido": "PERINGA PONCE",
63
- "documento": "11111111",
64
- "fotoId": "5f9078ff0254f253d9dc7212"
65
- },
66
- {
67
- "_id": "5f09f00d5cec191aa5908457",
68
- "relacion": {
69
- "_id": "59247e1c1ebf0273353b23c5",
70
- "nombre": "otro",
71
- "opuesto": "otro"
72
- },
73
- "referencia": "59cb176acd21ce293061b67b",
74
- "nombre": "FLORENCIA INES",
75
- "apellido": "YAMIL",
76
- "documento": "15365478",
77
- "fotoId": "5f9072b40254f253d9c79556"
78
- }
79
- ],
80
- "direccion": [
81
- {
82
- "geoReferencia": [
83
- -38.9305707,
84
- -68.0839758
85
- ],
86
- "activo": true,
87
- "_id": "58d90d6f0bb1a96b254d9878",
88
- "valor": "Enrique Santos Discepolo 1856",
89
- "codigoPostal": "8300",
90
- "ubicacion": {
91
- "_id": "58d90d6f0bb1a96b254d9879",
92
- "pais": {
93
- "_id": "57f3b5c469fe79a598e6281f",
94
- "nombre": "Argentina"
95
- },
96
- "provincia": {
97
- "_id": "57f3f3aacebd681cc2014c53",
98
- "nombre": "Neuquén"
99
- },
100
- "localidad": {
101
- "_id": "57f538a472325875a199a82d",
102
- "nombre": "NEUQUEN"
103
- },
104
- "barrio": null
105
- },
106
- "ranking": 0,
107
- "ultimaActualizacion": "2017-03-27T10:02:16.809-03:00"
108
- },
109
- {
110
- "geoReferencia": null,
111
- "activo": true,
112
- "_id": "6046105ba4e2d85f81ad60f7",
113
- "valor": "NORDENSTROM 1898 0 0",
114
- "codigoPostal": "8300",
115
- "ranking": 1,
116
- "ubicacion": {
117
- "_id": "6046105ba4e2d85f81ad60f8",
118
- "pais": {
119
- "_id": "57f3b5c469fe79a598e6281f",
120
- "nombre": "Argentina"
121
- },
122
- "provincia": {
123
- "_id": "57f3f3aacebd681cc2014c53",
124
- "nombre": "Neuquén"
125
- },
126
- "localidad": {
127
- "_id": "57f538a472325875a199a82d",
128
- "nombre": "Neuquén"
129
- },
130
- "barrio": null
131
- },
132
- "ultimaActualizacion": "2021-03-08T08:54:04.089-03:00"
133
- }
134
- ],
135
- "contacto": [
136
- {
137
- "activo": true,
138
- "_id": "5cabf8cc129519c9cd5bf6f2",
139
- "tipo": "celular",
140
- "valor": "4462221"
141
- },
142
- {
143
- "activo": true,
144
- "_id": "5cabf8cc129519c9cd5bf6f1",
145
- "tipo": "email",
146
- "valor": "hugoperingaponce@gmail.com"
147
- }
148
- ],
149
- "identificadores": [
150
- {
151
- "entidad": "RENAPER",
152
- "valor": "241654536"
153
- }
154
- ],
155
- "estadoCivil": "soltero",
156
- "reportarError": false,
157
- "scan": "27381849",
158
- "carpetaEfectores": [
159
- {
160
- "_id": "5992e06a0e3f6446112e9bd5",
161
- "organizacion": {
162
- "_id": "59650203d03019f919ea31ed",
163
- "nombre": "CENTRO DE SALUD PARQUE INDUSTRIAL"
164
- },
165
- "nroCarpeta": ""
166
- },
167
- {
168
- "_id": "5b57565dc0202168d3d5762d",
169
- "organizacion": {
170
- "_id": "57e9670e52df311059bc8964",
171
- "nombre": "HOSPITAL PROVINCIAL NEUQUEN - DR. EDUARDO CASTRO RENDON"
172
- },
173
- "nroCarpeta": "PDR27381849"
174
- }
175
- ],
176
- "notas": [],
177
- "cuil": "23273818499",
178
- "foto": null,
179
- "activo": true,
180
- "notaError": "",
181
- "tipoIdentificacion": null,
182
- "fotoId": "6046105c18944f849e9fe315",
183
- "documentos": [],
184
- "fechaFallecimiento": null
185
- }
1
+ {
2
+ "_id": "58d30d6fgbb1a96b254d9877",
3
+ "entidadesValidadoras": [
4
+ "RENAPER",
5
+ "Sisa"
6
+ ],
7
+ "documento": "42910660",
8
+ "apellido": "PERINGA PONCE",
9
+ "nombre": "HUGO AGUSTIN",
10
+ "sexo": "masculino",
11
+ "fechaNacimiento": "1979-11-14T03:00:00.000-03:00",
12
+ "estado": "validado",
13
+ "genero": "masculino",
14
+ "financiador": [
15
+ {
16
+ "codigoPuco": 921001,
17
+ "nombre": "O.S.P. NEUQUEN",
18
+ "financiador": "O.S.P. NEUQUEN"
19
+ },
20
+ {
21
+ "codigoPuco": 921001,
22
+ "nombre": "O.S.P. NEUQUEN",
23
+ "financiador": "O.S.P. NEUQUEN"
24
+ }
25
+ ],
26
+ "relaciones": [
27
+ {
28
+ "_id": "5b92dec9646d99436065cbfc",
29
+ "relacion": {
30
+ "_id": "59247c391ebf0273353b23c0",
31
+ "nombre": "hijo/a",
32
+ "opuesto": "progenitor/a"
33
+ },
34
+ "referencia": "5b92de583173b053ae88f2d0",
35
+ "nombre": "JOSEFINA",
36
+ "apellido": "PERINGA PONCE",
37
+ "documento": "333333333",
38
+ "fotoId": "5f9072d00254f253d9c7dd54"
39
+ },
40
+ {
41
+ "_id": "5b92dec9646d99436065cbfa",
42
+ "relacion": {
43
+ "_id": "59247c391ebf0273353b23c0",
44
+ "nombre": "hijo/a",
45
+ "opuesto": "progenitor/a"
46
+ },
47
+ "referencia": "5b9287f10394a225c25a150b",
48
+ "nombre": "IGNACIO",
49
+ "apellido": "PERINGA PONCE",
50
+ "documento": "222222222",
51
+ "fotoId": "5f9072d00254f253d9c7dd2c"
52
+ },
53
+ {
54
+ "_id": "5f00d31e044ef317c36fd4f8",
55
+ "relacion": {
56
+ "_id": "59247c391ebf0273353b23c0",
57
+ "nombre": "hijo/a",
58
+ "opuesto": "progenitor/a"
59
+ },
60
+ "referencia": "5f00d2f7acfe3a7e46a88227",
61
+ "nombre": "JUAN CRUZ",
62
+ "apellido": "PERINGA PONCE",
63
+ "documento": "11111111",
64
+ "fotoId": "5f9078ff0254f253d9dc7212"
65
+ },
66
+ {
67
+ "_id": "5f09f00d5cec191aa5908457",
68
+ "relacion": {
69
+ "_id": "59247e1c1ebf0273353b23c5",
70
+ "nombre": "otro",
71
+ "opuesto": "otro"
72
+ },
73
+ "referencia": "59cb176acd21ce293061b67b",
74
+ "nombre": "FLORENCIA INES",
75
+ "apellido": "YAMIL",
76
+ "documento": "15365478",
77
+ "fotoId": "5f9072b40254f253d9c79556"
78
+ }
79
+ ],
80
+ "direccion": [
81
+ {
82
+ "geoReferencia": [
83
+ -38.9305707,
84
+ -68.0839758
85
+ ],
86
+ "activo": true,
87
+ "_id": "58d90d6f0bb1a96b254d9878",
88
+ "valor": "Enrique Santos Discepolo 1856",
89
+ "codigoPostal": "8300",
90
+ "ubicacion": {
91
+ "_id": "58d90d6f0bb1a96b254d9879",
92
+ "pais": {
93
+ "_id": "57f3b5c469fe79a598e6281f",
94
+ "nombre": "Argentina"
95
+ },
96
+ "provincia": {
97
+ "_id": "57f3f3aacebd681cc2014c53",
98
+ "nombre": "Neuquén"
99
+ },
100
+ "localidad": {
101
+ "_id": "57f538a472325875a199a82d",
102
+ "nombre": "NEUQUEN"
103
+ },
104
+ "barrio": null
105
+ },
106
+ "ranking": 0,
107
+ "ultimaActualizacion": "2017-03-27T10:02:16.809-03:00"
108
+ },
109
+ {
110
+ "geoReferencia": null,
111
+ "activo": true,
112
+ "_id": "6046105ba4e2d85f81ad60f7",
113
+ "valor": "NORDENSTROM 1898 0 0",
114
+ "codigoPostal": "8300",
115
+ "ranking": 1,
116
+ "ubicacion": {
117
+ "_id": "6046105ba4e2d85f81ad60f8",
118
+ "pais": {
119
+ "_id": "57f3b5c469fe79a598e6281f",
120
+ "nombre": "Argentina"
121
+ },
122
+ "provincia": {
123
+ "_id": "57f3f3aacebd681cc2014c53",
124
+ "nombre": "Neuquén"
125
+ },
126
+ "localidad": {
127
+ "_id": "57f538a472325875a199a82d",
128
+ "nombre": "Neuquén"
129
+ },
130
+ "barrio": null
131
+ },
132
+ "ultimaActualizacion": "2021-03-08T08:54:04.089-03:00"
133
+ }
134
+ ],
135
+ "contacto": [
136
+ {
137
+ "activo": true,
138
+ "_id": "5cabf8cc129519c9cd5bf6f2",
139
+ "tipo": "celular",
140
+ "valor": "4462221"
141
+ },
142
+ {
143
+ "activo": true,
144
+ "_id": "5cabf8cc129519c9cd5bf6f1",
145
+ "tipo": "email",
146
+ "valor": "hugoperingaponce@gmail.com"
147
+ }
148
+ ],
149
+ "identificadores": [
150
+ {
151
+ "entidad": "RENAPER",
152
+ "valor": "241654536"
153
+ }
154
+ ],
155
+ "estadoCivil": "soltero",
156
+ "reportarError": false,
157
+ "scan": "27381849",
158
+ "carpetaEfectores": [
159
+ {
160
+ "_id": "5992e06a0e3f6446112e9bd5",
161
+ "organizacion": {
162
+ "_id": "59650203d03019f919ea31ed",
163
+ "nombre": "CENTRO DE SALUD PARQUE INDUSTRIAL"
164
+ },
165
+ "nroCarpeta": ""
166
+ },
167
+ {
168
+ "_id": "5b57565dc0202168d3d5762d",
169
+ "organizacion": {
170
+ "_id": "57e9670e52df311059bc8964",
171
+ "nombre": "HOSPITAL PROVINCIAL NEUQUEN - DR. EDUARDO CASTRO RENDON"
172
+ },
173
+ "nroCarpeta": "PDR27381849"
174
+ }
175
+ ],
176
+ "notas": [],
177
+ "cuil": "23273818499",
178
+ "foto": null,
179
+ "activo": true,
180
+ "notaError": "",
181
+ "tipoIdentificacion": null,
182
+ "fotoId": "6046105c18944f849e9fe315",
183
+ "documentos": [],
184
+ "fechaFallecimiento": null,
185
+ "createdBy": {
186
+ "organizacion": {
187
+ "id": "50580352367779",
188
+ "nombre": "LABORATORIO RAÑA - SERVICIOS MEDICOS"
189
+ }
190
+ }
191
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.createPatient = void 0;
23
+ const basePatient = __importStar(require("../data/patient.json"));
24
+ exports.createPatient = (overrides = {}) => {
25
+ const clone = JSON.parse(JSON.stringify(basePatient));
26
+ return {
27
+ ...clone,
28
+ ...overrides,
29
+ };
30
+ };
31
+ //# sourceMappingURL=patientFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patientFactory.js","sourceRoot":"","sources":["../../../src/helpers/patientFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,kEAAoD;AAMvC,QAAA,aAAa,GAAG,CAAC,YAA6C,EAAE,EAAE,EAAE;IAC7E,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;IACtD,OAAO;QACH,GAAG,KAAK;QACR,GAAG,SAAS;KACf,CAAC;AACN,CAAC,CAAC"}
@@ -1,40 +1,40 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.encode = void 0;
4
- /**
5
- * Encode de Alergias e Intolerancias from ANDES to FHIR
6
- * @param {} AllergyIntolerance
7
- */
8
- function encode(patientReference, alergiaIntolerancia) {
9
- return {
10
- category: [
11
- 'medication'
12
- ],
13
- criticality: 'high',
14
- patient: {
15
- reference: patientReference
16
- },
17
- id: alergiaIntolerancia._id,
18
- code: {
19
- coding: [
20
- {
21
- system: 'http://snomed.info/sct',
22
- display: alergiaIntolerancia.concepto.term,
23
- code: alergiaIntolerancia.concepto.conceptId,
24
- }
25
- ]
26
- },
27
- meta: {
28
- profile: ['http://hl7.org/fhir/uv/ips/StructureDefinition/allergyintolerance-uv-ips']
29
- },
30
- text: {
31
- status: 'generated',
32
- div: "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: Alergia </p><p><b>meta</b>: </p><p><b>text</b>: " + alergiaIntolerancia.concepto.semanticTag + "</p></div>"
33
- },
34
- resourceType: 'AllergyIntolerance',
35
- type: 'allergy',
36
- onsetDateTime: alergiaIntolerancia.valor.fechaInicio
37
- };
38
- }
39
- exports.encode = encode;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.encode = void 0;
4
+ /**
5
+ * Encode de Alergias e Intolerancias from ANDES to FHIR
6
+ * @param {} AllergyIntolerance
7
+ */
8
+ function encode(patientReference, alergiaIntolerancia) {
9
+ return {
10
+ category: [
11
+ 'medication'
12
+ ],
13
+ criticality: 'high',
14
+ patient: {
15
+ reference: patientReference
16
+ },
17
+ id: alergiaIntolerancia._id,
18
+ code: {
19
+ coding: [
20
+ {
21
+ system: 'http://snomed.info/sct',
22
+ display: alergiaIntolerancia.concepto.term,
23
+ code: alergiaIntolerancia.concepto.conceptId,
24
+ }
25
+ ]
26
+ },
27
+ meta: {
28
+ profile: ['http://hl7.org/fhir/uv/ips/StructureDefinition/allergyintolerance-uv-ips']
29
+ },
30
+ text: {
31
+ status: 'generated',
32
+ div: `<div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: Alergia </p><p><b>meta</b>: </p><p><b>text</b>: ${alergiaIntolerancia.concepto.semanticTag}</p></div>`
33
+ },
34
+ resourceType: 'AllergyIntolerance',
35
+ type: 'allergy',
36
+ onsetDateTime: alergiaIntolerancia.valor.fechaInicio
37
+ };
38
+ }
39
+ exports.encode = encode;
40
40
  //# sourceMappingURL=allergyIntolerance.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"allergyIntolerance.js","sourceRoot":"","sources":["../../../src/lib/allergyIntolerance.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,SAAgB,MAAM,CAAC,gBAAgB,EAAE,mBAAmB;IACxD,OAAO;QACH,QAAQ,EAAE;YACN,YAAY;SACf;QACD,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE;YACL,SAAS,EAAE,gBAAgB;SAC9B;QACD,EAAE,EAAE,mBAAmB,CAAC,GAAG;QAC3B,IAAI,EAAE;YACF,MAAM,EAAE;gBACJ;oBACI,MAAM,EAAE,wBAAwB;oBAChC,OAAO,EAAE,mBAAmB,CAAC,QAAQ,CAAC,IAAI;oBAC1C,IAAI,EAAE,mBAAmB,CAAC,QAAQ,CAAC,SAAS;iBAC/C;aACJ;SACJ;QACD,IAAI,EAAE;YACF,OAAO,EAAE,CAAC,0EAA0E,CAAC;SACxF;QACD,IAAI,EAAE;YACF,MAAM,EAAE,WAAW;YACnB,GAAG,EAAE,6JAAyJ,mBAAmB,CAAC,QAAQ,CAAC,WAAW,eAAY;SACrN;QACD,YAAY,EAAE,oBAAoB;QAClC,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,mBAAmB,CAAC,KAAK,CAAC,WAAW;KACvD,CAAC;AACN,CAAC;AA9BD,wBA8BC"}
1
+ {"version":3,"file":"allergyIntolerance.js","sourceRoot":"","sources":["../../../src/lib/allergyIntolerance.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,SAAgB,MAAM,CAAC,gBAAgB,EAAE,mBAAmB;IACxD,OAAO;QACH,QAAQ,EAAE;YACN,YAAY;SACf;QACD,WAAW,EAAE,MAAM;QACnB,OAAO,EAAE;YACL,SAAS,EAAE,gBAAgB;SAC9B;QACD,EAAE,EAAE,mBAAmB,CAAC,GAAG;QAC3B,IAAI,EAAE;YACF,MAAM,EAAE;gBACJ;oBACI,MAAM,EAAE,wBAAwB;oBAChC,OAAO,EAAE,mBAAmB,CAAC,QAAQ,CAAC,IAAI;oBAC1C,IAAI,EAAE,mBAAmB,CAAC,QAAQ,CAAC,SAAS;iBAC/C;aACJ;SACJ;QACD,IAAI,EAAE;YACF,OAAO,EAAE,CAAC,0EAA0E,CAAC;SACxF;QACD,IAAI,EAAE;YACF,MAAM,EAAE,WAAW;YACnB,GAAG,EAAE,yJAAyJ,mBAAmB,CAAC,QAAQ,CAAC,WAAW,YAAY;SACrN;QACD,YAAY,EAAE,oBAAoB;QAClC,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,mBAAmB,CAAC,KAAK,CAAC,WAAW;KACvD,CAAC;AACN,CAAC;AA9BD,wBA8BC"}
@@ -1,23 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.encode = void 0;
4
- var moment = require("moment");
5
- var config_1 = require("./config");
6
- function encode(ID, resources) {
7
- return {
8
- resourceType: 'Bundle',
9
- id: ID,
10
- meta: {
11
- lastUpdated: moment().format()
12
- },
13
- language: 'es-AR',
14
- entry: resources,
15
- type: 'document',
16
- identifier: {
17
- system: config_1.makeUrl('Bundle'),
18
- value: ID
19
- }
20
- };
21
- }
22
- exports.encode = encode;
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.encode = void 0;
7
+ const moment_1 = __importDefault(require("moment"));
8
+ const config_1 = require("./config");
9
+ function encode(ID, resources) {
10
+ return {
11
+ resourceType: 'Bundle',
12
+ id: ID,
13
+ meta: {
14
+ lastUpdated: moment_1.default().format()
15
+ },
16
+ language: 'es-AR',
17
+ entry: resources,
18
+ type: 'document',
19
+ identifier: {
20
+ system: config_1.makeUrl('Bundle'),
21
+ value: ID
22
+ }
23
+ };
24
+ }
25
+ exports.encode = encode;
23
26
  //# sourceMappingURL=bundle.js.map