/// <summary> /// Gets a list of documents based on the query criteria. The IHI of the individual is specified within the PCEHR header. The /// document status is set to 'Approved'. /// </summary> /// <param name="pcehrHeader">PCEHR header.</param> /// <returns>Query request</returns> public AdhocQueryResponse GetDocumentList(CommonPcehrHeader pcehrHeader) { // PCEHRHeaderValidator.Validate(pcehrHeader); AdhocQueryBuilder adhocQueryBuilder = new AdhocQueryBuilder(pcehrHeader.IhiNumber, new[] { DocumentStatus.Approved }); return(documentRegistryClient.GetDocumentList(pcehrHeader.GetHeader <PCEHRHeader>(), adhocQueryBuilder.BuildRequest())); }
/// <summary> /// Gets a list of documents based on the query criteria. The IHI of the individual is specified within the PCEHR header. /// </summary> /// <param name="pcehrHeader">PCEHR header.</param> /// <param name="documentStatus">Status of the documents.</param> /// <returns>Query response.</returns> public AdhocQueryResponse GetDocumentList(CommonPcehrHeader pcehrHeader, DocumentStatus documentStatus) { // PCEHRHeaderValidator.Validate(pcehrHeader); Validation.ValidateArgumentRequired("ihiNumber", pcehrHeader.IhiNumber); AdhocQueryBuilder adhocQueryBuilder = new AdhocQueryBuilder(pcehrHeader.IhiNumber, new[] { documentStatus }); return(documentRegistryClient.GetDocumentList(pcehrHeader.GetHeader <PCEHRHeader>(), adhocQueryBuilder.BuildRequest())); }