@@ -11,15 +11,11 @@ const lines = csv.trim().split("\n");
1111// Skip header
1212const dataLines = lines . slice ( 1 ) ;
1313
14- // console.log("__ENV", JSON.stringify(__ENV, null, 2));
15- console . log ( "__ENV.HOST" , JSON . stringify ( __ENV . HOST , null , 2 ) ) ;
16-
1714function getNextPointer ( ) {
1815 // pick the next line according to iteration in scenario
1916 const iter = exec . vu . iterationInScenario ;
2017 const index = iter % dataLines . length ;
2118 const line = dataLines [ index ] ;
22- console . log ( "🚀 ~ getNextPointer ~ line:" , line ) ;
2319 const [ count , pointer_id , pointer_type , custodian , nhs_number ] = line
2420 . split ( "," )
2521 . map ( ( field ) => field . trim ( ) ) ;
@@ -50,7 +46,6 @@ function getCustodianFromPointerId(pointer_id) {
5046function checkResponse ( res ) {
5147 const is_success = check ( res , { "status is 200" : ( r ) => r . status === 200 } ) ;
5248 if ( ! is_success ) {
53- console . log ( "🚀 ~ checkResponse ~ res.status:" , res . status ) ;
5449 console . warn ( res . json ( ) ) ;
5550 }
5651}
@@ -69,10 +64,6 @@ export function countDocumentReference() {
6964 `https://fhir.nhs.uk/Id/nhs-number|${ nhs_number } `
7065 ) ;
7166
72- console . log (
73- "🚀 ~ countDocumentReference ~ `https://${__ENV.HOST}/consumer/DocumentReference?_summary=count&subject:identifier=${identifier}`:" ,
74- `https://${ __ENV . HOST } /consumer/DocumentReference?_summary=count&subject:identifier=${ identifier } `
75- ) ;
7667 const res = http . get (
7768 `https://${ __ENV . HOST } /consumer/DocumentReference?_summary=count&subject:identifier=${ identifier } ` ,
7869 {
@@ -86,8 +77,6 @@ export function readDocumentReference() {
8677 const { pointer_id } = getNextPointer ( ) ;
8778 const custodian = getCustodianFromPointerId ( pointer_id ) ;
8879
89- console . log ( "🚀 ~ countDocumentReference ~ __ENV.HOST:" , __ENV . HOST ) ;
90-
9180 const res = http . get (
9281 `https://${ __ENV . HOST } /consumer/DocumentReference/${ pointer_id } ` ,
9382 {
@@ -107,8 +96,6 @@ export function searchDocumentReference() {
10796 ) ;
10897 const type = encodeURIComponent ( `http://snomed.info/sct|${ pointer_type } ` ) ;
10998
110- console . log ( "🚀 ~ countDocumentReference ~ __ENV.HOST:" , __ENV . HOST ) ;
111-
11299 const res = http . get (
113100 `https://${ __ENV . HOST } /consumer/DocumentReference?subject:identifier=${ identifier } &type=${ type } ` ,
114101 {
@@ -130,8 +117,6 @@ export function searchDocumentReferenceByCategory() {
130117 `http://snomed.info/sct|${ category_code } `
131118 ) ;
132119
133- console . log ( "🚀 ~ countDocumentReference ~ __ENV.HOST:" , __ENV . HOST ) ;
134-
135120 const res = http . get (
136121 `https://${ __ENV . HOST } /consumer/DocumentReference?subject:identifier=${ identifier } &category=${ category } ` ,
137122 {
@@ -150,8 +135,6 @@ export function searchPostDocumentReference() {
150135 type : `http://snomed.info/sct|${ pointer_type } ` ,
151136 } ) ;
152137
153- console . log ( "🚀 ~ countDocumentReference ~ __ENV.HOST:" , __ENV . HOST ) ;
154-
155138 const res = http . post (
156139 `https://${ __ENV . HOST } /consumer/DocumentReference/_search` ,
157140 body ,
@@ -172,8 +155,6 @@ export function searchPostDocumentReferenceByCategory() {
172155 category : `http://snomed.info/sct|${ category_code } ` ,
173156 } ) ;
174157
175- console . log ( "🚀 ~ countDocumentReference ~ __ENV.HOST:" , __ENV . HOST ) ;
176-
177158 const res = http . post (
178159 `https://${ __ENV . HOST } /consumer/DocumentReference/_search` ,
179160 body ,
@@ -192,7 +173,6 @@ export function countPostDocumentReference() {
192173 "subject:identifier" : `https://fhir.nhs.uk/Id/nhs-number|${ nhs_number } ` ,
193174 } ) ;
194175
195- console . log ( "🚀 ~ countDocumentReference ~ __ENV.HOST:" , __ENV . HOST ) ;
196176 const res = http . post (
197177 `https://${ __ENV . HOST } /consumer/DocumentReference/_search?_summary=count` ,
198178 body ,
@@ -219,8 +199,6 @@ export function searchPostDocumentReferenceAccessDenied() {
219199 "nrl.app-id" : "K6PerformanceTest" ,
220200 } ) ;
221201
222- console . log ( "🚀 ~ countDocumentReference ~ __ENV.HOST:" , __ENV . HOST ) ;
223-
224202 const res = http . post (
225203 `https://${ __ENV . HOST } /consumer/DocumentReference/_search` ,
226204 body ,
0 commit comments