Documentation Index
Fetch the complete documentation index at: https://docs.metriport.com/llms.txt
Use this file to discover all available pages before exploring further.
Body
The name of your organization. This is usually your legal corporate entity name - for example
Metriport Inc..
The type of your organization, can be one of: acuteCare, ambulatory, hospital, labSystems,
pharmacy, postAcuteCare.
The address details, for example: #4451.
The 2 letter state acronym, for example: CA.
If specified, must be "USA"; otherwise will default to "USA".
Response
The ID assigned to your organization. This ID will be used to uniquely identify your
organization in medical documents.
The OID assigned to this Organization.
The name of your organization. This is usually your legal corporate entity name - for example
Metriport Inc..
The type of your organization, can be one of: acuteCare, ambulatory, hospital, labSystems,
pharmacy, postAcuteCare.
The address details, for example: #4451.
The 2 letter state acronym, for example: CA.
import { Metriport, OrgType, USState } from "@metriport/api-sdk";
const metriport = new MetriportMedicalApi("YOUR_API_KEY");
const org = await metriport.createOrganization({
type: OrgType.postAcuteCare,
name: "Metriport Inc.",
location: {
addressLine1: "2261 Market Street",
addressLine2: "#4818",
city: "San Francisco",
state: USState.CA,
zip: "94114",
country: "USA",
}
});
{
"id": "018a80c4-292a-7486-a1234-7uwe234ert90",
"oid": "2.16.840.1.113883.3.666.123",
"type": "postAcuteCare",
"name": "Metriport Inc.",
"location": {
"addressLine1": "2261 Market Street",
"addressLine2": "#4818",
"city": "San Francisco",
"state": "CA",
"zip": "94114",
"country": "USA"
}
}