Skip to content

Commit 76ec713

Browse files
committed
remove uuid
1 parent 083a27f commit 76ec713

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/getMyPrescriptions/src/responses.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {Bundle, BundleEntry, OperationOutcome} from "fhir/r4"
22
import {StatusUpdateData, shouldGetStatusUpdates} from "./statusUpdate"
33
import {APIGatewayProxyResult as LambdaResult} from "aws-lambda"
4-
import {v4} from "uuid"
54
import {Logger} from "@aws-lambda-powertools/logger"
65

76
const TC009_SINGLE_EXCLUDED_PRESCRIPTION_NHS_NUMBER = "9990624666"
@@ -136,7 +135,7 @@ export const TC008_ERROR_RESPONSE: LambdaResult = {
136135
}
137136

138137
export 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
},

0 commit comments

Comments
 (0)