src/main/java/ch/bfh/ti/i4mi/mag/mhd/iti66/IdRequestConverter.java
/**
     * convert DocumentManifest id to GetSubmissionSetAndContentsQuery converter
     * 
     * @param fhirHttpUri MAG defines uniqueId as FHIR id
     * @return
     */


@param fhirHttpUri MAG defines uniqueId as FHIR id
@return
@param fhirHttpUri MAG defines uniqueId as FHIR id @return
public QueryRegistry idToGetDocumentsQuery(@Header(value = "FhirHttpUri") String fhirHttpUri) {
        if (fhirHttpUri != null && fhirHttpUri.contains("/")) {
            boolean getLeafClass = true;
            String uuid = fhirHttpUri.substring(fhirHttpUri.lastIndexOf("/") + 1);
            GetSubmissionSetAndContentsQuery query = new GetSubmissionSetAndContentsQuery();
            final QueryRegistry queryRegistry = new QueryRegistry(query);
            query.setUuid(uuid);
            queryRegistry.setReturnType((getLeafClass) ? QueryReturnType.LEAF_CLASS : QueryReturnType.OBJECT_REF);
            return queryRegistry;
        }
        return null;
    }
public QueryRegistry idToGetDocumentsQuery ( @ Header ( value = "FhirHttpUri" ) String fhirHttpUri ) { if ( fhirHttpUri != null && fhirHttpUri . contains ( "/" ) ) { boolean getLeafClass = true ; String uuid = fhirHttpUri . substring ( fhirHttpUri . lastIndexOf ( "/" ) + 1 ) ; GetSubmissionSetAndContentsQuery query = new GetSubmissionSetAndContentsQuery ( ) ; final QueryRegistry queryRegistry = new QueryRegistry ( query ) ; query . setUuid ( uuid ) ; queryRegistry . setReturnType ( ( getLeafClass ) ? QueryReturnType . LEAF_CLASS : QueryReturnType . OBJECT_REF ) ; return queryRegistry ; } return null ; }
convert DocumentManifest id to GetSubmissionSetAndContentsQuery converter
convert DocumentManifest id to GetSubmissionSetAndContentsQuery converter