HealthcareService

HTTP Metode Endepunkt Beskrivelse
GET /HealthcareService/Id Henter HealthcareService med gitt Id
PUT /HealthcareService/Id Oppdaterer HealthcareService med gitt Id
POST /HealthcareService Oppretter en ny HealthcareService
GET /HealthcareService Henter alle HealthcareServices

GET /HealthcareService/Id

Henter HealthcareService med gitt Id.

Parametre

Parameter Type Beskrivelse
id string Id til en helsetjeneste

Eksempel

Hent HealthcareService med Id 123456789:

GET /HealthcareService/123456789

Curl

curl -X 'GET' \
  'https://locoreg.dev.grunndata.nhn.no/HealtcareService/123456789' \
  -H 'accept: application/json'

PUT /HealtcareService/Id

Oppdater en HealthcareService med gitt Id.

Parametre

Parameter Type Beskrivelse
Id int Id-en til en helsetjeneste

Body

Kroppen i forespørselen tar inn en HealthcareService.

Eksempel

Oppdater HealthcareService med Id 123:

PUT /HealthcareService/123

{
  "resourceType": "HealthcareService",
  "name": "Trondheim helsestasjon for ungdom",
  "type": [
    {
      "coding": [
        {
          "code": "KF01"
        }
      ]
    }
  ],
  "location": [
    {
      "reference": "Location/4"
    }
  ],
  "availability": [
    {
      "availableTime": [
        {
          "daysOfWeek": [
            "wed"
          ],
          "allDay": true
        },
        {
          "daysOfWeek": [
            "mon",
            "fri"
          ],
          "availableStartTime": "08:30:00",
          "availableEndTime": "15:30:00"
        }
      ]
    }
  ]
}

Curl

curl -X 'PUT' \
  'https://locoreg.dev.grunndata.nhn.no/HealthcareService/123' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "resourceType": "HealthcareService",
  "type": [
    {
      "coding": [
        {
          "code": "KF01"
        }
      ]
    }
  ],
  "location": [
    {
      "reference": "Location/4"
    }
  ],
  "availability": [
    {
      "availableTime": [
        {
          "daysOfWeek": [
            "wed"
          ],
          "allDay": true
        },
        {
          "daysOfWeek": [
            "mon",
            "fri"
          ],
          "availableStartTime": "08:30:00",
          "availableEndTime": "15:30:00"
        }
      ]
    }
  ]
}'

GET /HealthcareService

Henter alle HealthcareServices.

Returnerer en Bundle med HealthcareServices i entriesene.

Respons

{
  "resourceType": "Bundle",
  "type": "searchset",
  "total": 3,
  "link": [
    {
      "relation": "self",
      "url": "https://locoreg.dev.grunndata.nhn.no/HealthcareService"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://locoreg.dev.grunndata.nhn.no/HealthcareService/1",
      "resource": {
        "resourceType": "HealthcareService",
        "id": "1",
        "active" : true,
        "name": "Midtbyen helsestasjon for ungdom",
        "meta": {
          "versionId": "AAAAAAAAJxo",
          "lastUpdated": "2024-08-27T14:41:35.926+00:00"
        },
        "type": [
          {
            "coding": [
              {
                "system": "https://fat.terminologi.ehelse.no/api/code-systems/adm/codelist/8663",
                "code": "KF01",
                "display": "Helsestasjons- og skolehelsetjeneste"
              }
            ]
          }
        ],
        "location": [
          {
            "reference": "https://locoreg.dev.grunndata.nhn.no/Location/4"
          }
        ],
        "availability": [
          {
            "availableTime": [
              {
                "daysOfWeek": [
                  "wed"
                ],
                "allDay": true
              },
              {
                "daysOfWeek": [
                  "mon",
                  "tue",
                  "thu",
                  "fri"
                ],
                "availableStartTime": "08:30:00",
                "availableEndTime": "15:30:00"
              }
            ]
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://locoreg.dev.grunndata.nhn.no/HealthcareService/2",
      "resource": {
        "resourceType": "HealthcareService",
        "id": "2",
        "active" : true,
        "name": "Øya helsestasjon for ungdom",
        "meta": {
          "versionId": "AAAAAAAAB9Y",
          "lastUpdated": "2024-08-15T10:58:03.352+00:00"
        },
        "type": [
          {
            "coding": [
              {
                "system": "https://fat.terminologi.ehelse.no/api/code-systems/adm/codelist/8663",
                "code": "KF0103",
                "display": "Helsestasjon for ungdom"
              }
            ]
          }
        ],
        "location": [
          {
            "reference": "https://locoreg.dev.grunndata.nhn.no/Location/4"
          }
        ],
        "availability": [
          {
            "availableTime": [
              {
                "daysOfWeek": [
                  "wed"
                ],
                "allDay": true
              },
              {
                "daysOfWeek": [
                  "mon",
                  "tue",
                  "thu",
                  "fri"
                ],
                "availableStartTime": "08:30:00",
                "availableEndTime": "15:30:00"
              }
            ]
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://locoreg.dev.grunndata.nhn.no/HealthcareService/3",
      "resource": {
        "resourceType": "HealthcareService",
        "id": "3",
        "active" : true,
        "name": "Byåsen helsestasjon for ungdom",
        "meta": {
          "versionId": "AAAAAAAAB9c",
          "lastUpdated": "2024-08-15T11:02:03.016+00:00"
        },
        "type": [
          {
            "coding": [
              {
                "system": "https://fat.terminologi.ehelse.no/api/code-systems/adm/codelist/8663",
                "code": "KF0103",
                "display": "Helsestasjon for ungdom"
              }
            ]
          }
        ],
        "location": [
          {
            "reference": "https://locoreg.dev.grunndata.nhn.no/Location/1"
          }
        ],
        "availability": [
          {
            "availableTime": [
              {
                "daysOfWeek": [
                  "wed"
                ],
                "allDay": true
              },
              {
                "daysOfWeek": [
                  "mon",
                  "tue",
                  "thu",
                  "fri"
                ],
                "availableStartTime": "08:30:00",
                "availableEndTime": "15:30:00"
              }
            ]
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}