Skip to content

Commit

Permalink
Remove superfluous hashing API endpoint; just use the generic one.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyestein committed Jan 11, 2024
1 parent 6eabe11 commit 41c2371
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
9 changes: 0 additions & 9 deletions hasher/src/hasher/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,3 @@ async def hash_accession_number(message: str) -> Response:
)
async def hash_mrn(message: str) -> Response:
return Response(content=generate_hash(message, 64), media_type="application/text")


@router.get(
"/hash-image-identifier",
summary="Produce secure hash appropriate for an image identifier "
"(MRN + accession num concatenated)",
)
async def hash_image_identifier(message: str) -> Response:
return Response(content=generate_hash(message, 64), media_type="application/text")
4 changes: 1 addition & 3 deletions pixl_ehr/src/pixl_ehr/_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ def anonymise(self) -> PatientEHRData:
self.accession_number = pixl_hash(
self.accession_number, endpoint_path="hash-accession-number"
)
self.image_identifier = pixl_hash(
self.image_identifier, endpoint_path="hash-image-identifier"
)
self.image_identifier = pixl_hash(self.image_identifier, endpoint_path="hash")
self.acquisition_datetime = None

return self
Expand Down

0 comments on commit 41c2371

Please sign in to comment.