{
  "resourceType": "StructureDefinition",
  "id": "digidot-Encounter-no",
  "url": "https://novari.no/fhir/digidot/StructureDefinition/digidot-Encounter-no",
  "version": "0.1.2",
  "name": "digidot_Encounter_no",
  "title": "DigiDot Encounter (NO)",
  "status": "draft",
  "date": "2025-09-11",
  "publisher": "Novari AS – DigiDot",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter",
        "path": "Encounter"
      },
      {
        "id": "Encounter.identifier",
        "path": "Encounter.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Encounter.type",
        "path": "Encounter.type",
        "max": "1"
      },
      {
        "id": "Encounter.subject",
        "path": "Encounter.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Encounter.period",
        "path": "Encounter.period"
      },
      {
        "id": "Encounter.length",
        "path": "Encounter.length",
        "max": "1"
      },
      {
        "id": "Encounter.location",
        "path": "Encounter.location",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Encounter.location.location",
        "path": "Encounter.location.location",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Location"
            ]
          }
        ]
      },
      {
        "id": "Encounter.serviceProvider",
        "path": "Encounter.serviceProvider",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Encounter.extension",
        "path": "Encounter.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Encounter.extension:helsegruppe",
        "path": "Encounter.extension",
        "sliceName": "helsegruppe",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://novari.no/fhir/StructureDefinition/helsegruppe"
            ]
          }
        ]
      }
    ]
  }
}