Retrieve History for Subject Identifiers

get

/ohfapi/cg/v3.3/subjectapi/subjects/history

This endpoint supports the retrieval of Histories for multiple Subject Identifiers passed. It returns History related information like Code, Category and other associated information.

Request

Supported Media Types
Query Parameters
  • Collection Format: multi
    Minimum Number of Items: 1
    Maximum Number of Items: 2147483647
    Subject Identifiers
  • Pagination query params: ?limit=2&offset=0
  • Pagination query params: ?limit=2&offset=0
Security
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : PageableCollectionHistory
Type: object
Model for paginated collections of data.
Show Source
Nested Schema : items
Type: array
A collection of paged items.
Show Source
Nested Schema : History
Type: object
Show Source
Nested Schema : Quantity
Type: object
Model for a Quantity object in CDM.
Show Source
Nested Schema : CodeableConcept
Type: object
Model that represents a value as a reference to one or more terminologies or ontologies or defined by the provision of text.
Show Source
Nested Schema : FamilyMemberRelationshipType
Type: object
Show Source
Nested Schema : Identifier
Type: object
Identifier assigned by a given system
Show Source
Nested Schema : LinkedReference
Type: object
Show Source
Nested Schema : DateRange
Type: object
Show Source
Nested Schema : ValueCode
Type: object
Show Source
Nested Schema : coding
Type: array
Read Only: true
Code(s) defined by a terminology system.
Show Source
Nested Schema : Coding
Type: object
Model for a reference to a code defined by a terminology system.
Show Source
Nested Schema : CdmIdentifier
Type: object
Identifier assigned by a given system
Show Source

400 Response

Invalid parameters supplied

404 Response

historys not found
Back to Top

Examples

The following example submits a GET request.

API URL

http://localhost:7010/ohfapi/cg/v3.3/subjectapi/subjects/history?id=79&id=80

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
  "resourceType": "History",
  "items": [
    {
      "identifier": {
        "system": "CDM",
        "value": "1"
      },
      "code": {
        "coding": [
          {
            "code": "402",
            "display": "PH402"
          }
        ]
      },
      "category": {
        "coding": [
          {
            "code": "PHTYPCD402",
            "display": "PHTYPNM402"
          }
        ]
      },
      "amount": {
        "units": "UOM1",
        "code": "1"
      },
      "frequency": {
        "units": "UOM1",
        "code": "1"
      },
      "period": {
        "start": "01/01/1920",
        "end": "01/31/1900"
      },
      "subject": {
        "reference": "/ohfapi/cg/v3.3/subjectapi/subjects/79"
      },
      "patient": {
        "reference": "/ohfapi/cg/v3.3/subjectapi/subjects/79/patients"
      }
    },
    {
      "identifier": {
        "system": "CDM",
        "value": "2"
      },
      "code": {
        "coding": [
          {
            "code": "2454",
            "display": "PH2454"
          }
        ]
      },
      "category": {
        "coding": [
          {
            "code": "PHTYPCD2454",
            "display": "PHTYPNM2454"
          }
        ]
      },
      "frequency": {
        "units": "UOM1",
        "code": "1"
      },
      "period": {
        "start": "01/01/1920",
        "end": "01/31/1900"
      },
      "subject": {
        "reference": "/ohfapi/cg/v3.3/subjectapi/subjects/80"
      },
      "patient": {
        "reference": "/ohfapi/cg/v3.3/subjectapi/subjects/80/patients"
      }
    }
  ],
  "count": 2,
  "hasMore": false,
  "links": [
    {
      "rel": "self",
      "href": "http://localhost:7010/ohfapi/cg/v3.3/subjectapi/subjects/history?id=79&id=80"
    }
  ]
}
Back to Top