{
  "resourceType": "StructureDefinition",
  "url": "https://medico-emr.net/medico/r4/sd/Coverage_SelfPayor_1",
  "name": "Coverage_SelfPayor_1",
  "status": "draft",
  "description": "Representing a contract between the patient (\"self-payor\") and the healthcare provider - that the patient will pay for certain amounts of the services received",
  "purpose": "Access: Read\r\nVisibility: public",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Coverage",
  "baseDefinition": "https://medico-emr.net/medico/r4/sd/Coverage_Base_1",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Coverage.id",
        "path": "Coverage.id",
        "definition": "medico: Format: SelfPayor-####\r\nwhere #### is x1150cog.cog---x1150cog.no"
      },
      {
        "id": "Coverage.meta.profile",
        "path": "Coverage.meta.profile",
        "fixedCanonical": "https://medico-emr.net/medico/r4/sd/Coverage_SelfPayor_1"
      },
      {
        "id": "Coverage.identifier",
        "path": "Coverage.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Coverage.identifier:medicoResourceId",
        "path": "Coverage.identifier",
        "sliceName": "medicoResourceId"
      },
      {
        "id": "Coverage.identifier:medicoResourceId.system",
        "path": "Coverage.identifier.system",
        "comment": "Dynamically resolved for validation\r\n--FixedValue=https://medico-emr.net/medico/%KUNDE%/sid1/SelfPayor"
      },
      {
        "id": "Coverage.type.coding.system",
        "path": "Coverage.type.coding.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/coverage-selfpay"
      },
      {
        "id": "Coverage.type.coding.code",
        "path": "Coverage.type.coding.code",
        "fixedCode": "pay"
      },
      {
        "id": "Coverage.subscriberId",
        "path": "Coverage.subscriberId",
        "max": "0"
      },
      {
        "id": "Coverage.relationship.coding.code",
        "path": "Coverage.relationship.coding.code",
        "fixedCode": "self"
      },
      {
        "id": "Coverage.payor",
        "path": "Coverage.payor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "profile": [
              "https://medico-emr.net/medico/r4/sd/Reference_SubjectPatient_1"
            ],
            "targetProfile": [
              "https://medico-emr.net/medico/r4/sd/Patient_Patient_1"
            ]
          }
        ]
      }
    ]
  }
}