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 recordInternal model of a system information -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable SystemMapper.SystemEntryfindByName(String name) Finds a system by its name.static @Nullable SystemMapper.SystemEntryFinds a system by its OID.static @Nullable SystemMapper.SystemEntryFinds a system by its URI.static booleanChecks if a known system uses the given name.static booleanChecks if a known system uses the given OID.static booleanChecks 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.SystemEntryfound ornull.
-
findByOid
Finds a system by its OID.- Parameters:
oid- The non-null system OID.- Returns:
- the
SystemMapper.SystemEntryfound ornull.
-
findByName
Finds a system by its name.- Parameters:
name- The non-null system name.- Returns:
- the
SystemMapper.SystemEntryfound ornull.
-
hasUri
Checks if a known system uses the given URI.- Parameters:
uri- The system URI to check.- Returns:
trueif a known system uses the given URI,falseotherwise.
-
hasOid
Checks if a known system uses the given OID.- Parameters:
oid- The system OID to check.- Returns:
trueif a known system uses the given OID,falseotherwise.
-
hasName
Checks if a known system uses the given name.- Parameters:
name- The system name to check.- Returns:
trueif a known system uses the given name,falseotherwise.
-