eHealth Infrastructure (v2019.5)

StructureDefinition: ehealth-activitydefinition - Operation examples

GET [base]/ActivityDefinition/3683

Header

Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "ActivityDefinition",
  "id": "3683",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-03-11T13:25:57.410+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-activitydefinition"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-referenceRange",
      "extension": [
        {
          "url": "low",
          "valueQuantity": {
            "value": 2.0
          }
        },
        {
          "url": "high",
          "valueQuantity": {
            "value": 4.0
          }
        },
        {
          "url": "type",
          "valueCodeableConcept": {
            "text": "type"
          }
        }
      ]
    },
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-quality",
      "extension": [
        {
          "url": "qualityType",
          "valueCoding": {
            "code": "qualitytype"
          }
        },
        {
          "url": "qualityCode",
          "valueCoding": {
            "code": "qualitycode"
          }
        }
      ]
    },
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-recommendation",
      "valueCoding": {
        "code": "RecomCode"
      }
    },
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-owner",
      "valueReference": {
        "reference": "Organization/3681"
      }
    },
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-author",
      "valueReference": {
        "reference": "Practitioner/3680"
      }
    },
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-intendedAudience",
      "valueReference": {
        "reference": "Organization/3682"
      }
    }
  ],
  "version": "f3b0f5d6-52c8-4391-9e69-1ba853a5ee58",
  "name": "e3711c2c-b0c6-41db-b953-7c4fc4120478",
  "status": "active",
  "topic": [
    {
      "text": "eb983e96-0f7a-4c84-96d5-e639d124ffbe"
    }
  ]
}

GET [base]/ActivityDefinition?owner=Organization%2F3698

Header

Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Bundle",
  "id": "62c191d7-0075-4535-8728-04b36a730d04",
  "meta": {
    "lastUpdated": "2019-03-11T13:26:02.293+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "http://localhost:31000/hapi-fhir-server/fhir/ActivityDefinition?_format\u003djson\u0026_pretty\u003dtrue\u0026owner\u003dOrganization%2F3698"
    }
  ],
  "entry": [
    {
      "fullUrl": "http://localhost:31000/hapi-fhir-server/fhir/ActivityDefinition/3705",
      "resource": {
        "resourceType": "ActivityDefinition",
        "id": "3705",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-03-11T13:26:02.132+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-activitydefinition"
          ]
        },
        "extension": [
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-owner",
            "valueReference": {
              "reference": "Organization/3698"
            }
          },
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-author",
            "valueReference": {
              "reference": "Practitioner/3703"
            }
          }
        ],
        "version": "e1f5738b-7ab5-4a12-88c3-09142e9a652a",
        "name": "8b0fb442-4a28-4a41-ab64-011eb82fa791",
        "status": "active",
        "topic": [
          {
            "text": "84545178-a2a6-4822-bcdc-7481db110143"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "http://localhost:31000/hapi-fhir-server/fhir/ActivityDefinition/3699",
      "resource": {
        "resourceType": "ActivityDefinition",
        "id": "3699",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-03-11T13:26:01.026+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-activitydefinition"
          ]
        },
        "extension": [
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-owner",
            "valueReference": {
              "reference": "Organization/3698"
            }
          },
          {
            "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-author",
            "valueReference": {
              "reference": "Practitioner/3697"
            }
          }
        ],
        "version": "b29a77e3-75c0-4d30-bb1e-6ede12c89234",
        "name": "92ce71ec-8ce3-40e3-a2f2-50c1160545f4",
        "status": "active",
        "topic": [
          {
            "text": "45065268-0523-497e-9ca6-51d28cca1633"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

GET [base]/ActivityDefinition/3708/_history/2

Header

Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "ActivityDefinition",
  "id": "3708",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2019-03-11T13:26:02.833+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-activitydefinition"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-owner",
      "valueReference": {
        "reference": "Organization/3707"
      }
    },
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-author",
      "valueReference": {
        "reference": "Practitioner/3706"
      }
    }
  ],
  "version": "cdc6494d-6280-4aab-9338-b78ef579cbd7",
  "name": "8926a185-d620-44c3-8844-2257ecbd7f73",
  "status": "active",
  "topic": [
    {
      "text": "ccb5b624-fb12-4ff2-911a-357ee47b41fd"
    }
  ]
}

POST [base]/ActivityDefinition

Header

Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType": "ActivityDefinition",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-03-11T13:25:58.159+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-activitydefinition"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-owner",
      "valueReference": {
        "reference": "Organization/3685"
      }
    },
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-author",
      "valueReference": {
        "reference": "Practitioner/3684"
      }
    }
  ],
  "version": "0d76814d-4aa7-41d6-9464-ba456ddd9fa9",
  "name": "fd7e9c96-6ad0-4763-90a4-51948a387c53",
  "status": "active",
  "topic": [
    {
      "text": "9f4cf7bf-c5bc-46b8-b91f-5891a0e12810"
    }
  ]
}

Response

{
  "resourceType": "ActivityDefinition",
  "id": "3687",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-03-11T13:25:58.406+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-activitydefinition"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-owner",
      "valueReference": {
        "reference": "Organization/3685"
      }
    },
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-author",
      "valueReference": {
        "reference": "Practitioner/3684"
      }
    }
  ],
  "version": "0d76814d-4aa7-41d6-9464-ba456ddd9fa9",
  "name": "fd7e9c96-6ad0-4763-90a4-51948a387c53",
  "status": "active",
  "topic": [
    {
      "text": "9f4cf7bf-c5bc-46b8-b91f-5891a0e12810"
    }
  ]
}

PUT [base]/ActivityDefinition/3708

Header

Accept-Charset: utf-8
If-Match: "1"
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType": "ActivityDefinition",
  "id": "3708",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-03-11T13:26:02.705+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-activitydefinition"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-owner",
      "valueReference": {
        "reference": "Organization/3707"
      }
    },
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-author",
      "valueReference": {
        "reference": "Practitioner/3706"
      }
    }
  ],
  "version": "cdc6494d-6280-4aab-9338-b78ef579cbd7",
  "name": "8926a185-d620-44c3-8844-2257ecbd7f73",
  "status": "active",
  "topic": [
    {
      "text": "ccb5b624-fb12-4ff2-911a-357ee47b41fd"
    }
  ]
}

Response

{
  "resourceType": "ActivityDefinition",
  "id": "3708",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2019-03-11T13:26:02.833+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-activitydefinition"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-owner",
      "valueReference": {
        "reference": "Organization/3707"
      }
    },
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-author",
      "valueReference": {
        "reference": "Practitioner/3706"
      }
    }
  ],
  "version": "cdc6494d-6280-4aab-9338-b78ef579cbd7",
  "name": "8926a185-d620-44c3-8844-2257ecbd7f73",
  "status": "active",
  "topic": [
    {
      "text": "ccb5b624-fb12-4ff2-911a-357ee47b41fd"
    }
  ]
}