public interface UriMapper
The FHIR Identifier type introduces a new mechanism for conveying the originating system of a particular identifier. Whereas HL7-based messages identify an assigning organization as a HD or an OID in the 'root' attribute respectively, HL7 FHIR permits the use of a URI. This requires some configuration on the part of actors to correctly map a URI to an OID or HD to maintain consistency with other actors which are not implementing the FHIR specification.
The same is basically true for code system identifications. HL7 FHIR permits the use of a URI, whereas HL7-based messages and requests use HD or OIDs.
Modifier and Type | Method and Description |
---|---|
static <T> Optional<T> |
findFirst(Supplier<Optional<T>>... suppliers) |
String |
namespaceToUri(String namespace)
Translates an Namespace into an URI.
|
String |
oidToUri(String oid)
Translates an OID into an URI.
|
Optional<String> |
uriToNamespace(String uri)
Translates an URI into a Namespace.
|
Optional<String> |
uriToOid(String uri)
Translates an URI into an OID.
|
Optional<String> uriToOid(String uri)
uri
- the URIInvalidUriSyntaxException
- if the uri string is no valid URIOptional<String> uriToNamespace(String uri)
uri
- the URIInvalidUriSyntaxException
- if the uri string is no valid URIString oidToUri(String oid)
uriToOid(String)
should
be applied.oid
- the OIDInvalidUriSyntaxException
String namespaceToUri(String namespace)
uriToNamespace(String)
(String)} should
be applied.namespace
- the namespaceInvalidUriSyntaxException
Copyright © 2018 Open eHealth Foundation. All rights reserved.