{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2020-06-29T11:06:28.547+00:00"
  },
  "url": "http://helsedirektoratet.no/fhir/StructureDefinition/hdir-ContractFastlege-v1",
  "name": "HdirContractFastlegeV1",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Contract",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Contract",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Contract.implicitRules",
        "path": "Contract.implicitRules",
        "max": "0"
      },
      {
        "id": "Contract.language",
        "path": "Contract.language",
        "max": "0"
      },
      {
        "id": "Contract.text",
        "path": "Contract.text",
        "max": "0"
      },
      {
        "id": "Contract.contained",
        "path": "Contract.contained",
        "max": "0"
      },
      {
        "id": "Contract.identifier",
        "path": "Contract.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Contract.identifier:FLO",
        "path": "Contract.identifier",
        "sliceName": "FLO",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.identifier:FLO.use",
        "path": "Contract.identifier.use",
        "max": "0"
      },
      {
        "id": "Contract.identifier:FLO.type",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Contract.identifier.type",
        "max": "0"
      },
      {
        "id": "Contract.identifier:FLO.system",
        "path": "Contract.identifier.system",
        "min": 1,
        "fixedUri": "hdir:flo:id"
      },
      {
        "id": "Contract.identifier:FLO.value",
        "path": "Contract.identifier.value",
        "min": 1
      },
      {
        "id": "Contract.identifier:FLO.period",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Contract.identifier.period",
        "max": "0"
      },
      {
        "id": "Contract.identifier:FLO.assigner",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Contract.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Contract.url",
        "path": "Contract.url",
        "max": "0"
      },
      {
        "id": "Contract.version",
        "path": "Contract.version",
        "max": "0"
      },
      {
        "id": "Contract.status",
        "path": "Contract.status",
        "min": 1
      },
      {
        "id": "Contract.legalState",
        "path": "Contract.legalState",
        "max": "0"
      },
      {
        "id": "Contract.instantiatesCanonical",
        "path": "Contract.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "Contract.instantiatesUri",
        "path": "Contract.instantiatesUri",
        "max": "0"
      },
      {
        "id": "Contract.contentDerivative",
        "path": "Contract.contentDerivative",
        "max": "0"
      },
      {
        "id": "Contract.issued",
        "path": "Contract.issued",
        "max": "0"
      },
      {
        "id": "Contract.applies",
        "path": "Contract.applies",
        "min": 1
      },
      {
        "id": "Contract.applies.start",
        "path": "Contract.applies.start",
        "min": 1
      },
      {
        "id": "Contract.expirationType",
        "path": "Contract.expirationType",
        "max": "0"
      },
      {
        "id": "Contract.subject",
        "path": "Contract.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
            ]
          }
        ]
      },
      {
        "id": "Contract.subject.reference",
        "path": "Contract.subject.reference",
        "min": 1
      },
      {
        "id": "Contract.subject.type",
        "path": "Contract.subject.type",
        "min": 1,
        "fixedUri": "PractitionerRole"
      },
      {
        "id": "Contract.subject.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Contract.subject.display",
        "min": 1
      },
      {
        "id": "Contract.authority",
        "path": "Contract.authority",
        "short": "Kommune",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.authority.reference",
        "path": "Contract.authority.reference",
        "min": 1
      },
      {
        "id": "Contract.authority.type",
        "path": "Contract.authority.type",
        "min": 1
      },
      {
        "id": "Contract.authority.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Contract.authority.display",
        "min": 1
      },
      {
        "id": "Contract.domain",
        "path": "Contract.domain",
        "max": "0"
      },
      {
        "id": "Contract.site",
        "path": "Contract.site",
        "max": "0"
      },
      {
        "id": "Contract.name",
        "path": "Contract.name",
        "max": "0"
      },
      {
        "id": "Contract.title",
        "path": "Contract.title",
        "max": "0"
      },
      {
        "id": "Contract.subtitle",
        "path": "Contract.subtitle",
        "max": "0"
      },
      {
        "id": "Contract.alias",
        "path": "Contract.alias",
        "max": "0"
      },
      {
        "id": "Contract.author",
        "path": "Contract.author",
        "max": "0"
      },
      {
        "id": "Contract.scope",
        "path": "Contract.scope",
        "max": "0"
      },
      {
        "id": "Contract.topic[x]",
        "path": "Contract.topic[x]",
        "max": "0"
      },
      {
        "id": "Contract.type",
        "path": "Contract.type",
        "min": 1
      },
      {
        "id": "Contract.type.coding",
        "path": "Contract.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.type.coding.system",
        "path": "Contract.type.coding.system",
        "min": 1,
        "fixedUri": "http://hint.helsedirektoratet.no/kodeverk/api/kodeverk/hdir:fkr:avtaletype"
      },
      {
        "id": "Contract.type.coding.version",
        "path": "Contract.type.coding.version",
        "max": "0"
      },
      {
        "id": "Contract.type.coding.code",
        "path": "Contract.type.coding.code",
        "min": 1,
        "fixedCode": "FAAV"
      },
      {
        "id": "Contract.type.coding.userSelected",
        "path": "Contract.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Contract.subType",
        "path": "Contract.subType",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Contract.subType:PraksisType",
        "path": "Contract.subType",
        "sliceName": "PraksisType",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.subType:PraksisType.coding",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Contract.subType.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.subType:PraksisType.coding.system",
        "path": "Contract.subType.coding.system",
        "min": 1,
        "fixedUri": "http://hint.helsedirektoratet.no/kodeverk/api/kodeverk/hdir:fkr:sar_praksistyper"
      },
      {
        "id": "Contract.subType:PraksisType.coding.version",
        "path": "Contract.subType.coding.version",
        "max": "0"
      },
      {
        "id": "Contract.subType:PraksisType.coding.code",
        "path": "Contract.subType.coding.code",
        "min": 1
      },
      {
        "id": "Contract.subType:PraksisType.coding.userSelected",
        "path": "Contract.subType.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Contract.subType:FloListeType",
        "path": "Contract.subType",
        "sliceName": "FloListeType",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.subType:FloListeType.coding",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Contract.subType.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.subType:FloListeType.coding.system",
        "path": "Contract.subType.coding.system",
        "min": 1,
        "fixedUri": "http://hint.helsedirektoratet.no/kodeverk/api/kodeverk/hdir:fkr:flolistetype"
      },
      {
        "id": "Contract.subType:FloListeType.coding.version",
        "path": "Contract.subType.coding.version",
        "max": "0"
      },
      {
        "id": "Contract.subType:FloListeType.coding.code",
        "path": "Contract.subType.coding.code",
        "min": 1
      },
      {
        "id": "Contract.subType:FloListeType.coding.userSelected",
        "path": "Contract.subType.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Contract.contentDefinition",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ContentDefinition"
          }
        ],
        "path": "Contract.contentDefinition",
        "max": "0"
      },
      {
        "id": "Contract.term",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Term"
          }
        ],
        "path": "Contract.term",
        "max": "0"
      },
      {
        "id": "Contract.supportingInfo",
        "path": "Contract.supportingInfo",
        "max": "0"
      },
      {
        "id": "Contract.relevantHistory",
        "path": "Contract.relevantHistory",
        "max": "0"
      },
      {
        "id": "Contract.signer",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Signatory"
          }
        ],
        "path": "Contract.signer",
        "max": "0"
      },
      {
        "id": "Contract.friendly",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "FriendlyLanguage"
          }
        ],
        "path": "Contract.friendly",
        "max": "0"
      },
      {
        "id": "Contract.legal",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "LegalLanguage"
          }
        ],
        "path": "Contract.legal",
        "max": "0"
      },
      {
        "id": "Contract.rule",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "ComputableLanguage"
          }
        ],
        "path": "Contract.rule",
        "max": "0"
      },
      {
        "id": "Contract.legallyBinding[x]",
        "path": "Contract.legallyBinding[x]",
        "max": "0"
      }
    ]
  }
}