{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-01-17T11:37:13.434+00:00"
  },
  "url": "http://medico-emr.net/stu3/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": "3.0.1",
  "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.profile",
        "path": "Account.meta.profile",
        "min": 1,
        "max": "1",
        "fixedUri": "http://medico-emr.net/stu3/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": "http://medico-emr.net/stu3/sd/Identifier-medicoResourceId-1"
          }
        ]
      },
      {
        "id": "Account.identifier:medicoResourceId.system",
        "path": "Account.identifier.system",
        "definition": "http://medico-emr.net/%KUNDE%/sid1/CaseAccount",
        "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier\r\nDynamically resolved for validation\r\n--FixedValue=http://medico-emr.net/%KUNDE%/sid1/CaseAccount"
      },
      {
        "id": "Account.status",
        "path": "Account.status",
        "max": "0"
      },
      {
        "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.period",
        "path": "Account.period",
        "max": "0"
      },
      {
        "id": "Account.active",
        "path": "Account.active",
        "max": "0"
      },
      {
        "id": "Account.balance",
        "path": "Account.balance",
        "max": "0"
      },
      {
        "id": "Account.coverage.coverage",
        "path": "Account.coverage.coverage",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://medico-emr.net/stu3/sd/Coverage-SelfPayor-1"
          },
          {
            "code": "Reference",
            "targetProfile": "http://medico-emr.net/stu3/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",
        "definition": "Relative URL to a coverage resource",
        "min": 1
      },
      {
        "id": "Account.coverage.coverage.identifier",
        "path": "Account.coverage.coverage.identifier",
        "max": "0"
      },
      {
        "id": "Account.coverage.coverage.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "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",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Guarantor"
          }
        ],
        "path": "Account.guarantor",
        "max": "0"
      }
    ]
  }
}