File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/getMyPrescriptions/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11import { Bundle , BundleEntry , OperationOutcome } from "fhir/r4"
22import { StatusUpdateData , shouldGetStatusUpdates } from "./statusUpdate"
33import { APIGatewayProxyResult as LambdaResult } from "aws-lambda"
4- import { v4 } from "uuid"
54import { Logger } from "@aws-lambda-powertools/logger"
65
76const TC009_SINGLE_EXCLUDED_PRESCRIPTION_NHS_NUMBER = "9990624666"
@@ -136,7 +135,7 @@ export const TC008_ERROR_RESPONSE: LambdaResult = {
136135}
137136
138137export function createExcludedPrescriptionEntry ( ) : BundleEntry {
139- const outcomeId = v4 ( )
138+ const outcomeId = crypto . randomUUID ( )
140139 const now = new Date ( ) . toISOString ( )
141140
142141 // Generate a short ID. 3 blocks of 6 alphanumeric characters
@@ -175,7 +174,7 @@ export function createExcludedPrescriptionEntry(): BundleEntry {
175174 }
176175
177176 return {
178- fullUrl : `urn:uuid:${ v4 ( ) } ` ,
177+ fullUrl : `urn:uuid:${ crypto . randomUUID ( ) } ` ,
179178 search : {
180179 mode : "outcome"
181180 } ,
You can’t perform that action at this time.
0 commit comments