{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-01-17T11:37:13.434+00:00"
  },
  "url": "https://medico-emr.net/medico/r4/sd/Account_CaseAccount_1",
  "name": "Account_CaseAccount_1",
  "status": "active",
  "date": "2019-01-17T11:37:13.3089975+00:00",
  "description": "virtual account that is 1:1 assigned to a case - it connects an encounter (of type case) - to a set of coverage.",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Account",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Account",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Account",
        "path": "Account",
        "definition": "virtual account that is 1:1 assigned to a case - it connects an encounter (of type case) - to a set of coverage."
      },
      {
        "id": "Account.id",
        "path": "Account.id",
        "short": "Format: CaseAccount-####",
        "definition": "Format: CaseAccount-####; the id part (####) is the case number (x1100pat.pat)",
        "min": 1
      },
      {
        "id": "Account.meta",
        "path": "Account.meta",
        "min": 1
      },
      {
        "id": "Account.meta.id",
        "path": "Account.meta.id",
        "max": "0"
      },
      {
        "id": "Account.meta.versionId",
        "path": "Account.meta.versionId",
        "max": "0"
      },
      {
        "id": "Account.meta.lastUpdated",
        "path": "Account.meta.lastUpdated",
        "max": "0"
      },
      {
        "id": "Account.meta.source",
        "path": "Account.meta.source",
        "max": "0"
      },
      {
        "id": "Account.meta.profile",
        "path": "Account.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://medico-emr.net/medico/r4/sd/Account_CaseAccount_1"
      },
      {
        "id": "Account.meta.security",
        "path": "Account.meta.security",
        "max": "0"
      },
      {
        "id": "Account.meta.tag",
        "path": "Account.meta.tag",
        "max": "0"
      },
      {
        "id": "Account.implicitRules",
        "path": "Account.implicitRules",
        "max": "0"
      },
      {
        "id": "Account.language",
        "path": "Account.language",
        "max": "0"
      },
      {
        "id": "Account.text",
        "path": "Account.text",
        "max": "0"
      },
      {
        "id": "Account.contained",
        "path": "Account.contained",
        "max": "0"
      },
      {
        "id": "Account.identifier",
        "path": "Account.identifier",
        "slicing": {
          "rules": "open"
        },
        "min": 1,
        "max": "1"
      },
      {
        "id": "Account.identifier:medicoResourceId",
        "path": "Account.identifier",
        "sliceName": "medicoResourceId",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/Identifier_medicoResourceId_1"
            ]
          }
        ]
      },
      {
        "id": "Account.identifier:medicoResourceId.system",
        "path": "Account.identifier.system",
        "definition": "https://medico-emr.net/medico/%KUNDE%/sid1/CaseAccount",
        "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier\r\nDynamically resolved for validation\r\n--FixedValue=https://medico-emr.net/medico/%KUNDE%/sid1/CaseAccount"
      },
      {
        "id": "Account.type",
        "path": "Account.type",
        "max": "0"
      },
      {
        "id": "Account.name",
        "path": "Account.name",
        "max": "0"
      },
      {
        "id": "Account.subject",
        "path": "Account.subject",
        "max": "0"
      },
      {
        "id": "Account.servicePeriod",
        "path": "Account.servicePeriod",
        "max": "0"
      },
      {
        "id": "Account.coverage.id",
        "path": "Account.coverage.id",
        "max": "0"
      },
      {
        "id": "Account.coverage.coverage",
        "path": "Account.coverage.coverage",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Coverage",
              "https://medico-emr.net/medico/r4/sd/Coverage_SelfPayor_1",
              "https://medico-emr.net/medico/r4/sd/Coverage_CostUnit_1"
            ]
          }
        ]
      },
      {
        "id": "Account.coverage.coverage.id",
        "path": "Account.coverage.coverage.id",
        "max": "0"
      },
      {
        "id": "Account.coverage.coverage.reference",
        "path": "Account.coverage.coverage.reference",
        "min": 1
      },
      {
        "id": "Account.coverage.coverage.type",
        "path": "Account.coverage.coverage.type",
        "max": "0"
      },
      {
        "id": "Account.coverage.coverage.identifier",
        "path": "Account.coverage.coverage.identifier",
        "max": "0"
      },
      {
        "id": "Account.coverage.coverage.display",
        "path": "Account.coverage.coverage.display",
        "max": "0"
      },
      {
        "id": "Account.coverage.priority",
        "path": "Account.coverage.priority",
        "max": "0"
      },
      {
        "id": "Account.owner",
        "path": "Account.owner",
        "max": "0"
      },
      {
        "id": "Account.description",
        "path": "Account.description",
        "max": "0"
      },
      {
        "id": "Account.guarantor",
        "path": "Account.guarantor",
        "max": "0"
      },
      {
        "id": "Account.partOf",
        "path": "Account.partOf",
        "max": "0"
      }
    ]
  }
}