uwcirg / tb-api

1 stars 1 forks source link

Changes to Notes API to sync with FHIR Observation Resource: #20

Open pmanko opened 6 years ago

pmanko commented 6 years ago
{
  "resourceType": "Observation",
  "meta": {
    "versionId": "1",
    "lastUpdated": "<update_at>"
  },
  "id": <database-id>,
  "status": "final",
  "code": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "51855-5",
        "display": "Patient Note"
      }
    ]    
  },
  "subject": {
    "reference": "Patient/<patient_id>"
  },
  "performer": {
    "reference": "Patient/<patient_id>"
  },
  "effectiveDateTime": "<created_at>",
  "issued": "<created_at>",
  "valueString": "<note_body>"
}
pmanko commented 6 years ago

@thecalliopecrashed This is the format for the json that the tb-api will return, and the format it expects for a new note. Obviously you need only a subset of fields for note creation, since subject/performer/dates/etc can be set on the api-side.