diff --git a/medcat/medcat/model_creation/preprocess_snomed.py b/medcat/medcat/model_creation/preprocess_snomed.py index bea4322d6..b6e6eb9f6 100644 --- a/medcat/medcat/model_creation/preprocess_snomed.py +++ b/medcat/medcat/model_creation/preprocess_snomed.py @@ -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"), @@ -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