Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Beschrijving

In Koppeltaal 2.0 maken we gebruik van verschillende resource types. De verschillende resource types gebruiken verschillende elementen om aan te geven of de resource content daadwerkelijk gebruikt wordt. Hiervoor wordt het element active of het element status gebruikt.

...

Extra Guidance

Warning
iconfalse

Op dit moment wordt vanuit het behoeftestellingsproces een uitgebreide guidance uitgewerkt over hoe om te gaan met de lifecycle van gegevens met betekenis voor het zorgproces. Gegevenslifecycle zorg(ondersteuning). In het kader van data minimalisatie is daar ook extra nadruk over wanneer gegevens soft verwijderd zouden moeten worden en wanneer hard.

Rationale


Implicaties


Voorbeelden

1 - Creëer een Patient Resource

POST http://hapi.fhir.org/baseR4/Patient/

{
  "resourceType""Patient",
  "active"true,
 "identifier": [{
      "use""usual",
      "system""http://hl7.org/fhir/sid/us-ssn",
      "value""555501234"
    }
  ],
  "name": [
    {
      "text""Berend Botje",
      "family""Botje",
      "given": [ "Berend" ]
    }
  ],
  "telecom": [{
    "system""email",
    "value""berendbotje01@vzvz.nl",
    "use""home"
  }],
  "gender""male",
  "birthDate""1970-12-20",
  "managingOrganization": {
    "identifier":
    {
      "system""http://fhir.nl/fhir/NamingSystem/agb-z",
      "value""12345678"
    },
  "type""Organization"
  }
}


Response:

{
    "resourceType""Patient",
    "id""2043390",
    "meta": {
        "versionId""1",
        "lastUpdated""2021-04-19T13:15:53.052+00:00"
    },
    "text": {
        "status""generated",
        "div""<div xmlns=\"http://www.w3.org/1999/xhtml\"><div class=\"hapiHeaderText\">Berend <b>BOTJE </b></div><table class=\"hapiPropertyTable\"><tbody><tr><td>Identifier</td><td>555501234</td></tr><tr><td>Date of birth</td><td><span>20 December 1970</span></td></tr></tbody></table></div>"
    },
    "identifier": [
        {
            "use""usual",
            "system""http://hl7.org/fhir/sid/us-ssn",
            "value""555501234"
        }
    ],
    "active"true,
    "name": [
        {
            "text""Berend Botje",
            "family""Botje",
            "given": [
                "Berend"
            ]
        }
    ],
    "telecom": [
        {
            "system""email",
            "value""berendbotje01@vzvz.nl",
            "use""home"
        }
    ],
    "gender""male",
    "birthDate""1970-12-20",
    "managingOrganization": {
        "type""Organization",
        "identifier": {
            "system""http://fhir.nl/fhir/NamingSystem/agb-z",
            "value""12345678"
        }
    }
}

2 - Verwijder (logische) de Patient Resource

DELETE http://hapi.fhir.org/baseR4/Patient/2043390

Response:

{
    "resourceType""OperationOutcome",
    "text": {
        "status""generated",
        "div""<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>Successfully deleted 1 resource(s) in 12ms</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
    },
    "issue": [
        {
            "severity""information",
            "code""informational",
            "diagnostics""Successfully deleted 1 resource(s) in 12ms"
        }
    ]
}


3 - Bevraag de (verwijderde) Patient Resource a.d.h.v. de id

GET http://hapi.fhir.org/baseR4/Patient/2043390

Statuscode: "410 Gone"

Location: http://hapi.fhir.org/baseR4/Patient/2043390/_history/2

{
    "resourceType""OperationOutcome",
    "text": {
        "status""generated",
        "div""<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Resource was deleted at 2021-04-19T13:18:00.818+00:00</pre></td>\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
    },
    "issue": [
        {
            "severity""error",
            "code""processing",
            "diagnostics""Resource was deleted at 2021-04-19T13:18:00.818+00:00"
        }
    ]
}


4 - Bevraag de historische gegevens van de Patient Resource a.d.h.v. de id en versieId

GET http://hapi.fhir.org/baseR4/Patient/2043390/_history/1

Statuscode: 200 OK

{
    "resourceType""Patient",
    "id""2043390",
    "meta": {
        "versionId""1",
        "lastUpdated""2021-04-19T13:15:53.052+00:00",
        "source""#vzvz_1235"
    },
    "text": {
        "status""generated",
        "div""<div xmlns=\"http://www.w3.org/1999/xhtml\"><div class=\"hapiHeaderText\">Berend <b>BOTJE </b></div><table class=\"hapiPropertyTable\"><tbody><tr><td>Identifier</td><td>555501234</td></tr><tr><td>Date of birth</td><td><span>20 December 1970</span></td></tr></tbody></table></div>"
    },
    "identifier": [
        {
            "use""usual",
            "system""http://hl7.org/fhir/sid/us-ssn",
            "value""555501234"
        }
    ],
    "active"true,
    "name": [
        {
            "text""Berend Botje",
            "family""Botje",
            "given": [
                "Berend"
            ]
        }
    ],
    "telecom": [
        {
            "system""email",
            "value""berendbotje01@vzvz.nl",
            "use""home"
        }
    ],
    "gender""male",
    "birthDate""1970-12-20",
    "managingOrganization": {
        "type""Organization",
        "identifier": {
            "system""http://fhir.nl/fhir/NamingSystem/agb-z",
            "value""12345678"
        }
    }
}


Toepassingsgebied

...