{
  "resourceType": "StructureDefinition",
  "url": "http://medico-emr.net/stu3/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": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Coverage",
  "baseDefinition": "http://medico-emr.net/stu3/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",
        "fixedUri": "http://medico-emr.net/stu3/sd/Coverage-SelfPayor-1"
      },
      {
        "id": "Coverage.identifier:medicoResourceId",
        "path": "Coverage.identifier",
        "sliceName": "medicoResourceId"
      },
      {
        "id": "Coverage.identifier:medicoResourceId.system",
        "path": "Coverage.identifier.system",
        "definition": "Must be a constant underneath http://medico-emr.net/%KUNDE%/sid1/SelfPayor",
        "comment": "Dynamically resolved for validation\r\n--FixedValue=http://medico-emr.net/%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.beneficiary",
        "path": "Coverage.beneficiary",
        "max": "1"
      },
      {
        "id": "Coverage.relationship.coding.code",
        "path": "Coverage.relationship.coding.code",
        "fixedCode": "self"
      },
      {
        "id": "Coverage.payor",
        "path": "Coverage.payor",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://medico-emr.net/stu3/sd/Reference-SubjectPatient-1",
            "targetProfile": "http://medico-emr.net/stu3/sd/Patient-Patient-1"
          }
        ]
      },
      {
        "id": "Coverage.payor.reference",
        "path": "Coverage.payor.reference",
        "min": 1
      }
    ]
  }
}