Class SystemMapper
java.lang.Object
org.projecthusky.fhir.structures.utils.SystemMapper
A mapper for system OIDs and URIs.
A list of systems is available on HL7 FHIR website.
- Author:
- Quentin Ligier
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Internal model of a system information -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable SystemMapper.SystemEntry
findByName
(String name) Finds a system by its name.static @Nullable SystemMapper.SystemEntry
Finds a system by its OID.static @Nullable SystemMapper.SystemEntry
Finds a system by its URI.static boolean
Checks if a known system uses the given name.static boolean
Checks if a known system uses the given OID.static boolean
Checks if a known system uses the given URI.
-
Method Details
-
findByUri
Finds a system by its URI.- Parameters:
uri
- The non-null system URI.- Returns:
- the
SystemMapper.SystemEntry
found ornull
.
-
findByOid
Finds a system by its OID.- Parameters:
oid
- The non-null system OID.- Returns:
- the
SystemMapper.SystemEntry
found ornull
.
-
findByName
Finds a system by its name.- Parameters:
name
- The non-null system name.- Returns:
- the
SystemMapper.SystemEntry
found ornull
.
-
hasUri
Checks if a known system uses the given URI.- Parameters:
uri
- The system URI to check.- Returns:
true
if a known system uses the given URI,false
otherwise.
-
hasOid
Checks if a known system uses the given OID.- Parameters:
oid
- The system OID to check.- Returns:
true
if a known system uses the given OID,false
otherwise.
-
hasName
Checks if a known system uses the given name.- Parameters:
name
- The system name to check.- Returns:
true
if a known system uses the given name,false
otherwise.
-