2017-09-19 7 views
-1

を働いていない、私は問題を持って含める、私は含まれるデータにフィルタを適用したいが、それはここでなJSON APIフィルタ

を働いていないシナリオ

APIです:

/patient/257?include=patientdiagnosis&filter[patientdiagnosis.IsDeleted]=0 

または

しかし、私はフィルタデータを取得しませんでした

データは

"included": [ { "type": "patient-diagnosis", "id": "17", "attributes": { "PatientDiagnosisId": 17, "PatientID": 257, "ICDID": 2, "IsActive": false, "DiagnosisDate": "0001-01-01T00:00:00", "CreatedDate": "2017-08-25T03:37:46.0239768", "CreatedBy": 1, "UpdatedBy": null, **"IsDeleted": true**, "DeletedBy": null }, 

答えて

0

含まincludeパラメータは、プライマリ・データへのすべての関連リソースを含むことを意味します。患者のために削除されていないすべてのpatient-diagnosisリソースを取得する場合は、別の方法でリクエストを構成する必要があります。

/patient/257/patient-diagnosis?filter[isdeleted]=false&include=patient 
関連する問題