Skip to content

Commit

Permalink
create uuid // bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnwai committed Feb 11, 2025
1 parent a15b10c commit 2001fd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions gen3_tracker/meta/dataframer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# LOCAL FHIR DATABASE ###
###########################

import uuid
import inflection
import json
import ndjson
Expand All @@ -15,6 +16,7 @@
from functools import lru_cache
from typing import Dict, Generator, List

from gen3_tracker import ACED_NAMESPACE
from gen3_tracker.meta.entities import (
SimplifiedGroup,
SimplifiedResource,
Expand Down Expand Up @@ -634,9 +636,7 @@ def flattened_group_members(self) -> Generator[dict, None, None]:
# for each member in a group, yield a group member dict
for member_id in group_resource.members:
# unique primary key from group and member ids
group_member_id = (
simplified_group["id"] + "," + member_id
)
group_member_id = str(uuid.uuid5(ACED_NAMESPACE, simplified_group["id"] + "," + member_id))

# group member dict composed of a simple group dict, unique primary key, and unique member_id
yield {
Expand All @@ -663,7 +663,7 @@ def create_dataframe(
"DocumentReference": db.flattened_document_references,
"ResearchSubject": db.flattened_research_subjects,
"MedicationAdministration": db.flattened_medication_administrations,
"Specimen": db.flattened_specimen,
"Specimen": db.flattened_specimens,
"GroupMember": db.flattened_group_members,
}

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name='gen3_tracker',
version='0.0.7rc9',
version='0.0.7rc10',
description='A CLI for adding version control to Gen3 data submission projects.',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 2001fd2

Please sign in to comment.