Tabnine Logo
CapabilityStatement$CapabilityStatementRestComponent.getSecurity
Code IndexAdd Tabnine to your IDE (free)

How to use
getSecurity
method
in
org.hl7.fhir.dstu3.model.CapabilityStatement$CapabilityStatementRestComponent

Best Java code snippets using org.hl7.fhir.dstu3.model.CapabilityStatement$CapabilityStatementRestComponent.getSecurity (Showing top 7 results out of 315)

origin: org.hspconsortium.client/hspc-java-client

CapabilityStatement.CapabilityStatementRestSecurityComponent restSecurity = rest.getSecurity();
List<Extension> extensions = restSecurity.getExtension();
origin: org.hspconsortium.reference/hspc-reference-api-smart-support

  @SuppressWarnings("Duplicates")
  @Override
  public CapabilityStatement addCapabilityStatement(CapabilityStatement capabilityStatement) {
    if (metadataRepositoryConfig.isSecured()) {
      List<CapabilityStatement.CapabilityStatementRestComponent> restList = capabilityStatement.getRest();

      CapabilityStatement.CapabilityStatementRestComponent rest = restList.get(0);
      CapabilityStatement.CapabilityStatementRestSecurityComponent restSecurity = rest.getSecurity();

      Extension conformanceExtension = new Extension(metadataRepositoryConfig.getUrisEndpointExtensionUrl());
      conformanceExtension.addExtension(new Extension("authorize", new UriType(metadataRepositoryConfig.getAuthorizeUrl())));
      conformanceExtension.addExtension(new Extension("token", new UriType(metadataRepositoryConfig.getTokenUrl())));
      conformanceExtension.addExtension(new Extension("register", new UriType(metadataRepositoryConfig.getRegistrationEndpointUrl())));
      conformanceExtension.addExtension(new Extension("launch-registration", new UriType(metadataRepositoryConfig.getLaunchRegistrationUrl())));

      restSecurity.addExtension(conformanceExtension);
      CodeableConcept codeableConcept = new CodeableConcept();
      Coding smartOnFhirCoding = new Coding("http://hl7.org/fhir/restful-security-service", "SMART-on-FHIR", "SMART-on-FHIR");
      codeableConcept.getCoding().add(smartOnFhirCoding);
      codeableConcept.setText("OAuth2 using SMART-on-FHIR profile (see http://docs.smarthealthit.org)");
      restSecurity.getService().add(codeableConcept);
    }

    return capabilityStatement;
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-converter

tgt.setMode(convertRestfulConformanceMode(src.getMode()));
tgt.setDocumentation(src.getDocumentation());
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent t : src.getResource())
 tgt.addResource(convertConformanceRestResourceComponent(t));
origin: ca.uhn.hapi.fhir/hapi-fhir-converter

public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent convertConformanceRestComponent(org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent();
 copyElement(src, tgt);
 tgt.setMode(convertRestfulConformanceMode(src.getMode()));
 if (src.hasDocumentation())
  tgt.setDocumentation(src.getDocumentation());
 tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
 for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent t : src.getResource())
  tgt.addResource(convertConformanceRestResourceComponent(t));
 for (org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent t : src.getInteraction())
  tgt.addInteraction(convertSystemInteractionComponent(t));
 for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam())
  tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
 for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent t : src.getOperation())
  tgt.addOperation(convertConformanceRestOperationComponent(t));
 for (org.hl7.fhir.dstu3.model.UriType t : src.getCompartment())
  tgt.addCompartment(t.getValue());
 return tgt;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu3

@Override
public Base makeProperty(int hash, String name) throws FHIRException {
 switch (hash) {
 case 3357091:  return getModeElement();
 case 1587405498:  return getDocumentationElement();
 case 949122880:  return getSecurity(); 
 case -341064690:  return addResource(); 
 case 1844104722:  return addInteraction(); 
 case -553645115:  return addSearchParam(); 
 case 1662702951:  return addOperation(); 
 case -397756334:  return addCompartmentElement();
 default: return super.makeProperty(hash, name);
 }
}
origin: jamesagnew/hapi-fhir

tgt.setMode(convertRestfulConformanceMode(src.getMode()));
tgt.setDocumentation(src.getDocumentation());
tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent t : src.getResource())
 tgt.addResource(convertConformanceRestResourceComponent(t));
origin: jamesagnew/hapi-fhir

public static org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent convertConformanceRestComponent(org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent tgt = new org.hl7.fhir.dstu2016may.model.Conformance.ConformanceRestComponent();
 copyElement(src, tgt);
 tgt.setMode(convertRestfulConformanceMode(src.getMode()));
 if (src.hasDocumentation())
  tgt.setDocumentation(src.getDocumentation());
 tgt.setSecurity(convertConformanceRestSecurityComponent(src.getSecurity()));
 for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceComponent t : src.getResource())
  tgt.addResource(convertConformanceRestResourceComponent(t));
 for (org.hl7.fhir.dstu3.model.CapabilityStatement.SystemInteractionComponent t : src.getInteraction())
  tgt.addInteraction(convertSystemInteractionComponent(t));
 for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestResourceSearchParamComponent t : src.getSearchParam())
  tgt.addSearchParam(convertConformanceRestResourceSearchParamComponent(t));
 for (org.hl7.fhir.dstu3.model.CapabilityStatement.CapabilityStatementRestOperationComponent t : src.getOperation())
  tgt.addOperation(convertConformanceRestOperationComponent(t));
 for (org.hl7.fhir.dstu3.model.UriType t : src.getCompartment())
  tgt.addCompartment(t.getValue());
 return tgt;
}
org.hl7.fhir.dstu3.modelCapabilityStatement$CapabilityStatementRestComponentgetSecurity

Popular methods of CapabilityStatement$CapabilityStatementRestComponent

  • getInteraction
  • getOperation
  • getResource
  • <init>
    Constructor
  • addInteraction
  • addOperation
  • addResource
  • addSearchParam
  • getCompartment
  • getSearchParam
  • isEmpty
  • setMode
  • isEmpty,
  • setMode,
  • addCompartment,
  • addCompartmentElement,
  • castToCode,
  • castToString,
  • castToUri,
  • compareDeep,
  • compareValues

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Notification (javax.management)
  • JLabel (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now