{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://hl7.erp.uno/priv/schema/MarketingStatus.schema.json",
  "$ref": "#/definitions/MarketingStatus",
  "description": "see https://hl7.org/fhir/R5/json.html for information about the FHIR Json Schemas",
  "definitions": {
    "MarketingStatus" : {
      "properties" : {
        "country":      { "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" },
        "jurisdiction": { "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" },
        "status" :      { "$ref": "CodeableConcept.schema.json#/definitions/CodeableConcept" },
        "dateRange" :   { "$ref": "Period.schema.json#/definitions/Period" },
        "restoreDate" : { "type": "string", "pattern": "-?([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?" }
      }
    }
  }
}
