Package snomed defines the specification for SNOMED-CT releases in the RF2 format.
See the release file specifications
These are, in large part, raw representations of the release files with some small additions, predominantly relating to valid enumerations, to aid computability.
These structures are designed to cope with importing any SNOMED-CT distribution, including full distributions, a snapshot or a delta.
Package snomed defines the specification for SNOMED-CT releases in the RF2
format.
See the [release file specifications](https://confluence.ihtsdotools.org/display/DOCRELFMT/SNOMED+CT+Release+File+Specifications)
These are, in large part, raw representations of the release files with some
small additions, predominantly relating to valid enumerations, to aid
computability.
These structures are designed to cope with importing any SNOMED-CT
distribution, including full distributions, a snapshot or a delta.
* Full The files representing each type of component contain every version
of every component ever released.
* Snapshot The files representing each type of component contain one version
of every component released up to the time of the snapshot. The
version of each component contained in a snapshot is the most
recent version of that component at the time of the snapshot.
* Delta The files representing each type of component contain only
component versions created since the previous release. Each
component version in a delta release represents either a new
component or a change to an existing component.Turn a SNOMED entity into a vector
Turn a SNOMED entity into a vector
(defined? c)Is this concept fully defined? ie sufficiently defined by necessary conditions?
Is this concept fully defined? ie sufficiently defined by necessary conditions?
(identifier->namespace id)Return a string representing the namespace of a long-form identifier, or nil. See [[https://confluence.ihtsdotools.org/display/DOCRELFMT/6.6+Namespace-Identifier]] The namespace-identifier is a string representation of an integer value, left padded with 0s as necessary to ensure there are always seven digits in the value.
Return a string representing the namespace of a long-form identifier, or nil. See [[https://confluence.ihtsdotools.org/display/DOCRELFMT/6.6+Namespace-Identifier]] The namespace-identifier is a string representation of an integer value, left padded with 0s as necessary to ensure there are always seven digits in the value.
(identifier->type id)Get the type of SNOMED CT entity from the identifier specified.
The types are represented as namespaced keywords:
Get the type of SNOMED CT entity from the identifier specified. The types are represented as namespaced keywords: - :info.snomed/Concept - :info.snomed/Description - :info.snomed/Relationship.
DEPRECATED. Use defined? instead.
DEPRECATED. Use [[defined?]] instead.
DEPRECATED. Use fully-specified-name? instead.
DEPRECATED. Use [[fully-specified-name?]] instead.
DEPRECATED. Use primitive? instead.
DEPRECATED. Use [[primitive?]] instead.
DEPRECATED. Use synonym? instead.
DEPRECATED. Use [[synonym?]] instead.
(parse-batch batch)Lazily parse a batch of SNOMED entities, returning a batch with data as parsed entities and not simply raw imported data.
Lazily parse a batch of SNOMED entities, returning a batch with data as parsed entities and not simply raw imported data.
(parse-fields pattern values)Parse the values 'v' using the pattern specification 'pattern'. Parameters:
Pattern definition
Parse the values 'v' using the pattern specification 'pattern'. Parameters: - pattern : a string containing characters c, i or s. - values : a sequence of values to be parsed. Pattern definition - c : A SNOMED CT component identifier (SCTID) referring to a concept, description or relationship. - i : A signed integer - s : A UTF-8 text string. See https://confluence.ihtsdotools.org/display/DOCRELFMT/3.3.2+Release+File+Naming+Convention
(parse-mrcm-attribute-domain-refset-item _pattern v)(parse-snomed-filename filename)Parse a filename according the specifications outlined in https://confluence.ihtsdotools.org/display/DOCRELFMT/3.3.2+Release+File+Naming+Convention Each filename should match the following pattern: [FileType] _ [ContentType] _ [ContentSubType] _ [CountryNamespace] _ [VersionDate] . [FileExtension] . Returns a map containing all the information from the filename, or nil if the filename does not match the specification.
Parse a filename according the specifications outlined in https://confluence.ihtsdotools.org/display/DOCRELFMT/3.3.2+Release+File+Naming+Convention Each filename should match the following pattern: [FileType] _ [ContentType] _ [ContentSubType] _ [CountryNamespace] _ [VersionDate] . [FileExtension] . Returns a map containing all the information from the filename, or nil if the filename does not match the specification.
(partition-identifier id)Return the partition from the identifier. The partition identifier is stored in the penultimate last two digits. See https://confluence.ihtsdotools.org/display/DOCRELFMT/5.5.+Partition+Identifier identifier: 0123456789 meaning: xxxxxxxppc pp - partition identifier c - check digit.
Return the partition from the identifier. The partition identifier is stored in the penultimate last two digits. See https://confluence.ihtsdotools.org/display/DOCRELFMT/5.5.+Partition+Identifier identifier: 0123456789 meaning: xxxxxxxppc pp - partition identifier c - check digit.
Map of partition identifiers to type of entity. The penultimate two digits of a SNOMED CT identifier given the partition identifier.
Map of partition identifiers to type of entity. The penultimate two digits of a SNOMED CT identifier given the partition identifier.
(primitive? c)Is this concept primitive? ie not sufficiently defined by necessary conditions?
Is this concept primitive? ie not sufficiently defined by necessary conditions?
(refset-reifier attribute-description-concept-ids)Given a sequence of attribute description concept identifiers, return a function to reify a SimpleRefset into its concrete subtype.
The canonical pattern of attribute description concept identifiers is provided by SNOMED CT. For example, those for complex maps are found here
Reification of refset items could occur at time of import, or at runtime.
Given a sequence of attribute description concept identifiers, return a function to reify a SimpleRefset into its concrete subtype. The canonical pattern of attribute description concept identifiers is provided by SNOMED CT. For example, those for complex maps are found [here](https://confluence.ihtsdotools.org/display/DOCRELFMT/5.2.3.3+Complex+and+Extended+Map+from+SNOMED+CT+Reference+Sets) Reification of refset items could occur at time of import, or at runtime.
(term->lowercase {:keys [caseSignificanceId term]})Return the term of the description as a lower-case string, if possible, as determined by the case significance flag.
Return the term of the description as a lower-case string, if possible, as determined by the case significance flag.
Export data as per the SNOMED RF2 file format specification.
Export data as per the SNOMED RF2 file format specification.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |