Package org.hl7.fhir.r5.conformance
Class CapabilityStatementUtilities
- java.lang.Object
-
- org.hl7.fhir.r5.conformance.CapabilityStatementUtilities
-
public class CapabilityStatementUtilities extends Object
-
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description CapabilityStatementUtilities(SimpleWorkerContext context, String folder, KeyGenerator keygen)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompareSecurity(org.hl7.fhir.utilities.xhtml.XhtmlNode tbl, String path, CapabilityStatement.CapabilityStatementRestComponent self, CapabilityStatement.CapabilityStatementRestComponent other, CapabilityStatement.CapabilityStatementRestComponent intersection, CapabilityStatement.CapabilityStatementRestComponent union)CapabilityStatementUtilities.CapabilityStatementComparisonOutputisCompatible(String selfName, String otherName, CapabilityStatement self, CapabilityStatement other)Compares 2 capability statements to see if self is a subset of other e.g.voidsaveToFile()static voidtransfer(InputStream in, OutputStream out, int buffer)voidunzip(String zipFilePath, String destDirectory)Extracts a zip file specified by the zipFilePath to a directory specified by destDirectory (will be created if does not exists)
-
-
-
Constructor Detail
-
CapabilityStatementUtilities
public CapabilityStatementUtilities(SimpleWorkerContext context, String folder, KeyGenerator keygen) throws IOException
- Throws:
IOException
-
-
Method Detail
-
unzip
public void unzip(String zipFilePath, String destDirectory) throws IOException
Extracts a zip file specified by the zipFilePath to a directory specified by destDirectory (will be created if does not exists)- Parameters:
zipFilePath-destDirectory-- Throws:
IOException
-
saveToFile
public void saveToFile() throws IOException
- Throws:
IOException
-
isCompatible
public CapabilityStatementUtilities.CapabilityStatementComparisonOutput isCompatible(String selfName, String otherName, CapabilityStatement self, CapabilityStatement other) throws org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRFormatError, IOException
Compares 2 capability statements to see if self is a subset of other e.g. is a system implementing "+otherName+" also an implementation of self? the output is a series of messages identifying ways in which it is not, or warning messages where the algorithm is unable to determine the relationship Note that there are aspects of this question that are not computable. the- Parameters:
self-other-- Returns:
- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRFormatErrororg.hl7.fhir.exceptions.DefinitionException
-
compareSecurity
public void compareSecurity(org.hl7.fhir.utilities.xhtml.XhtmlNode tbl, String path, CapabilityStatement.CapabilityStatementRestComponent self, CapabilityStatement.CapabilityStatementRestComponent other, CapabilityStatement.CapabilityStatementRestComponent intersection, CapabilityStatement.CapabilityStatementRestComponent union)
-
transfer
public static void transfer(InputStream in, OutputStream out, int buffer) throws IOException
- Throws:
IOException
-
-