@metriport/commonwell-cert-runner 1.4.1 → 1.4.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.
package/lib/payloads.d.ts CHANGED
@@ -74,21 +74,21 @@ export declare const makePatient: ({ facilityId, details, }?: {
74
74
  assigner?: string;
75
75
  }[];
76
76
  name?: {
77
- text?: string;
78
77
  use?: string;
79
- period?: {
80
- start?: string;
81
- end?: string;
82
- };
78
+ text?: string;
83
79
  family?: string[];
84
80
  given?: string[];
85
81
  prefix?: string;
86
82
  suffix?: string;
83
+ period?: {
84
+ start?: string;
85
+ end?: string;
86
+ };
87
87
  }[];
88
88
  telecom?: {
89
- value?: string;
90
- system?: string;
91
89
  use?: string;
90
+ system?: string;
91
+ value?: string;
92
92
  period?: {
93
93
  start?: string;
94
94
  end?: string;
@@ -96,21 +96,21 @@ export declare const makePatient: ({ facilityId, details, }?: {
96
96
  }[];
97
97
  gender?: {
98
98
  code?: string;
99
- system?: string;
100
99
  display?: string;
100
+ system?: string;
101
101
  };
102
102
  birthDate?: string;
103
103
  address?: {
104
104
  use?: string;
105
- period?: {
106
- start?: string;
107
- end?: string;
108
- };
109
105
  line?: string[];
110
106
  city?: string;
111
107
  state?: string;
112
108
  zip?: string;
113
109
  country?: string;
110
+ period?: {
111
+ start?: string;
112
+ end?: string;
113
+ };
114
114
  }[];
115
115
  picture?: any;
116
116
  };
@@ -138,21 +138,21 @@ export declare const makeMergePatient: ({ facilityId }?: {
138
138
  assigner?: string;
139
139
  }[];
140
140
  name?: {
141
- text?: string;
142
141
  use?: string;
143
- period?: {
144
- start?: string;
145
- end?: string;
146
- };
142
+ text?: string;
147
143
  family?: string[];
148
144
  given?: string[];
149
145
  prefix?: string;
150
146
  suffix?: string;
147
+ period?: {
148
+ start?: string;
149
+ end?: string;
150
+ };
151
151
  }[];
152
152
  telecom?: {
153
- value?: string;
154
- system?: string;
155
153
  use?: string;
154
+ system?: string;
155
+ value?: string;
156
156
  period?: {
157
157
  start?: string;
158
158
  end?: string;
@@ -160,21 +160,21 @@ export declare const makeMergePatient: ({ facilityId }?: {
160
160
  }[];
161
161
  gender?: {
162
162
  code?: string;
163
- system?: string;
164
163
  display?: string;
164
+ system?: string;
165
165
  };
166
166
  birthDate?: string;
167
167
  address?: {
168
168
  use?: string;
169
- period?: {
170
- start?: string;
171
- end?: string;
172
- };
173
169
  line?: string[];
174
170
  city?: string;
175
171
  state?: string;
176
172
  zip?: string;
177
173
  country?: string;
174
+ period?: {
175
+ start?: string;
176
+ end?: string;
177
+ };
178
178
  }[];
179
179
  picture?: any;
180
180
  };
package/lib/tst.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
package/lib/tst.js ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const params = '_include=DocumentReference:patient&_include=DocumentReference:subject&_include=DocumentReference:authenticator&_include=DocumentReference:author&_include=DocumentReference:custodian&_include=DocumentReference:encounter&patient.identifier=urn:oid:2.16.840.1.113883.3.9621.5.616464|2.745884&status=current';
4
+ const one = params.replace(/patient\.identifier/i, "patient");
5
+ console.log(`one: ${one}`);
6
+ const two = one.replace(/urn\:oid\:.+\|(2\.\d+)/g, '$1');
7
+ console.log(`two: ${two}`);
8
+ //# sourceMappingURL=tst.js.map
package/lib/tst.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tst.js","sourceRoot":"","sources":["../src/tst.ts"],"names":[],"mappings":";;AA8BA,MAAM,MAAM,GAAG,iTAAiT,CAAC;AAEjU,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC;AAC9D,OAAO,CAAC,GAAG,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAA;AAC1B,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAC;AACzD,OAAO,CAAC,GAAG,CAAC,QAAQ,GAAG,EAAE,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/commonwell-cert-runner",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Tool to run through Edge System CommonWell certification test cases - by Metriport Inc.",
5
5
  "author": "Metriport Inc. <contact@metriport.com>",
6
6
  "homepage": "https://metriport.com/",
@@ -46,12 +46,12 @@
46
46
  "typescript": "^4.9.4"
47
47
  },
48
48
  "dependencies": {
49
- "@metriport/commonwell-sdk": "^3.1.1",
49
+ "@metriport/commonwell-sdk": "^3.1.2",
50
50
  "commander": "^9.5.0",
51
51
  "dotenv": "^16.0.3",
52
52
  "lodash": "^4.17.21",
53
53
  "nanoid": "^3.3.4",
54
54
  "unique-names-generator": "^4.7.1"
55
55
  },
56
- "gitHead": "188fc2ede1c97b400989a1615ba0a1412bbef356"
56
+ "gitHead": "ba1235137ba6f8cda2b6e32a9423347bb11ee9cd"
57
57
  }