{
  "resourceType": "StructureDefinition",
  "id": "sfm-DrugReviewInfo",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2025-04-16T14:48:46.7067541+00:00"
  },
  "url": "http://hl7.org/fhir/StructureDefinition/SfmDrugReviewInfo",
  "version": "1.0",
  "name": "SfmDrugReviewInfo",
  "title": "Sfm Drug Review Info",
  "status": "active",
  "date": "2025-04-16",
  "description": "This profile defines the structure for capturing detailed drug review information for patients within the SFM framework. It is designed to support the DrugReviewInfo endpoint, which provides access to comprehensive drug review data, including the number of treatments, last review date, planned review date, and associated comments. The profile facilitates querying and managing drug review information, ensuring compatibility with FHIR standards while accommodating additional details specific to the SFM system. It is particularly useful for healthcare providers to track and review patient medication plans, ensuring timely and accurate updates to treatment regimens.",
  "fhirVersion": "4.0.0",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Basic"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Comprehensive drug review information for a patient",
        "definition": "An extension to capture detailed information about a patient's drug review, including treatment counts, review dates, and comments, within the SFM framework."
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "min": 6
      },
      {
        "id": "Extension.extension:patient-fhir-id",
        "path": "Extension.extension",
        "sliceName": "patient-fhir-id",
        "short": "Unique FHIR ID of the patient",
        "definition": "The unique identifier assigned to the patient within the FHIR system, used to associate drug review information with the correct patient record.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:patient-fhir-id.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:patient-fhir-id.url",
        "path": "Extension.extension.url",
        "fixedUri": "patient-fhir-id"
      },
      {
        "id": "Extension.extension:patient-fhir-id.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.extension:number-of-medications",
        "path": "Extension.extension",
        "sliceName": "number-of-medications",
        "short": "Total number of medications",
        "definition": "The total count of medications currently prescribed to the patient, reflecting the scope of their treatment plan.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:number-of-medications.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:number-of-medications.url",
        "path": "Extension.extension.url",
        "fixedUri": "number-of-medications"
      },
      {
        "id": "Extension.extension:number-of-medications.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "Extension.extension:number-of-fixed-usage-medications",
        "path": "Extension.extension",
        "sliceName": "number-of-fixed-usage-medications",
        "short": "Count of fixed usage medications",
        "definition": "The number of medications prescribed with a fixed usage regimen, indicating treatments that have specific dosing schedules.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:number-of-fixed-usage-medications.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:number-of-fixed-usage-medications.url",
        "path": "Extension.extension.url",
        "fixedUri": "number-of-fixed-usage-medications"
      },
      {
        "id": "Extension.extension:number-of-fixed-usage-medications.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "Extension.extension:last-drug-review",
        "path": "Extension.extension",
        "sliceName": "last-drug-review",
        "short": "Date of the last drug review",
        "definition": "The date and time when the most recent drug review was conducted for the patient, providing a timeline for treatment evaluation.",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Extension.extension:last-drug-review.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:last-drug-review.url",
        "path": "Extension.extension.url",
        "fixedUri": "last-drug-review"
      },
      {
        "id": "Extension.extension:last-drug-review.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Extension.extension:last-review-comment",
        "path": "Extension.extension",
        "sliceName": "last-review-comment",
        "short": "Comments on the last review",
        "definition": "A summary or remarks provided by the healthcare provider during the last drug review, offering insights into the patient's response to treatment.",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Extension.extension:last-review-comment.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:last-review-comment.url",
        "path": "Extension.extension.url",
        "fixedUri": "last-review-comment"
      },
      {
        "id": "Extension.extension:last-review-comment.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.extension:planned-drug-review",
        "path": "Extension.extension",
        "sliceName": "planned-drug-review",
        "short": "Scheduled date for the next review",
        "definition": "The planned date and time for the patient's upcoming drug review, ensuring regular monitoring and adjustment of treatment plans.",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Extension.extension:planned-drug-review.extension",
        "path": "Extension.extension.extension",
        "max": "0"
      },
      {
        "id": "Extension.extension:planned-drug-review.url",
        "path": "Extension.extension.url",
        "fixedUri": "planned-drug-review"
      },
      {
        "id": "Extension.extension:planned-drug-review.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://ehelse.no/fhir/StructureDefinition/SfmDrugReviewInfoExtension"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "Value of extension",
        "definition": "Value of extension - must be one of a constrained set of the data types.",
        "min": 0,
        "max": "0",
        "type": [
          {
            "code": "string"
          },
          {
            "code": "integer"
          },
          {
            "code": "dateTime"
          }
        ]
      }
    ]
  }
}