Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absolute URL's in Resource References are not correctly extracted #173

Closed
AnalogJ opened this issue Jun 10, 2023 · 0 comments
Closed

Absolute URL's in Resource References are not correctly extracted #173

AnalogJ opened this issue Jun 10, 2023 · 0 comments

Comments

@AnalogJ
Copy link
Member

AnalogJ commented Jun 10, 2023

A user on Discord (BluePatient) noticed that his Clinical Notes (stored as a DocumentReference) were not correctly displaying in the Fasten UI - "Unknown Binary content type"

Screenshot_2023-06-10_at_5 09 55_PM

After debugging further, we determined that the Binary resource referenced in the DocumentReference attachments field was not being correctly retrieved and stored in Fasten.

Screen Shot 2023-06-11 at 12 30 44 AM

We need to recreate this issue in https://github.com/fastenhealth/fasten-sources as a test, and then fix the problem.


Test resource included below:

{
  "resourceType": "DocumentReference",
  "id": "93483342341344",
  "meta": {
    "versionId": "5",
    "lastUpdated": "1983-01-01T20:58:55.000Z"
  },
  "text": {
    "status": "generated",
    "div": "<div xmlns="http://www.w3.org/1999/xhtml/%22%3E<p><b>Document Reference</b></p><p><b>Patient Name</b>: XXXXXXXXX</p><p><b>Document Type</b>: Clinic Notes</p><p><b>Document Category</b>: Clinical Note</p><p><b>Document Title</b>: XXXXXXXX</p><p><b>Service End Date</b>: Jan  1, 1983  1:17 P.M. CDT</p><p><b>Document Status</b>: Amended</p><p><b>Verifying Provider</b>: XXXXXX, PhD</p></div>"
  },
  "identifier": [
    {
      "system": "https://fhir.cerner.com/ceuuid",
      "value": "XXXXXXXXX-XXXXX-XXXX-XXXX-XXXXXXXXXXX-XXXXXXXXXX-XXXXXXXX"
    }
  ],
  "status": "current",
  "docStatus": "amended",
  "type": {
    "coding": [
      {
        "system": "https://fhir.cerner.com/11e960ca-465e-403d-a8ac-dfa9be65dd83/codeSet/72",
        "code": "412639722",
        "display": "Clinic Notes"
      },
      {
        "system": "http://loinc.org/",
        "code": "34108-1"
      }
    ],
    "text": "Clinic Notes"
  },
  "category": [
    {
      "coding": [
        {
          "system": "http://hl7.org/fhir/us/core/CodeSystem/us-core-documentreference-category",
          "code": "clinical-note",
          "display": "Clinical Note"
        }
      ],
      "text": "Clinical Note"
},
    {
      "coding": [
        {
          "system": "http://loinc.org/",
          "code": "XXXXX-X"
        }
      ]
    }
  ],
  "subject": {
    "reference": "Patient/XXXXXXXXXXXXXXXXX",
    "display": "XXXXXXXXXXXXXX"
  },
  "date": "1983-01-01T18:31:29Z",
  "author": [
    {
      "reference": "Practitioner/XXXXXXXXXXX",
      "display": "X, XXXXX XXXXXX MD"
    },
    {
      "reference": "Practitioner/XXXXXXXXXX",
      "display": "X, PhD"
    }
  ],
  "authenticator": {
    "reference": "Practitioner/XXXXXXXXX",
    "display": "X, PhD"
  },
  "custodian": {
    "reference": "Organization/XXXXXXXXXXXX",
    "display": "XXXXX"
  },
  "content": [
    {
      "attachment": {
        "contentType": "application/pdf",
        "url": "https://fhir-myrecord.cerner.com/r4/d3434322-2225-5433-4543-3334d577785/Binary/XR-454444422",
        "title": "Fake Clinic Name",
        "creation": "1983-01-01T20:58:54.000Z"
      },
      "format": {
        "system": "http://ihe.net/fhir/ValueSet/IHE.FormatCode.codesystem",
        "code": "urn:ihe:iti:xds:2017:mimeTypeSufficient",
        "display": "mimeType Sufficient"
      }
    }
  ],
  "context": {
    "encounter": [
      {
        "reference": "Encounter/XXXXXXXXXXXXXXX"
      }
    ],
    "period": {
      "end": "1983-01-01T18:17:00Z"
    },
    "related": [
      {
        "reference": "DiagnosticReport/XXXXXXXXXXXXXX"
      }
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant