Class ChPpqmUtils

java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.chppqm.ChPpqmUtils

public final class ChPpqmUtils extends Object
Author:
Dmytro Rud
  • Field Details

    • FHIR_CONTEXT

      public static final FhirContext FHIR_CONTEXT
    • TEMPLATE_IDS

      public static final Set<String> TEMPLATE_IDS
    • TEMPLATE_PROFILE_URIS

      public static final Set<String> TEMPLATE_PROFILE_URIS
  • Method Details

    • getFhirContext

      public static FhirContext getFhirContext()
    • getTemplateProfileUri

      public static String getTemplateProfileUri(String templateId)
    • extractConsentId

      public static String extractConsentId(Consent consent, String idType)
    • extractConsentIdFromUrl

      public static String extractConsentIdFromUrl(String url)
    • extractConsentIdsFromEntryUrls

      public static Set<String> extractConsentIdsFromEntryUrls(Bundle bundle)
      Extracts identifiers of consents from URLs in a bundle's entries (primarily for PPQ-4 operation DELETE).
    • createUrl

      public static String createUrl(Consent consent)
    • createUrl

      public static String createUrl(String consentId)
    • createPpq4SubmitRequestBundle

      public static Bundle createPpq4SubmitRequestBundle(Collection<Consent> consents, Bundle.HTTPVerb httpMethod)
    • createPpq4DeleteRequestBundle

      public static Bundle createPpq4DeleteRequestBundle(Collection<String> consentIds)