Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion medcat/medcat/model_creation/preprocess_snomed.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class ExtensionDescription:

SNOMED_FOLDER_NAME_PATTERN = re.compile(
# within: EXTENSION PRODUCTION RELEASE
r"^SnomedCT_([A-Za-z0-9]+)_([A-Za-z0-9]+)_(\d{8}(?:T\d{6}Z)?)$")
r"^SnomedCT_([A-Za-z0-9-]+)_([A-Za-z0-9]+)_(\d{8}(?:T\d{6}Z)?)$")
PER_FILE_TYPE_PATHS = {
RefSetFileType.concept: os.path.join("Snapshot", "Terminology"),
RefSetFileType.description: os.path.join("Snapshot", "Terminology"),
Expand Down Expand Up @@ -185,6 +185,16 @@ class SupportedExtension(Enum):
refset=_IGNORE_TAG,
),
)
SPANISH = ExtensionDescription(
exp_name_in_folder="SpanishRelease-es",
exp_files=FileFormatDescriptor(
concept="Concept_SpanishExtensionSnapshot",
description="Description_SpanishExtensionSnapshot-es",
relationship="Relationship_SpanishExtensionSnapshot",
# NOTE: the below will be ignored for UK_CLIN bundle
refset="der2_iisssccRefset_ExtendedMapSpanishExtensionSnapshot"
),
)


@dataclass
Expand Down
Loading