Skip to content

Commit

Permalink
Changes required for XDS MU / RMU
Browse files Browse the repository at this point in the history
  • Loading branch information
unixoid committed Jul 1, 2024
1 parent 6363161 commit 7bda10e
Show file tree
Hide file tree
Showing 13 changed files with 689 additions and 248 deletions.
37 changes: 37 additions & 0 deletions src/main/java/ch/bfh/ti/i4mi/mag/MagConstants.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package ch.bfh.ti.i4mi.mag;

import lombok.experimental.UtilityClass;

@UtilityClass
public class MagConstants {

@UtilityClass
public static class FhirExtensionUrls {
private static final String MHD_PREFIX = "https://profiles.ihe.net/ITI/MHD/StructureDefinition/";
private static final String CH_PREFIX = "http://fhir.ch/ig/ch-epr-mhealth/StructureDefinition/";

// standard MHD extensions
public static final String REPOSITORY_UNIQUE_ID = MHD_PREFIX + "ihe-repositoryUniqueId";
public static final String DOCUMENT_ENTRY_VERSION = MHD_PREFIX + "ihe-version";
public static final String DOCUMENT_AVAILABILITY = MHD_PREFIX + "ihe-documentAvailability";

// Swiss EPR specific extensions
public static final String CH_AUTHOR_ROLE = CH_PREFIX + "ch-ext-author-authorrole";
public static final String CH_DELETION_STATUS = CH_PREFIX + "ch-ext-deletionstatus";
}

@UtilityClass
public static class XdsExtraMetadataSlotNames {
// Swiss EPR specific extra XDS metadata
public static final String CH_ORIGINAL_PROVIDER_ROLE = "urn:e-health-suisse:2020:originalProviderRole";
public static final String CH_DELETION_STATUS = "urn:e-health-suisse:2019:deletionStatus";
}

// TODO: Move further string literals here
@UtilityClass
public static class FhirCodingSystemIds {
public static final String RFC_3986 = "urn:ietf:rfc:3986";
public static final String MHD_DOCUMENT_ID_TYPE = "https://profiles.ihe.net/ITI/MHD/CodeSystem/DocumentIdentifierTypes";
}

}
Loading

0 comments on commit 7bda10e

Please sign in to comment.