{
  "resourceType": "StructureDefinition",
  "id": "IDMS-AGREEMENT-PROFILE",
  "url": "https://health.gov.on.ca/idms/fhir/StructureDefinition/IDMS-Agreement",
  "name": "IDMS_Contract_Agreement",
  "title": "IDMS - Contract - Agreement",
  "status": "active",
  "description": "Agreements and Amendments to Agreements.",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Contract",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Contract",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Contract.extension",
        "path": "Contract.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Contract.extension:originalAgreement",
        "path": "Contract.extension",
        "sliceName": "originalAgreement",
        "definition": "#### **_`IDMS: Reference to original agreement.`_**",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Original-Agreement-Reference"
            ]
          }
        ]
      },
      {
        "id": "Contract.extension:assignedTo",
        "path": "Contract.extension",
        "sliceName": "assignedTo",
        "definition": "#### **_`IDMS: Which employees are assigned to this agreement.`_**",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/ExtensionAssignedTo"
            ]
          }
        ]
      },
      {
        "id": "Contract.extension:effectiveDate",
        "path": "Contract.extension",
        "sliceName": "effectiveDate",
        "definition": "#### **_`IDMS: Effective Date and Reason.`_**",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Contract-Effective-Date"
            ]
          }
        ]
      },
      {
        "id": "Contract.extension:amendmentNumeric",
        "path": "Contract.extension",
        "sliceName": "amendmentNumeric",
        "definition": "#### **_`Numeric value of the Amemdment. This is used for sorting.`_**",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Agreement-Amendment-Number-Numeric"
            ]
          }
        ]
      },
      {
        "id": "Contract.extension:companyContact",
        "path": "Contract.extension",
        "sliceName": "companyContact",
        "definition": "#### **_`Reference to an employee at the company.`_**",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Company-Contact"
            ]
          }
        ]
      },
      {
        "id": "Contract.extension:businessStatus",
        "path": "Contract.extension",
        "sliceName": "businessStatus",
        "definition": "#### **_`Business Status.`_**",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Business-Status"
            ]
          }
        ]
      },
      {
        "id": "Contract.extension:externalStatus",
        "path": "Contract.extension",
        "sliceName": "externalStatus",
        "definition": "#### **_`External Status.`_**",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Agreement-External-Status"
            ]
          }
        ]
      },
      {
        "id": "Contract.extension:productRebate",
        "path": "Contract.extension",
        "sliceName": "productRebate",
        "definition": "#### **_`Product Rebates.`_**",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Rebate-Reference"
            ]
          }
        ]
      },
      {
        "id": "Contract.extension:createdUser",
        "path": "Contract.extension",
        "sliceName": "createdUser",
        "definition": "#### **_`IDMS: Link to the user that created the record.`_**",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/CreatedUser"
            ]
          }
        ]
      },
      {
        "id": "Contract.extension:createdDate",
        "path": "Contract.extension",
        "sliceName": "createdDate",
        "definition": "#### **_`IDMS: Date and Time the record was created.`_**",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/CreatedDate"
            ]
          }
        ]
      },
      {
        "id": "Contract.extension:updatedUser",
        "path": "Contract.extension",
        "sliceName": "updatedUser",
        "definition": "#### **_`IDMS: Link to the user that last updated the record.`_**",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/UpdatedUser"
            ]
          }
        ]
      },
      {
        "id": "Contract.extension:updatedDate",
        "path": "Contract.extension",
        "sliceName": "updatedDate",
        "definition": "#### **_`IDMS: Date and Time the record was last updated.`_**",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/UpdatedDate"
            ]
          }
        ]
      },
      {
        "id": "Contract.identifier",
        "path": "Contract.identifier",
        "definition": "#### **_`Agreement base contract number  .  Example: ABV-16-1.  Agreement version contract number adds the amendment number (version) to the base contract number. Example ABV-16-1-A23.   Amendment number formats :  A1 = Amendment 1 ,  OR = Orginal Contract, XX = Migrated from PLA.Meta   .`_**",
        "max": "2"
      },
      {
        "id": "Contract.identifier.use",
        "path": "Contract.identifier.use",
        "max": "0"
      },
      {
        "id": "Contract.identifier.type",
        "path": "Contract.identifier.type",
        "definition": "#### **_`There are 2 types of identifiers;  the Complete Contract Number and the Base Contract Number`_**",
        "max": "0"
      },
      {
        "id": "Contract.identifier.system",
        "path": "Contract.identifier.system",
        "definition": "#### **_`There are 2 types of identifiers;  For the Complete Contract Number use urn:idms:agreem:completeContractNumber and for the Base Contract Number use urn:idms:agreement:baseContractNumber `_**",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.identifier.value",
        "path": "Contract.identifier.value",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.identifier.period",
        "path": "Contract.identifier.period",
        "max": "0"
      },
      {
        "id": "Contract.identifier.assigner",
        "path": "Contract.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Contract.url",
        "path": "Contract.url",
        "max": "0"
      },
      {
        "id": "Contract.version",
        "path": "Contract.version",
        "short": "Amendment Number",
        "definition": "#### **_`The agreement amendment number .   Amendment number formats :  A1 = Amendment 1 ,  OR = Orginal Contract, XX = Migrated from PLA.Meta `_**"
      },
      {
        "id": "Contract.status",
        "path": "Contract.status",
        "definition": "#### **_`Main status of the agreement.  Stores the code`_**",
        "max": "0"
      },
      {
        "id": "Contract.legalState",
        "path": "Contract.legalState",
        "short": "Agreement Status",
        "definition": "#### **_`Statuses that being used are:  negotiable (Draft),  cancelled (inactive), executable, terminated, revoked (amended).   This status doesn't appear in the app but is needed for logic process `_**",
        "min": 1
      },
      {
        "id": "Contract.legalState.coding",
        "path": "Contract.legalState.coding",
        "max": "0"
      },
      {
        "id": "Contract.legalState.coding.system",
        "path": "Contract.legalState.coding.system",
        "max": "0"
      },
      {
        "id": "Contract.legalState.coding.version",
        "path": "Contract.legalState.coding.version",
        "max": "0"
      },
      {
        "id": "Contract.legalState.coding.code",
        "path": "Contract.legalState.coding.code",
        "short": "Status Code",
        "definition": "#### **_`The code for the status`_**",
        "max": "0"
      },
      {
        "id": "Contract.legalState.coding.display",
        "path": "Contract.legalState.coding.display",
        "short": "Status Name",
        "definition": "#### **_`The descriptive name of the status`_**",
        "max": "0"
      },
      {
        "id": "Contract.legalState.coding.userSelected",
        "path": "Contract.legalState.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Contract.legalState.text",
        "path": "Contract.legalState.text",
        "max": "0"
      },
      {
        "id": "Contract.instantiatesCanonical",
        "path": "Contract.instantiatesCanonical",
        "short": "Orignial Contract version",
        "definition": "#### **_`If it's amendment it's a reference to which agreement it is amending. Example: If this amendment 23 it would be ALN-21-1-A22`_**"
      },
      {
        "id": "Contract.instantiatesUri",
        "path": "Contract.instantiatesUri",
        "max": "0"
      },
      {
        "id": "Contract.contentDerivative",
        "path": "Contract.contentDerivative",
        "max": "0"
      },
      {
        "id": "Contract.issued",
        "path": "Contract.issued",
        "definition": "#### **_`The date on the Contract.  This maps to cdate column in the PLA.meta.`_**",
        "max": "1"
      },
      {
        "id": "Contract.applies",
        "path": "Contract.applies",
        "short": "Effective time period",
        "definition": "#### **_`Effective start date and end date for this agreement.`_**"
      },
      {
        "id": "Contract.applies.start",
        "path": "Contract.applies.start",
        "short": "Activation date",
        "definition": "#### **_`Activation date for this agreement`_**",
        "min": 1
      },
      {
        "id": "Contract.applies.end",
        "path": "Contract.applies.end",
        "short": "End date",
        "definition": "#### **_`Termination date for this agreement`_**"
      },
      {
        "id": "Contract.applies.end.extension",
        "path": "Contract.applies.end.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Contract.applies.end.extension:terminationReason",
        "path": "Contract.applies.end.extension",
        "sliceName": "terminationReason",
        "definition": "#### **_`IDMS: Termination Reason.`_**",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-EffectiveDate-Terminated-Reason"
            ]
          }
        ]
      },
      {
        "id": "Contract.expirationType",
        "path": "Contract.expirationType",
        "max": "0"
      },
      {
        "id": "Contract.subject",
        "path": "Contract.subject",
        "short": "Manufacter of Distributor",
        "definition": "#### **_`The Manufacturer or Distributor and any extra information about the organization with respect to this agreement`_**"
      },
      {
        "id": "Contract.subject.reference",
        "path": "Contract.subject.reference",
        "short": "Reference to the organization",
        "definition": "#### **_`Reference to the organization`_**",
        "min": 1
      },
      {
        "id": "Contract.subject.type",
        "path": "Contract.subject.type",
        "max": "0"
      },
      {
        "id": "Contract.subject.identifier",
        "path": "Contract.subject.identifier",
        "max": "0"
      },
      {
        "id": "Contract.subject.display",
        "path": "Contract.subject.display",
        "short": "Extra information about the organization",
        "definition": "#### **_`Name of the company.`_**"
      },
      {
        "id": "Contract.authority",
        "path": "Contract.authority",
        "short": "Manufacturer/Distributor",
        "definition": "#### **_`Reference to the manufacturer/distributor organization.  This includes a reference, code, name and type`_**",
        "max": "0"
      },
      {
        "id": "Contract.authority.reference",
        "path": "Contract.authority.reference",
        "definition": "#### **_`Reference to the Organization`_**\r\n\r\n\r\nA reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
        "min": 1
      },
      {
        "id": "Contract.authority.type",
        "path": "Contract.authority.type",
        "definition": "The expected type of the target of the . If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.reference\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
        "max": "0"
      },
      {
        "id": "Contract.authority.identifier",
        "path": "Contract.authority.identifier",
        "short": "Company Code and Type",
        "definition": "#### **_`The 3 character company code and the type of company`_**"
      },
      {
        "id": "Contract.authority.identifier.use",
        "path": "Contract.authority.identifier.use",
        "max": "0"
      },
      {
        "id": "Contract.authority.identifier.type",
        "path": "Contract.authority.identifier.type",
        "definition": "#### **_`Not sure if this is needed yet. The type of organization in reference to this agreement.  Manufacturer or Distributor or Manufacturer/Distributor`_**",
        "min": 1
      },
      {
        "id": "Contract.authority.identifier.system",
        "path": "Contract.authority.identifier.system",
        "max": "0"
      },
      {
        "id": "Contract.authority.identifier.value",
        "path": "Contract.authority.identifier.value",
        "short": "Company Code",
        "definition": "#### **_`The 3 character company code`_**"
      },
      {
        "id": "Contract.authority.identifier.period",
        "path": "Contract.authority.identifier.period",
        "max": "0"
      },
      {
        "id": "Contract.authority.identifier.assigner",
        "path": "Contract.authority.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Contract.authority.display",
        "path": "Contract.authority.display",
        "definition": "Name of the Company",
        "min": 1
      },
      {
        "id": "Contract.domain",
        "path": "Contract.domain",
        "max": "0"
      },
      {
        "id": "Contract.site",
        "path": "Contract.site",
        "definition": "#### **_`Alternate address for the Organization specific to this contract.  It references a contained Location resource `_**",
        "max": "1"
      },
      {
        "id": "Contract.name",
        "path": "Contract.name",
        "max": "0"
      },
      {
        "id": "Contract.title",
        "path": "Contract.title",
        "short": "Detailed Description of the Agreement",
        "definition": "#### **_`Detailed description of the contract with negotiation details `_**"
      },
      {
        "id": "Contract.subtitle",
        "path": "Contract.subtitle",
        "short": "Version Description",
        "definition": "#### **_`Description of the changes for this version of the agreement`_**",
        "max": "0"
      },
      {
        "id": "Contract.alias",
        "path": "Contract.alias",
        "short": "One line descrription ",
        "definition": "#### **_`One line summary description of the Agreement `_**"
      },
      {
        "id": "Contract.author",
        "path": "Contract.author",
        "short": "Lead Negotiator",
        "definition": "#### **_`Who this agreement is assigned to. Reference to a PractitonerRole`_**",
        "max": "0"
      },
      {
        "id": "Contract.scope",
        "path": "Contract.scope",
        "max": "0"
      },
      {
        "id": "Contract.topic[x]",
        "path": "Contract.topic[x]",
        "definition": "#### **_`Type of agreement.  Examples: PLA, PA`_**",
        "max": "0",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Contract.topic[x].coding",
        "path": "Contract.topic[x].coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.topic[x].coding.system",
        "path": "Contract.topic[x].coding.system",
        "max": "0"
      },
      {
        "id": "Contract.topic[x].coding.version",
        "path": "Contract.topic[x].coding.version",
        "max": "0"
      },
      {
        "id": "Contract.topic[x].coding.userSelected",
        "path": "Contract.topic[x].coding.userSelected",
        "max": "0"
      },
      {
        "id": "Contract.topic[x].text",
        "path": "Contract.topic[x].text",
        "max": "0"
      },
      {
        "id": "Contract.type",
        "path": "Contract.type",
        "short": "Agreement Type",
        "definition": "#### **_`Type of agreement.  Examples: PLA -  Product Listing Agreement, PA - Pricing Agreement`_**",
        "min": 1
      },
      {
        "id": "Contract.type.coding",
        "path": "Contract.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.type.coding.system",
        "path": "Contract.type.coding.system",
        "max": "0"
      },
      {
        "id": "Contract.type.coding.version",
        "path": "Contract.type.coding.version",
        "max": "0"
      },
      {
        "id": "Contract.type.coding.code",
        "path": "Contract.type.coding.code",
        "short": "Agreement Type Code",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "Agreement Type",
          "valueSet": "https://health.gov.on.ca/idms/fhir/ValueSet/AgreementType"
        }
      },
      {
        "id": "Contract.type.coding.display",
        "path": "Contract.type.coding.display",
        "short": "Agreement Type",
        "definition": "#### **_`Agreement type descriptive name,  Examples: Product Listing Agreement, Pricing Agreement`_**",
        "min": 1
      },
      {
        "id": "Contract.type.coding.userSelected",
        "path": "Contract.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Contract.type.text",
        "path": "Contract.type.text",
        "max": "0"
      },
      {
        "id": "Contract.subType",
        "path": "Contract.subType",
        "max": "0"
      },
      {
        "id": "Contract.contentDefinition",
        "path": "Contract.contentDefinition",
        "max": "0"
      },
      {
        "id": "Contract.term",
        "path": "Contract.term",
        "definition": "#### **_`Drug Product:  The drug products included in the agreement.`_**",
        "max": "1"
      },
      {
        "id": "Contract.term.identifier",
        "path": "Contract.term.identifier",
        "max": "0"
      },
      {
        "id": "Contract.term.issued",
        "path": "Contract.term.issued",
        "max": "0"
      },
      {
        "id": "Contract.term.applies",
        "path": "Contract.term.applies",
        "max": "0"
      },
      {
        "id": "Contract.term.topic[x]",
        "path": "Contract.term.topic[x]",
        "max": "0"
      },
      {
        "id": "Contract.term.type",
        "path": "Contract.term.type",
        "max": "0"
      },
      {
        "id": "Contract.term.subType",
        "path": "Contract.term.subType",
        "max": "0"
      },
      {
        "id": "Contract.term.text",
        "path": "Contract.term.text",
        "max": "0"
      },
      {
        "id": "Contract.term.securityLabel",
        "path": "Contract.term.securityLabel",
        "max": "0"
      },
      {
        "id": "Contract.term.offer",
        "path": "Contract.term.offer",
        "definition": "#### **_`FHIR Mandatory. Since it's mandatory just populated text with 'Drug Product' `_**"
      },
      {
        "id": "Contract.term.offer.identifier",
        "path": "Contract.term.offer.identifier",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.party",
        "path": "Contract.term.offer.party",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.topic",
        "path": "Contract.term.offer.topic",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.type",
        "path": "Contract.term.offer.type",
        "definition": "#### **_``_**",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.decision",
        "path": "Contract.term.offer.decision",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.decisionMode",
        "path": "Contract.term.offer.decisionMode",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.answer",
        "path": "Contract.term.offer.answer",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.text",
        "path": "Contract.term.offer.text",
        "definition": "#### **_`FHIR Mandatory. Populate with 'Drug Product' `_**"
      },
      {
        "id": "Contract.term.offer.linkId",
        "path": "Contract.term.offer.linkId",
        "max": "0"
      },
      {
        "id": "Contract.term.offer.securityLabelNumber",
        "path": "Contract.term.offer.securityLabelNumber",
        "max": "0"
      },
      {
        "id": "Contract.term.asset",
        "path": "Contract.term.asset",
        "short": "Drug Products",
        "definition": "#### **_`Drug Product:  The drug products included in the agreement.`_**",
        "min": 1
      },
      {
        "id": "Contract.term.asset.extension",
        "path": "Contract.term.asset.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Contract.term.asset.extension:witnessIndicator",
        "path": "Contract.term.asset.extension",
        "sliceName": "productStatus",
        "definition": "#### **_`IDMS: Product Status.`_**",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-Agreement-Product-Status"
            ]
          }
        ]
      },
      {
        "id": "Contract.term.asset.extension:originalAgreementNumber",
        "path": "Contract.term.asset.extension",
        "sliceName": "originalAgreementNumber",
        "definition": "#### **_`Indicates Agreement Number this asset was copied from.`_**",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.gov.on.ca/idms/fhir/StructureDefinition/Extension-original-agreement-number"
            ]
          }
        ]
      },
      {
        "id": "Contract.term.asset.scope",
        "path": "Contract.term.asset.scope",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.type",
        "path": "Contract.term.asset.type",
        "short": "Product type",
        "definition": "#### **_`This is either a Drug Product or a Rebate Definition`_**",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.type.coding",
        "path": "Contract.term.asset.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.term.asset.type.coding.system",
        "path": "Contract.term.asset.type.coding.system",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.type.coding.version",
        "path": "Contract.term.asset.type.coding.version",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.type.coding.code",
        "path": "Contract.term.asset.type.coding.code",
        "short": "Agreement Product Type Code",
        "definition": "#### **_`Code for Drug Product or Rebate Definition`_**",
        "max": "1"
      },
      {
        "id": "Contract.term.asset.type.coding.display",
        "path": "Contract.term.asset.type.coding.display",
        "definition": "#### **_`'Drug Product' or 'Rebate Definition'`_**",
        "min": 1
      },
      {
        "id": "Contract.term.asset.type.coding.userSelected",
        "path": "Contract.term.asset.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.type.text",
        "path": "Contract.term.asset.type.text",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.typeReference",
        "path": "Contract.term.asset.typeReference",
        "short": "Drug Product Reference",
        "definition": "#### **_`Reference to a (MedicinalProductDefinition).`_**",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.term.asset.subtype",
        "path": "Contract.term.asset.subtype",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.relationship",
        "path": "Contract.term.asset.relationship",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.context",
        "path": "Contract.term.asset.context",
        "definition": "#### **_`Funding Programs associated with this Drug Product`_**"
      },
      {
        "id": "Contract.term.asset.context.reference",
        "path": "Contract.term.asset.context.reference",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.context.code",
        "path": "Contract.term.asset.context.code",
        "definition": "#### **_`Code for the Ontario Drug Benefit funding program`_**",
        "binding": {
          "strength": "required",
          "description": "Funding Programs",
          "valueSet": "https://health.gov.on.ca/idms/fhir/ValueSet/Agreement-Funding-Program"
        }
      },
      {
        "id": "Contract.term.asset.context.text",
        "path": "Contract.term.asset.context.text",
        "definition": "#### **_`Description of when the funding is applicable. Example: Only when indication is Headache`_**"
      },
      {
        "id": "Contract.term.asset.condition",
        "path": "Contract.term.asset.condition",
        "short": "Transfer Details",
        "definition": "#### **_`Summary paragraph for this drug product.`_**"
      },
      {
        "id": "Contract.term.asset.periodType",
        "path": "Contract.term.asset.periodType",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.period",
        "path": "Contract.term.asset.period",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.usePeriod",
        "path": "Contract.term.asset.usePeriod",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.text",
        "path": "Contract.term.asset.text",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.linkId",
        "path": "Contract.term.asset.linkId",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.answer",
        "path": "Contract.term.asset.answer",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.securityLabelNumber",
        "path": "Contract.term.asset.securityLabelNumber",
        "short": "Schedule A - Table",
        "definition": "#### **_`Table number from Schedule A.`_**",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem",
        "path": "Contract.term.asset.valuedItem",
        "definition": "#### **_`Drug Benefit Price (for Drug Products).`_**"
      },
      {
        "id": "Contract.term.asset.valuedItem.entity[x]",
        "path": "Contract.term.asset.valuedItem.entity[x]",
        "definition": "#### **_`Drug Benefit Price (for Drug Products).`_**",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.entityReference",
        "path": "Contract.term.asset.valuedItem.entityReference",
        "definition": "#### **_`Drug Benefit Price (for Drug Products).`_**",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.entityCodeableConcept",
        "path": "Contract.term.asset.valuedItem.entityCodeableConcept",
        "definition": "#### **_`Drug Benefit Price Identifier (1,2,3, etc..)`_**",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Contract.term.asset.valuedItem.entityCodeableConcept.coding",
        "path": "Contract.term.asset.valuedItem.entityCodeableConcept.coding",
        "min": 1
      },
      {
        "id": "Contract.term.asset.valuedItem.entityCodeableConcept.coding.system",
        "path": "Contract.term.asset.valuedItem.entityCodeableConcept.coding.system",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.entityCodeableConcept.coding.version",
        "path": "Contract.term.asset.valuedItem.entityCodeableConcept.coding.version",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.entityCodeableConcept.coding.code",
        "path": "Contract.term.asset.valuedItem.entityCodeableConcept.coding.code",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.entityCodeableConcept.coding.display",
        "path": "Contract.term.asset.valuedItem.entityCodeableConcept.coding.display",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.entityCodeableConcept.coding.userSelected",
        "path": "Contract.term.asset.valuedItem.entityCodeableConcept.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.entityCodeableConcept.text",
        "path": "Contract.term.asset.valuedItem.entityCodeableConcept.text",
        "definition": "#### **_`Drug Benefit Price Unit`_**"
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier",
        "path": "Contract.term.asset.valuedItem.identifier",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier.use",
        "path": "Contract.term.asset.valuedItem.identifier.use",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier.type",
        "path": "Contract.term.asset.valuedItem.identifier.type",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier.type.coding",
        "path": "Contract.term.asset.valuedItem.identifier.type.coding",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier.type.coding.system",
        "path": "Contract.term.asset.valuedItem.identifier.type.coding.system",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier.type.coding.version",
        "path": "Contract.term.asset.valuedItem.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier.type.coding.code",
        "path": "Contract.term.asset.valuedItem.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier.type.coding.display",
        "path": "Contract.term.asset.valuedItem.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier.type.coding.userSelected",
        "path": "Contract.term.asset.valuedItem.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier.type.text",
        "path": "Contract.term.asset.valuedItem.identifier.type.text",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier.system",
        "path": "Contract.term.asset.valuedItem.identifier.system",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier.value",
        "path": "Contract.term.asset.valuedItem.identifier.value",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier.period",
        "path": "Contract.term.asset.valuedItem.identifier.period",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.identifier.assigner",
        "path": "Contract.term.asset.valuedItem.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.effectiveTime",
        "path": "Contract.term.asset.valuedItem.effectiveTime",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.quantity",
        "path": "Contract.term.asset.valuedItem.quantity",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.unitPrice",
        "path": "Contract.term.asset.valuedItem.unitPrice",
        "definition": "#### **_`Drug Benefit Price`_**",
        "max": "1"
      },
      {
        "id": "Contract.term.asset.valuedItem.factor",
        "path": "Contract.term.asset.valuedItem.factor",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.points",
        "path": "Contract.term.asset.valuedItem.points",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.net",
        "path": "Contract.term.asset.valuedItem.net",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.payment",
        "path": "Contract.term.asset.valuedItem.payment",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.paymentDate",
        "path": "Contract.term.asset.valuedItem.paymentDate",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.responsible",
        "path": "Contract.term.asset.valuedItem.responsible",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.recipient",
        "path": "Contract.term.asset.valuedItem.recipient",
        "max": "0"
      },
      {
        "id": "Contract.term.asset.valuedItem.linkId",
        "path": "Contract.term.asset.valuedItem.linkId",
        "definition": "#### **_`Unit of the Drug Benefit Price`_**",
        "max": "1"
      },
      {
        "id": "Contract.term.asset.valuedItem.securityLabelNumber",
        "path": "Contract.term.asset.valuedItem.securityLabelNumber",
        "max": "0"
      },
      {
        "id": "Contract.term.action",
        "path": "Contract.term.action",
        "max": "0"
      },
      {
        "id": "Contract.term.group",
        "path": "Contract.term.group",
        "max": "0"
      },
      {
        "id": "Contract.supportingInfo",
        "path": "Contract.supportingInfo",
        "short": "Related Drug Submissions",
        "definition": "#### **_`Reference to related drug submissions (ServiceRequests)`_**"
      },
      {
        "id": "Contract.relevantHistory",
        "path": "Contract.relevantHistory",
        "max": "0"
      },
      {
        "id": "Contract.signer",
        "path": "Contract.signer",
        "short": "Agreement Signoffs",
        "definition": "#### **_`Agreements are signed off by Manufacturers/Distributers, Managers, Directors and Executive Office. This is a record of who signed the agreement and when`_**"
      },
      {
        "id": "Contract.signer.type",
        "path": "Contract.signer.type",
        "short": "Type of Signoff",
        "definition": "#### **_`Type of signoff.  Example:  Executive Office, Manufacturer/Distributor `_**"
      },
      {
        "id": "Contract.signer.type.system",
        "path": "Contract.signer.type.system",
        "max": "0"
      },
      {
        "id": "Contract.signer.type.version",
        "path": "Contract.signer.type.version",
        "max": "0"
      },
      {
        "id": "Contract.signer.type.code",
        "path": "Contract.signer.type.code",
        "max": "1",
        "binding": {
          "strength": "required",
          "description": "Agreement Type",
          "valueSet": "https://health.gov.on.ca/idms/fhir/ValueSet/Signatory-Type"
        }
      },
      {
        "id": "Contract.signer.type.userSelected",
        "path": "Contract.signer.type.userSelected",
        "max": "0"
      },
      {
        "id": "Contract.signer.party",
        "path": "Contract.signer.party",
        "definition": "#### **_`Reference to the PractitionerRole of the person that signed off`_**",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
            ]
          }
        ],
        "max": "0"
      },
      {
        "id": "Contract.signer.signature.type",
        "path": "Contract.signer.signature.type",
        "max": "0"
      },
      {
        "id": "Contract.signer.signature.type.coding",
        "path": "Contract.signer.signature.type.coding",
        "min": 1
      },
      {
        "id": "Contract.signer.signature.type.coding.code",
        "path": "Contract.signer.signature.type.coding.code",
        "definition": "#### **_`There is only one code: WITNESSED this signifies the signature was witnessed.`_**",
        "min": 1
      },
      {
        "id": "Contract.signer.signature.type.coding.display",
        "path": "Contract.signer.signature.type.coding.display",
        "max": "0"
      },
      {
        "id": "Contract.signer.signature.when",
        "path": "Contract.signer.signature.when",
        "short": "Signoff Date",
        "definition": "#### **_`When the signoff occurred.  `_**",
        "min": 1
      },
      {
        "id": "Contract.signer.signature.who",
        "path": "Contract.signer.signature.who",
        "definition": "#### **_`Populated by a Reference to the PractitionerRole to the Approver`_**"
      },
      {
        "id": "Contract.signer.signature.onBehalfOf",
        "path": "Contract.signer.signature.onBehalfOf",
        "definition": "#### **_`Populated when Delegate is populated. Populated with a reference to the Delegate.`_**",
        "max": "1"
      },
      {
        "id": "Contract.signer.signature.targetFormat",
        "path": "Contract.signer.signature.targetFormat",
        "max": "0"
      },
      {
        "id": "Contract.signer.signature.sigFormat",
        "path": "Contract.signer.signature.sigFormat",
        "max": "0"
      },
      {
        "id": "Contract.signer.signature.data",
        "path": "Contract.signer.signature.data",
        "max": "0"
      },
      {
        "id": "Contract.friendly",
        "path": "Contract.friendly",
        "max": "0"
      },
      {
        "id": "Contract.legal",
        "path": "Contract.legal",
        "max": "0"
      },
      {
        "id": "Contract.rule",
        "path": "Contract.rule",
        "max": "0"
      },
      {
        "id": "Contract.legallyBinding[x]",
        "path": "Contract.legallyBinding[x]",
        "definition": "#### **_`Copy of the agreement.  Not sure yet if this will be an attachment or a document reference which points to a binary or points to a share location`_**\r\n\r\n\r\nLegally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the \"source of truth\" and which would be the basis for legal action related to enforcement of this Contract.",
        "max": "0"
      }
    ]
  }
}